33 gchar * gnc_hook_create(
const gchar *name, gint num_args,
const gchar *desc);
39 void gnc_hook_add_dangler(
const gchar *name, GFunc callback, gpointer cb_data);
40 void gnc_hook_remove_dangler(
const gchar *name, GFunc callback);
45 void gnc_hook_run(
const gchar *name, gpointer data);
50 void gnc_hooks_init(
void);
53 #define HOOK_STARTUP "hook_startup"
54 #define HOOK_SHUTDOWN "hook_shutdown"
55 #define HOOK_UI_STARTUP "hook_ui_startup"
56 #define HOOK_UI_POST_STARTUP "hook_ui_post_startup"
57 #define HOOK_UI_SHUTDOWN "hook_ui_shutdown"
58 #define HOOK_NEW_BOOK "hook_new_book"
59 #define HOOK_REPORT "hook_report"
60 #define HOOK_CURRENCY_CHANGED "hook_currency_changed"
61 #define HOOK_SAVE_OPTIONS "hook_save_options"
62 #define HOOK_ADD_EXTENSION "hook_add_extension"
65 #define HOOK_BOOK_OPENED "hook_book_opened"
66 #define HOOK_BOOK_CLOSED "hook_book_closed"
67 #define HOOK_BOOK_SAVED "hook_book_saved"