| 35 |
35 |
| 36 G_BEGIN_DECLS |
36 G_BEGIN_DECLS |
| 37 |
37 |
| 38 /** |
38 /** |
| 39 * purple_core_init: |
39 * purple_core_init: |
| 40 * @ui: The ID of the UI using the core. This should be a |
40 * @ui_info: (transfer full): The [class@UiInfo] of the UI using the core. |
| 41 * unique ID, registered with the purple team. |
|
| 42 * |
41 * |
| 43 * Initializes the core of purple. |
42 * Initializes the core of purple. |
| 44 * |
43 * |
| 45 * This will setup preferences for all the core subsystems. |
44 * This will setup preferences for all the core subsystems. |
| 46 * |
45 * |
| 47 * Returns: %TRUE if successful, or %FALSE otherwise. |
46 * Returns: %TRUE if successful, or %FALSE otherwise. |
| 48 */ |
47 */ |
| 49 gboolean purple_core_init(const char *ui); |
48 gboolean purple_core_init(PurpleUiInfo *ui_info); |
| 50 |
49 |
| 51 /** |
50 /** |
| 52 * purple_core_quit: |
51 * purple_core_quit: |
| 53 * |
52 * |
| 54 * Quits the core of purple, which, depending on the UI, may quit the |
53 * Quits the core of purple, which, depending on the UI, may quit the |
| 85 * Returns: The version of the core library. |
84 * Returns: The version of the core library. |
| 86 */ |
85 */ |
| 87 const char *purple_core_get_version(void); |
86 const char *purple_core_get_version(void); |
| 88 |
87 |
| 89 /** |
88 /** |
| 90 * purple_core_get_ui: |
|
| 91 * |
|
| 92 * Returns the ID of the UI that is using the core, as passed to |
|
| 93 * purple_core_init(). |
|
| 94 * |
|
| 95 * Returns: The ID of the UI that is currently using the core. |
|
| 96 */ |
|
| 97 const char *purple_core_get_ui(void); |
|
| 98 |
|
| 99 /** |
|
| 100 * purple_get_core: |
89 * purple_get_core: |
| 101 * |
90 * |
| 102 * This is used to connect to |
91 * This is used to connect to |
| 103 * <link linkend="chapter-signals-core">core signals</link>. |
92 * <link linkend="chapter-signals-core">core signals</link>. |
| 104 * |
93 * |
| 126 /** |
115 /** |
| 127 * purple_core_get_ui_info: |
116 * purple_core_get_ui_info: |
| 128 * |
117 * |
| 129 * Returns a #PurpleUiInfo that contains information about the user interface. |
118 * Returns a #PurpleUiInfo that contains information about the user interface. |
| 130 * |
119 * |
| 131 * Returns: (transfer full): A #PurpleUiInfo instance. |
120 * Returns: (transfer none): A #PurpleUiInfo instance. |
| 132 */ |
121 */ |
| 133 PurpleUiInfo* purple_core_get_ui_info(void); |
122 PurpleUiInfo *purple_core_get_ui_info(void); |
| 134 |
123 |
| 135 G_END_DECLS |
124 G_END_DECLS |
| 136 |
125 |
| 137 #endif /* PURPLE_CORE_H */ |
126 #endif /* PURPLE_CORE_H */ |
| 138 |
127 |