Fri, 31 Jan 2014 18:22:41 +0530
Initial replacements for this branch
|
5034
077678f7b048
[gaim-migrate @ 5377]
Christian Hammond <chipx86@chipx86.com>
parents:
5032
diff
changeset
|
1 | /** |
|
23511
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
2 | * @file core.h Startup and shutdown of libpurple |
|
16256
8c912f6c4f43
Relabel the Doxygen group as libpurple
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
3 | * @defgroup core libpurple |
|
20889
3d0ef192f98c
All the links to libpurple signal pages were in the comment containing the
Will Thompson <resiak@pidgin.im>
parents:
20147
diff
changeset
|
4 | * @see @ref core-signals |
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
5 | */ |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
6 | |
|
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
7 | /* purple |
| 2417 | 8 | * |
| 15884 | 9 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 10 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 11 | * source distribution. | |
|
6612
aac6af649208
[gaim-migrate @ 7136]
Christian Hammond <chipx86@chipx86.com>
parents:
6314
diff
changeset
|
12 | * |
| 2417 | 13 | * This program is free software; you can redistribute it and/or modify |
| 14 | * it under the terms of the GNU General Public License as published by | |
| 15 | * the Free Software Foundation; either version 2 of the License, or | |
| 16 | * (at your option) any later version. | |
| 17 | * | |
| 18 | * This program is distributed in the hope that it will be useful, | |
| 19 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 20 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 21 | * GNU General Public License for more details. | |
| 22 | * | |
| 23 | * You should have received a copy of the GNU General Public License | |
| 24 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
18606
diff
changeset
|
25 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 2417 | 26 | */ |
|
28422
d866502c9a96
Make the doxygen docs easier to navigate. It was either this or a main page that says "Click on 'Modules'".
Paul Aurich <darkrain42@pidgin.im>
parents:
27408
diff
changeset
|
27 | |
|
d866502c9a96
Make the doxygen docs easier to navigate. It was either this or a main page that says "Click on 'Modules'".
Paul Aurich <darkrain42@pidgin.im>
parents:
27408
diff
changeset
|
28 | /*! @mainpage Pidgin/Finch/libpurple API Documentation |
|
d866502c9a96
Make the doxygen docs easier to navigate. It was either this or a main page that says "Click on 'Modules'".
Paul Aurich <darkrain42@pidgin.im>
parents:
27408
diff
changeset
|
29 | * |
|
d866502c9a96
Make the doxygen docs easier to navigate. It was either this or a main page that says "Click on 'Modules'".
Paul Aurich <darkrain42@pidgin.im>
parents:
27408
diff
changeset
|
30 | * <a href="group__core.html">libpurple</a> is intended to be the core of an IM |
|
d866502c9a96
Make the doxygen docs easier to navigate. It was either this or a main page that says "Click on 'Modules'".
Paul Aurich <darkrain42@pidgin.im>
parents:
27408
diff
changeset
|
31 | * program. <a href="group__pidgin.html">Pidgin</a> is a GTK+ frontend |
|
d866502c9a96
Make the doxygen docs easier to navigate. It was either this or a main page that says "Click on 'Modules'".
Paul Aurich <darkrain42@pidgin.im>
parents:
27408
diff
changeset
|
32 | * to libpurple, and <a href="group__finch.html">Finch</a> is an ncurses |
|
d866502c9a96
Make the doxygen docs easier to navigate. It was either this or a main page that says "Click on 'Modules'".
Paul Aurich <darkrain42@pidgin.im>
parents:
27408
diff
changeset
|
33 | * frontend built using <a href="group__gnt.html">libgnt</a> |
|
d866502c9a96
Make the doxygen docs easier to navigate. It was either this or a main page that says "Click on 'Modules'".
Paul Aurich <darkrain42@pidgin.im>
parents:
27408
diff
changeset
|
34 | * (GLib Ncurses Toolkit). |
|
d866502c9a96
Make the doxygen docs easier to navigate. It was either this or a main page that says "Click on 'Modules'".
Paul Aurich <darkrain42@pidgin.im>
parents:
27408
diff
changeset
|
35 | */ |
|
d866502c9a96
Make the doxygen docs easier to navigate. It was either this or a main page that says "Click on 'Modules'".
Paul Aurich <darkrain42@pidgin.im>
parents:
27408
diff
changeset
|
36 | |
| 15884 | 37 | #ifndef _PURPLE_CORE_H_ |
| 38 | #define _PURPLE_CORE_H_ | |
| 2417 | 39 | |
| 34896 | 40 | #include <glib.h> |
| 41 | ||
| 15884 | 42 | typedef struct PurpleCore PurpleCore; |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
43 | |
|
23511
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
44 | /** Callbacks that fire at different points of the initialization and teardown |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
45 | * of libpurple, along with a hook to return descriptive information about the |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
46 | * UI. |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
47 | */ |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
48 | typedef struct |
|
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
49 | { |
|
23511
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
50 | /** Called just after the preferences subsystem is initialized; the UI |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
51 | * could use this callback to add some preferences it needs to be in |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
52 | * place when other subsystems are initialized. |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
53 | */ |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
54 | void (*ui_prefs_init)(void); |
|
23511
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
55 | /** Called just after the debug subsystem is initialized, but before |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
56 | * just about every other component's initialization. The UI should |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
57 | * use this hook to call purple_debug_set_ui_ops() so that debugging |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
58 | * information for other components can be logged during their |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
59 | * initialization. |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
60 | */ |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
61 | void (*debug_ui_init)(void); |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
62 | /** Called after all of libpurple has been initialized. The UI should |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
63 | * use this hook to set all other necessary UiOps structures. |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
64 | * |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
65 | * @see @ref ui-ops |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
66 | */ |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
67 | void (*ui_init)(void); |
|
23511
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
68 | /** Called after most of libpurple has been uninitialized. */ |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
69 | void (*quit)(void); |
|
23511
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
70 | |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
71 | /** Called by purple_core_get_ui_info(); should return the information |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
72 | * documented there. |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
73 | */ |
|
18441
d255d04c0aa1
core support for UI info...now to do the UI piece
Nathan Walp <nwalp@pidgin.im>
parents:
18072
diff
changeset
|
74 | GHashTable* (*get_ui_info)(void); |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
75 | |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
34896
diff
changeset
|
76 | /*< private >*/ |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16409
diff
changeset
|
77 | void (*_purple_reserved1)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16409
diff
changeset
|
78 | void (*_purple_reserved2)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
16409
diff
changeset
|
79 | void (*_purple_reserved3)(void); |
|
35024
eb3afb7643ce
Added /*< private >*/ for padding members, clean them up and add missing ones
Ankit Vani <a@nevitus.org>
parents:
34896
diff
changeset
|
80 | void (*_purple_reserved4)(void); |
| 15884 | 81 | } PurpleCoreUiOps; |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
82 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32438
diff
changeset
|
83 | G_BEGIN_DECLS |
|
6314
25bba03c42cd
[gaim-migrate @ 6813]
Christian Hammond <chipx86@chipx86.com>
parents:
6182
diff
changeset
|
84 | |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
85 | /** |
| 15884 | 86 | * Initializes the core of purple. |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
87 | * |
|
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
88 | * This will setup preferences for all the core subsystems. |
|
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
89 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
90 | * @ui: The ID of the UI using the core. This should be a |
| 15884 | 91 | * unique ID, registered with the purple team. |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
92 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
93 | * Returns: %TRUE if successful, or %FALSE otherwise. |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
94 | */ |
| 15884 | 95 | gboolean purple_core_init(const char *ui); |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
96 | |
|
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
97 | /** |
| 15884 | 98 | * Quits the core of purple, which, depending on the UI, may quit the |
| 99 | * application using the purple core. | |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
100 | */ |
| 15884 | 101 | void purple_core_quit(void); |
| 2417 | 102 | |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
103 | /** |
|
23511
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
104 | * <p> |
|
25888
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
23545
diff
changeset
|
105 | * Calls purple_core_quit(). This can be used as the function |
|
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
23545
diff
changeset
|
106 | * passed to purple_timeout_add() when you want to shutdown Purple |
|
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
23545
diff
changeset
|
107 | * in a specified amount of time. When shutting down Purple |
|
22107
776a0aa56a41
Clarify a comment that was confusing me. Thanks resiak!
Richard Laager <rlaager@pidgin.im>
parents:
20889
diff
changeset
|
108 | * from a plugin, you must use this instead of purple_core_quit(); |
|
25888
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
23545
diff
changeset
|
109 | * for an immediate exit, use a timeout value of 0: |
|
23511
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
110 | * </p> |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
111 | * |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
112 | * <code>purple_timeout_add(0, purple_core_quitcb, NULL);</code> |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
113 | * |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
114 | * <p> |
|
25888
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
23545
diff
changeset
|
115 | * This is ensures that code from your plugin is not being |
|
22107
776a0aa56a41
Clarify a comment that was confusing me. Thanks resiak!
Richard Laager <rlaager@pidgin.im>
parents:
20889
diff
changeset
|
116 | * executed when purple_core_quit() is called. If the plugin |
|
776a0aa56a41
Clarify a comment that was confusing me. Thanks resiak!
Richard Laager <rlaager@pidgin.im>
parents:
20889
diff
changeset
|
117 | * called purple_core_quit() directly, you would get a core dump |
|
776a0aa56a41
Clarify a comment that was confusing me. Thanks resiak!
Richard Laager <rlaager@pidgin.im>
parents:
20889
diff
changeset
|
118 | * after purple_core_quit() executes and control returns to your |
|
776a0aa56a41
Clarify a comment that was confusing me. Thanks resiak!
Richard Laager <rlaager@pidgin.im>
parents:
20889
diff
changeset
|
119 | * plugin because purple_core_quit() frees all plugins. |
|
23511
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
120 | * </p> |
|
7646
6806a6893ac0
[gaim-migrate @ 8289]
Mark Doliner <markdoliner@pidgin.im>
parents:
7082
diff
changeset
|
121 | */ |
| 15884 | 122 | gboolean purple_core_quit_cb(gpointer unused); |
|
7646
6806a6893ac0
[gaim-migrate @ 8289]
Mark Doliner <markdoliner@pidgin.im>
parents:
7082
diff
changeset
|
123 | |
|
6806a6893ac0
[gaim-migrate @ 8289]
Mark Doliner <markdoliner@pidgin.im>
parents:
7082
diff
changeset
|
124 | /** |
|
6612
aac6af649208
[gaim-migrate @ 7136]
Christian Hammond <chipx86@chipx86.com>
parents:
6314
diff
changeset
|
125 | * Returns the version of the core library. |
|
aac6af649208
[gaim-migrate @ 7136]
Christian Hammond <chipx86@chipx86.com>
parents:
6314
diff
changeset
|
126 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
127 | * Returns: The version of the core library. |
|
6612
aac6af649208
[gaim-migrate @ 7136]
Christian Hammond <chipx86@chipx86.com>
parents:
6314
diff
changeset
|
128 | */ |
| 15884 | 129 | const char *purple_core_get_version(void); |
|
6612
aac6af649208
[gaim-migrate @ 7136]
Christian Hammond <chipx86@chipx86.com>
parents:
6314
diff
changeset
|
130 | |
|
aac6af649208
[gaim-migrate @ 7136]
Christian Hammond <chipx86@chipx86.com>
parents:
6314
diff
changeset
|
131 | /** |
|
23511
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
132 | * Returns the ID of the UI that is using the core, as passed to |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
133 | * purple_core_init(). |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
134 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
135 | * Returns: The ID of the UI that is currently using the core. |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
136 | */ |
| 15884 | 137 | const char *purple_core_get_ui(void); |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
138 | |
|
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
139 | /** |
| 15884 | 140 | * Returns a handle to the purple core. |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
141 | * |
|
23511
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
142 | * This is used to connect to @ref core-signals "core signals". |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
143 | */ |
| 15884 | 144 | PurpleCore *purple_get_core(void); |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
145 | |
|
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
146 | /** |
|
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
147 | * Sets the UI ops for the core. |
|
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
148 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
149 | * @ops: A UI ops structure for the core. |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
150 | */ |
| 15884 | 151 | void purple_core_set_ui_ops(PurpleCoreUiOps *ops); |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
152 | |
|
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
153 | /** |
|
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
154 | * Returns the UI ops for the core. |
|
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
155 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
156 | * Returns: The core's UI ops structure. |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
157 | */ |
| 15884 | 158 | PurpleCoreUiOps *purple_core_get_ui_ops(void); |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
159 | |
|
16409
8c153c6febdd
The core portion of the migration code. This is implemented as I described
Richard Laager <rlaager@pidgin.im>
parents:
16256
diff
changeset
|
160 | /** |
|
23511
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
161 | * Ensures that only one instance is running. If libpurple is built with D-Bus |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
162 | * support, this checks if another process owns the libpurple bus name and if |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
163 | * so whether that process is using the same configuration directory as this |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
164 | * process. |
|
17121
43d41f5ce17b
Alternative dbus_uniq implementation
Gabriel Schulhof <nix@go-nix.ca>
parents:
16743
diff
changeset
|
165 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
166 | * Returns: %TRUE if this is the first instance of libpurple running; |
|
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
167 | * %FALSE if there is another instance running. |
|
17121
43d41f5ce17b
Alternative dbus_uniq implementation
Gabriel Schulhof <nix@go-nix.ca>
parents:
16743
diff
changeset
|
168 | */ |
|
43d41f5ce17b
Alternative dbus_uniq implementation
Gabriel Schulhof <nix@go-nix.ca>
parents:
16743
diff
changeset
|
169 | gboolean purple_core_ensure_single_instance(void); |
|
43d41f5ce17b
Alternative dbus_uniq implementation
Gabriel Schulhof <nix@go-nix.ca>
parents:
16743
diff
changeset
|
170 | |
|
18441
d255d04c0aa1
core support for UI info...now to do the UI piece
Nathan Walp <nwalp@pidgin.im>
parents:
18072
diff
changeset
|
171 | /** |
|
23511
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
172 | * Returns a hash table containing various information about the UI. The |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
173 | * following well-known entries may be in the table (along with any others the |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
174 | * UI might choose to include): |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
175 | * |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
176 | * <dl> |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
177 | * <dt><tt>name</tt></dt> |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
178 | * <dd>the user-readable name for the UI.</dd> |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
179 | * |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
180 | * <dt><tt>version</tt></dt> |
|
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
181 | * <dd>a user-readable description of the current version of the UI.</dd> |
|
23545
676b13ddfd2c
Added "website" and "dev_website" items to the ui_info GHashTable,
Evan Schoenberg <evands@pidgin.im>
parents:
23511
diff
changeset
|
182 | * |
|
676b13ddfd2c
Added "website" and "dev_website" items to the ui_info GHashTable,
Evan Schoenberg <evands@pidgin.im>
parents:
23511
diff
changeset
|
183 | * <dt><tt>website</tt></dt> |
|
33955
55aa58076485
Use https URLs for pidgin.im and developer.pidgin.im.
Mark Doliner <mark@kingant.net>
parents:
32787
diff
changeset
|
184 | * <dd>the UI's website, such as https://pidgin.im.</dd> |
|
23545
676b13ddfd2c
Added "website" and "dev_website" items to the ui_info GHashTable,
Evan Schoenberg <evands@pidgin.im>
parents:
23511
diff
changeset
|
185 | * |
|
676b13ddfd2c
Added "website" and "dev_website" items to the ui_info GHashTable,
Evan Schoenberg <evands@pidgin.im>
parents:
23511
diff
changeset
|
186 | * <dt><tt>dev_website</tt></dt> |
|
33955
55aa58076485
Use https URLs for pidgin.im and developer.pidgin.im.
Mark Doliner <mark@kingant.net>
parents:
32787
diff
changeset
|
187 | * <dd>the UI's development/support website, such as https://developer.pidgin.im.</dd> |
|
25577
ca0b40451bbc
Set a value "type" in the ui_info hash table
Marcus Lundblad <malu@pidgin.im>
parents:
23545
diff
changeset
|
188 | * |
|
25578
c0c1b73f4fb1
Changed "type" to "client_type" for the hash value specifying client type
Marcus Lundblad <malu@pidgin.im>
parents:
25577
diff
changeset
|
189 | * <dt><tt>client_type</tt></dt> |
|
27408
056092bcdfd4
Clarify the usage of client_type (i.e. these values are matched against using
Paul Aurich <darkrain42@pidgin.im>
parents:
26046
diff
changeset
|
190 | * <dd>the type of UI. Possible values include 'pc', 'console', 'phone', |
|
056092bcdfd4
Clarify the usage of client_type (i.e. these values are matched against using
Paul Aurich <darkrain42@pidgin.im>
parents:
26046
diff
changeset
|
191 | * 'handheld', 'web', and 'bot'. These values are compared |
|
056092bcdfd4
Clarify the usage of client_type (i.e. these values are matched against using
Paul Aurich <darkrain42@pidgin.im>
parents:
26046
diff
changeset
|
192 | * programmatically and should not be localized.</dd> |
|
31293
169eeb43b52c
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
28422
diff
changeset
|
193 | * |
|
23511
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
194 | * </dl> |
|
18441
d255d04c0aa1
core support for UI info...now to do the UI piece
Nathan Walp <nwalp@pidgin.im>
parents:
18072
diff
changeset
|
195 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
196 | * Returns: A GHashTable with strings for keys and values. This |
|
23511
650ebfc167ab
Document PurpleCoreUiOps and purple_core_get_ui_info(), tweaking other core
Will Thompson <resiak@pidgin.im>
parents:
22107
diff
changeset
|
197 | * hash table must not be freed and should not be modified. |
|
18441
d255d04c0aa1
core support for UI info...now to do the UI piece
Nathan Walp <nwalp@pidgin.im>
parents:
18072
diff
changeset
|
198 | * |
|
d255d04c0aa1
core support for UI info...now to do the UI piece
Nathan Walp <nwalp@pidgin.im>
parents:
18072
diff
changeset
|
199 | */ |
|
d255d04c0aa1
core support for UI info...now to do the UI piece
Nathan Walp <nwalp@pidgin.im>
parents:
18072
diff
changeset
|
200 | GHashTable* purple_core_get_ui_info(void); |
|
d255d04c0aa1
core support for UI info...now to do the UI piece
Nathan Walp <nwalp@pidgin.im>
parents:
18072
diff
changeset
|
201 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32438
diff
changeset
|
202 | G_END_DECLS |
|
6314
25bba03c42cd
[gaim-migrate @ 6813]
Christian Hammond <chipx86@chipx86.com>
parents:
6182
diff
changeset
|
203 | |
| 15884 | 204 | #endif /* _PURPLE_CORE_H_ */ |
| 5862 | 205 | |
| 206 | /* | |
| 207 | ||
| 208 | /===- | |
| 209 | `//"\\ """"`---.___.-"" | |
| 210 | ______-==| | | \\ _-"` | |
| 211 | __--""" ,-/-==\\ | | `\ ,' | |
| 212 | _-" /' | \\ ___ / / \ / | |
| 213 | .' / | \\ /" "\ /' / \ /' | |
|
6169
d23c0f0228ae
[gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
214 | / ____ / | \`\.__/-"" D O \_/' / \/' |
|
d23c0f0228ae
[gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
215 | /-'" """""---__ | "-/" O G R /' _--"` |
|
6179
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
216 | \_| / R __--_ t ), __--"" |
|
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
217 | '""--_/ T _-"_>--<_\ h '-" \ |
|
4df73df94250
[gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents:
6169
diff
changeset
|
218 | {\__--_/} / \\__>--<__\ e B \ |
|
6169
d23c0f0228ae
[gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
219 | /' (_/ _-" | |__>--<__| U | |
|
d23c0f0228ae
[gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
220 | | _/) )-" | |__>--<__| R | |
|
d23c0f0228ae
[gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
221 | / /" ,_/ / /__>---<__/ N | |
|
d23c0f0228ae
[gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
222 | o-o _// /-"_>---<__-" I / |
|
d23c0f0228ae
[gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
223 | (^(" /"_>---<__- N _-" |
|
d23c0f0228ae
[gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
224 | ,/| /__>--<__/ A _-" |
|
d23c0f0228ae
[gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
225 | ,//('( |__>--<__| T / .----_ |
| 5862 | 226 | ( ( ')) |__>--<__| | /' _---_"\ |
|
6169
d23c0f0228ae
[gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
227 | `-)) )) ( |__>--<__| O | /' / "\`\ |
|
d23c0f0228ae
[gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents:
5872
diff
changeset
|
228 | ,/,'//( ( \__>--<__\ R \ /' // || |
| 5862 | 229 | ,( ( ((, )) "-__>--<_"-_ "--____---"' _/'/ /' |
| 230 | `"/ )` ) ,/| "-_">--<_/-__ __-" _/ | |
| 231 | ._-"//( )/ )) ` ""-'_/_/ /"""""""__--" | |
| 232 | ;'( ')/ ,)( """""""""" | |
| 233 | ' ') '( (/ | |
| 234 | ' ' ` | |
| 235 | ||
| 236 | */ |