core.h

00001 
00024 #ifndef _PURPLE_CORE_H_
00025 #define _PURPLE_CORE_H_
00026 
00027 typedef struct PurpleCore PurpleCore;
00028 
00029 typedef struct
00030 {
00031     void (*ui_prefs_init)(void);
00032     void (*debug_ui_init)(void); /* Unfortunate necessity. */
00033     void (*ui_init)(void);
00034     void (*quit)(void);
00035 
00036     void (*_purple_reserved1)(void);
00037     void (*_purple_reserved2)(void);
00038     void (*_purple_reserved3)(void);
00039     void (*_purple_reserved4)(void);
00040 } PurpleCoreUiOps;
00041 
00042 #ifdef __cplusplus
00043 extern "C" {
00044 #endif
00045 
00056 gboolean purple_core_init(const char *ui);
00057 
00062 void purple_core_quit(void);
00063 
00076 gboolean purple_core_quit_cb(gpointer unused);
00077 
00083 const char *purple_core_get_version(void);
00084 
00090 const char *purple_core_get_ui(void);
00091 
00097 PurpleCore *purple_get_core(void);
00098 
00104 void purple_core_set_ui_ops(PurpleCoreUiOps *ops);
00105 
00111 PurpleCoreUiOps *purple_core_get_ui_ops(void);
00112 
00122 gboolean purple_core_migrate(void);
00123 
00124 #ifdef __cplusplus
00125 }
00126 #endif
00127 
00128 #endif /* _PURPLE_CORE_H_ */
00129 
00130 /*
00131 
00132                                                   /===-
00133                                                 `//"\\   """"`---.___.-""
00134              ______-==|                         | |  \\           _-"`
00135        __--"""  ,-/-==\\                        | |   `\        ,'
00136     _-"       /'    |  \\            ___         / /      \      /
00137   .'        /       |   \\         /"   "\    /' /        \   /'
00138  /  ____  /         |    \`\.__/-""  D O   \_/'  /          \/'
00139 /-'"    """""---__  |     "-/"   O G     R   /'        _--"`
00140                   \_|      /   R    __--_  t ),   __--""
00141                     '""--_/  T   _-"_>--<_\ h '-" \
00142                    {\__--_/}    / \\__>--<__\ e B  \
00143                    /'   (_/  _-"  | |__>--<__|   U  |
00144                   |   _/) )-"     | |__>--<__|  R   |
00145                   / /" ,_/       / /__>---<__/ N    |
00146                  o-o _//        /-"_>---<__-" I    /
00147                  (^("          /"_>---<__-  N   _-"
00148                 ,/|           /__>--<__/  A  _-"
00149              ,//('(          |__>--<__|  T  /                  .----_
00150             ( ( '))          |__>--<__|    |                 /' _---_"\
00151          `-)) )) (           |__>--<__|  O |               /'  /     "\`\
00152         ,/,'//( (             \__>--<__\  R \            /'  //        ||
00153       ,( ( ((, ))              "-__>--<_"-_  "--____---"' _/'/        /'
00154     `"/  )` ) ,/|                 "-_">--<_/-__       __-" _/
00155   ._-"//( )/ )) `                    ""-'_/_/ /"""""""__--"
00156    ;'( ')/ ,)(                              """"""""""
00157   ' ') '( (/
00158     '   '  `
00159 
00160 */