91 #ifndef INCLUDED_APP_HOOKS
92 #define INCLUDED_APP_HOOKS
142 extern const wchar_t*
ah_translate(
const wchar_t* text);
160 extern void ah_log(
const wchar_t* text);
184 const wchar_t* (*translate)(
const wchar_t* text);
186 void (*
log)(
const wchar_t* text);
207 #define AH_IS_DEFINED(name) app_hook_was_redefined(offsetof(AppHooks, name))
209 #endif // #ifndef INCLUDED_APP_HOOKS
ErrorReactionInternal(* display_error)(const wchar_t *text, size_t flags)
void ah_log(const wchar_t *text)
write text to the app's log.
void ah_override_gl_upload_caps()
override default decision on using OpenGL extensions relating to texture upload.
void(* override_gl_upload_caps)()
void ah_translate_free(const wchar_t *text)
free text that was returned by translate.
ErrorReactionInternal ah_display_error(const wchar_t *text, size_t flags)
display an error dialog, thus overriding sys_display_error.
void(* translate_free)(const wchar_t *text)
void(* bundle_logs)(FILE *f)
const OsPath & ah_get_log_dir()
return path to directory into which crash dumps should be written.
bool app_hook_was_redefined(size_t offset_in_struct)
was the app hook changed via app_hooks_update from its default value?
holds a function pointer (allowed to be NULL) for each hook.
void app_hooks_update(AppHooks *new_ah)
update the app hook function pointers.
void(* log)(const wchar_t *text)
const wchar_t * ah_translate(const wchar_t *text)
translate text to the current locale.
ErrorReactionInternal
all choices offered by the error dialog.
void ah_bundle_logs(FILE *f)
gather all app-related logs/information and write it to file.