This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | PurpleCoreUiOps |
| Callbacks that fire at different points of the initialization and teardown of libpurple, along with a hook to return descriptive information about the UI. More... | |
Typedefs | |
| typedef PurpleCore | PurpleCore |
Functions | |
| gboolean | purple_core_init (const char *ui) |
| Initializes the core of purple. | |
| void | purple_core_quit (void) |
| Quits the core of purple, which, depending on the UI, may quit the application using the purple core. | |
| gboolean | purple_core_quit_cb (gpointer unused) |
| const char * | purple_core_get_version (void) |
| Returns the version of the core library. | |
| const char * | purple_core_get_ui (void) |
| Returns the ID of the UI that is using the core, as passed to purple_core_init(). | |
| PurpleCore * | purple_get_core (void) |
| Returns a handle to the purple core. | |
| void | purple_core_set_ui_ops (PurpleCoreUiOps *ops) |
| Sets the UI ops for the core. | |
| PurpleCoreUiOps * | purple_core_get_ui_ops (void) |
| Returns the UI ops for the core. | |
| gboolean | purple_core_migrate (void) |
Migrates from .gaim to .purple. | |
| gboolean | purple_core_ensure_single_instance (void) |
| Ensures that only one instance is running. | |
| GHashTable * | purple_core_get_ui_info (void) |
| Returns a hash table containing various information about the UI. | |
Definition in file core.h.
|
|
Ensures that only one instance is running. If libpurple is built with D-Bus support, this checks if another process owns the libpurple bus name and if so whether that process is using the same configuration directory as this process.
|
|
|
Returns the ID of the UI that is using the core, as passed to purple_core_init().
|
|
|
Returns a hash table containing various information about the UI. The following well-known entries may be in the table (along with any others the UI might choose to include):
|
|
|
Returns the UI ops for the core.
|
|
|
Returns the version of the core library.
|
|
|
Initializes the core of purple. This will setup preferences for all the core subsystems.
|
|
|
Migrates from UIs must not call this if they have been told to use a custom user directory.
|
|
|
Calls purple_core_quit(). This can be used as the function passed to purple_timeout_add() when you want to shutdown Purple in a specified amount of time. When shutting down Purple from a plugin, you must use this instead of purple_core_quit(); for an immediate exit, use a timeout value of 0:
This is ensures that code from your plugin is not being executed when purple_core_quit() is called. If the plugin called purple_core_quit() directly, you would get a core dump after purple_core_quit() executes and control returns to your plugin because purple_core_quit() frees all plugins. |
|
|
Sets the UI ops for the core.
|
|
|
Returns a handle to the purple core. This is used to connect to core signals. |