37gchar * gnc_hook_create(
const gchar *name, gint num_args,
const gchar *desc);
43void gnc_hook_add_dangler(
const gchar *name, GFunc callback,
44 GDestroyNotify destroy, gpointer cb_data);
45void gnc_hook_remove_dangler(
const gchar *name, GFunc callback);
51int gnc_hook_num_args (
const gchar *name);
56void gnc_hook_run(
const gchar *name, gpointer data);
61void gnc_hooks_init(
void);
64#define HOOK_STARTUP "hook_startup"
65#define HOOK_SHUTDOWN "hook_shutdown"
66#define HOOK_UI_STARTUP "hook_ui_startup"
67#define HOOK_UI_POST_STARTUP "hook_ui_post_startup"
68#define HOOK_UI_SHUTDOWN "hook_ui_shutdown"
69#define HOOK_NEW_BOOK "hook_new_book"
70#define HOOK_REPORT "hook_report"
71#define HOOK_CURRENCY_CHANGED "hook_currency_changed"
72#define HOOK_SAVE_OPTIONS "hook_save_options"
73#define HOOK_ADD_EXTENSION "hook_add_extension"
76#define HOOK_BOOK_OPENED "hook_book_opened"
77#define HOOK_BOOK_CLOSED "hook_book_closed"
78#define HOOK_BOOK_SAVED "hook_book_saved"