diff options
author | Ankit Vani <a@nevitus.org> | 2013-07-29 20:40:11 +0530 |
---|---|---|
committer | Ankit Vani <a@nevitus.org> | 2013-07-29 20:40:11 +0530 |
commit | c63fcfa6ae20048ae7a3587c1fd442f9414c3fa8 (patch) | |
tree | 29dfa62cc186b482d202bba340021f1b96f6120c /libpurple/core.c | |
parent | 6e1728535891fbb18fcc03b26352a580460cfe41 (diff) | |
download | pidgin-c63fcfa6ae20048ae7a3587c1fd442f9414c3fa8.tar.gz |
Added a protocols subsystem API and a protocols API to add/remove protocols.
* Added purple_protocols_add(), adds a protocol to the protocols list
* Added purple_protocols_remove(), removes a protocol from the protocols list
* Added purple_protocols_init(), initializes protocols hash table
* Added purple_protocols_uninit(), destroys protocols hash table
* Added purple_protocols_get_handle()
init and uninit are done in the core just before and after that of plugins subsystem respectively.
This API needs a sanity check and more careful insight.
For now, this can be considered temporary till I get to working on the protocol API.
Diffstat (limited to 'libpurple/core.c')
-rw-r--r-- | libpurple/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libpurple/core.c b/libpurple/core.c index 85246c9c04..4a571dca6d 100644 --- a/libpurple/core.c +++ b/libpurple/core.c @@ -141,6 +141,7 @@ purple_core_init(const char *ui) #endif purple_cmds_init(); + purple_protocols_init(); /* Since plugins get probed so early we should probably initialize their * subsystem right away too. @@ -255,6 +256,8 @@ purple_core_quit(void) /* Everything after prefs_uninit must not try to read any prefs */ purple_prefs_uninit(); purple_plugins_uninit(); + purple_protocols_uninit(); + #ifdef HAVE_DBUS purple_dbus_uninit(); #endif |