#ifndef APP_H #define APP_H #define APP_EXIT_CALLBACK_FUNC_DEF(name) void name(void) typedef APP_EXIT_CALLBACK_FUNC_DEF(app_exit_callback_func); enum app_dedicated_worker_id { APP_DEDICATED_WORKER_ID_USER = 0, APP_DEDICATED_WORKER_ID_SIM = 1, APP_DEDICATED_WORKER_ID_AUDIO = 2, NUM_APP_DEDICATED_WORKERS }; struct string app_write_path_cat(struct arena *arena, struct string filename); /* Register a function that will be called when the application exits */ void app_register_exit_callback(app_exit_callback_func *func); void app_exit(void); #endif