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 void(* translate_free)(const wchar_t *text)
Definition: app_hooks.h:185
void ah_override_gl_upload_caps()
override default decision on using OpenGL extensions relating to texture upload.
Definition: app_hooks.cpp:146
const OsPath & ah_get_log_dir()
return path to directory into which crash dumps should be written.
Definition: app_hooks.cpp:152
void(* log)(const wchar_t *text)
Definition: app_hooks.h:186
LIB_API void app_hooks_update(AppHooks *ah)
update the app hook function pointers.
Definition: app_hooks.cpp:115
void(* override_gl_upload_caps)()
Definition: app_hooks.h:181
void ah_bundle_logs(FILE *f)
gather all app-related logs/information and write it to file.
Definition: app_hooks.cpp:157
void(* bundle_logs)(FILE *f)
Definition: app_hooks.h:183
ErrorReactionInternal(* display_error)(const wchar_t *text, size_t flags)
Definition: app_hooks.h:187
bool app_hook_was_redefined(size_t offset_in_struct)
was the app hook changed via app_hooks_update from its default value?
Definition: app_hooks.cpp:130
ErrorReactionInternal ah_display_error(const wchar_t *text, size_t flags)
display an error dialog, thus overriding sys_display_error.
Definition: app_hooks.cpp:177
void ah_translate_free(const wchar_t *text)
free text that was returned by translate.
Definition: app_hooks.cpp:167
const wchar_t * ah_translate(const wchar_t *text)
translate text to the current locale.
Definition: app_hooks.cpp:162
holds a function pointer (allowed to be NULL) for each hook.
Definition: app_hooks.h:179
Definition: mongoose.cpp:2098
void ah_log(const wchar_t *text)
write text to the app's log.
Definition: app_hooks.cpp:172
ErrorReactionInternal
all choices offered by the error dialog.
Definition: debug.h:154