libpurple/core.h

Wed, 14 May 2025 01:54:28 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Wed, 14 May 2025 01:54:28 -0500
changeset 43253
0cc00d7d6215
parent 43054
ccd071e7cd83
permissions
-rw-r--r--

Create purple_core_new_settings

This is a helper around g_settings_new_with_backend using the settings backend
that the core is using.

Testing Done:
Called in the turtles and connected a few accounts in a devenv without issue.

Reviewed at https://reviews.imfreedom.org/r/4000/

42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42473
diff changeset
1 /*
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42473
diff changeset
2 * Purple - Internet Messaging Library
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42473
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
2417
7751d1269b09 [gaim-migrate @ 2430]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
diff changeset
4 *
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
5 * Purple is the legal property of its developers, whose names are too numerous
42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42473
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
8046
c581b20a47d6 [gaim-migrate @ 8730]
Sean Egan <seanegan@pidgin.im>
parents: 7646
diff changeset
7 * source distribution.
6612
aac6af649208 [gaim-migrate @ 7136]
Christian Hammond <chipx86@chipx86.com>
parents: 6314
diff changeset
8 *
42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42473
diff changeset
9 * This library is free software; you can redistribute it and/or modify it
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42473
diff changeset
10 * under the terms of the GNU General Public License as published by the Free
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42473
diff changeset
11 * Software Foundation; either version 2 of the License, or (at your option)
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42473
diff changeset
12 * any later version.
2417
7751d1269b09 [gaim-migrate @ 2430]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
diff changeset
13 *
42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42473
diff changeset
14 * This library is distributed in the hope that it will be useful, but WITHOUT
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42473
diff changeset
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42473
diff changeset
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42473
diff changeset
17 * more details.
2417
7751d1269b09 [gaim-migrate @ 2430]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
diff changeset
18 *
42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42473
diff changeset
19 * You should have received a copy of the GNU General Public License along with
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42473
diff changeset
20 * this library; if not, see <https://www.gnu.org/licenses/>.
2417
7751d1269b09 [gaim-migrate @ 2430]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
diff changeset
21 */
35487
494f09f7f331 Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents: 35460
diff changeset
22
40474
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40312
diff changeset
23 #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION)
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40312
diff changeset
24 # error "only <purple.h> may be included directly"
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40312
diff changeset
25 #endif
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40312
diff changeset
26
39659
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39286
diff changeset
27 #ifndef PURPLE_CORE_H
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39286
diff changeset
28 #define PURPLE_CORE_H
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
29
34896
1dfc0cdbeb8e Included glib.h in core.h
Ankit Vani <a@nevitus.org>
parents: 33955
diff changeset
30 #include <glib.h>
35572
5c4846317f2f Box the *UiOps structures
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
31 #include <glib-object.h>
5c4846317f2f Box the *UiOps structures
Ankit Vani <a@nevitus.org>
parents: 35487
diff changeset
32
42338
2548eb61acc9 Make sure all internal includes use double quotes
Gary Kramlich <grim@reaperworld.com>
parents: 41993
diff changeset
33 #include "purpleui.h"
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
34 #include "purpleversion.h"
34896
1dfc0cdbeb8e Included glib.h in core.h
Ankit Vani <a@nevitus.org>
parents: 33955
diff changeset
35
42656
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42612
diff changeset
36 /**
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42612
diff changeset
37 * PurpleCore:
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42612
diff changeset
38 *
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42612
diff changeset
39 * The core instance for libpurple.
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42612
diff changeset
40 *
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42612
diff changeset
41 * This is primarily used for connecting to signals.
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42612
diff changeset
42 *
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42612
diff changeset
43 * Since: 2.0
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42612
diff changeset
44 */
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
45 typedef struct PurpleCore PurpleCore;
6179
4df73df94250 [gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents: 6169
diff changeset
46
32787
7072f190d6ad Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32438
diff changeset
47 G_BEGIN_DECLS
6314
25bba03c42cd [gaim-migrate @ 6813]
Christian Hammond <chipx86@chipx86.com>
parents: 6182
diff changeset
48
6179
4df73df94250 [gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents: 6169
diff changeset
49 /**
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
50 * purple_core_init:
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents: 41660
diff changeset
51 * @ui: (transfer full): The [class@Purple.Ui] of the UI using the core.
41881
7e1dd7e9efbb Fix error parameter annotations
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41868
diff changeset
52 * @error: Return address for a #GError, or %NULL.
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
53 *
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
54 * Initializes the core of purple.
6179
4df73df94250 [gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents: 6169
diff changeset
55 *
41868
e69cbf7921ec Add an out parameter for an error to purple_core_init
Gary Kramlich <grim@reaperworld.com>
parents: 41867
diff changeset
56 * Returns: %TRUE if successful, otherwise %FALSE with @error potentially set.
42409
35ac55f4809d Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
57 *
42612
d905313bc732 Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
58 * Since: 2.0
6179
4df73df94250 [gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents: 6169
diff changeset
59 */
42409
35ac55f4809d Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
60 PURPLE_AVAILABLE_IN_ALL
41868
e69cbf7921ec Add an out parameter for an error to purple_core_init
Gary Kramlich <grim@reaperworld.com>
parents: 41867
diff changeset
61 gboolean purple_core_init(PurpleUi *ui, GError **error);
6179
4df73df94250 [gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents: 6169
diff changeset
62
4df73df94250 [gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents: 6169
diff changeset
63 /**
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
64 * purple_core_quit:
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
65 *
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
66 * Quits the core of purple, which, depending on the UI, may quit the
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
67 * application using the purple core.
42409
35ac55f4809d Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
68 *
42612
d905313bc732 Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
69 * Since: 2.0
6179
4df73df94250 [gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents: 6169
diff changeset
70 */
42409
35ac55f4809d Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
71 PURPLE_AVAILABLE_IN_ALL
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
72 void purple_core_quit(void);
2417
7751d1269b09 [gaim-migrate @ 2430]
Eric Warmenhoven <warmenhoven@yahoo.com>
parents:
diff changeset
73
6179
4df73df94250 [gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents: 6169
diff changeset
74 /**
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
75 * purple_core_get_version:
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
76 *
6612
aac6af649208 [gaim-migrate @ 7136]
Christian Hammond <chipx86@chipx86.com>
parents: 6314
diff changeset
77 * Returns the version of the core library.
aac6af649208 [gaim-migrate @ 7136]
Christian Hammond <chipx86@chipx86.com>
parents: 6314
diff changeset
78 *
35393
00f876b129bc Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents: 35024
diff changeset
79 * Returns: The version of the core library.
42409
35ac55f4809d Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
80 *
42612
d905313bc732 Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
81 * Since: 2.0
6612
aac6af649208 [gaim-migrate @ 7136]
Christian Hammond <chipx86@chipx86.com>
parents: 6314
diff changeset
82 */
42409
35ac55f4809d Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
83 PURPLE_AVAILABLE_IN_ALL
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
84 const char *purple_core_get_version(void);
6612
aac6af649208 [gaim-migrate @ 7136]
Christian Hammond <chipx86@chipx86.com>
parents: 6314
diff changeset
85
aac6af649208 [gaim-migrate @ 7136]
Christian Hammond <chipx86@chipx86.com>
parents: 6314
diff changeset
86 /**
35397
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
87 * purple_get_core:
31fa3a1aeff5 Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents: 35393
diff changeset
88 *
35460
96946e21fce5 Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents: 35444
diff changeset
89 * This is used to connect to
96946e21fce5 Fix some more gtk-doc warnings till dnssrv
Ankit Vani <a@nevitus.org>
parents: 35444
diff changeset
90 * <link linkend="chapter-signals-core">core signals</link>.
6179
4df73df94250 [gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents: 6169
diff changeset
91 *
40188
80e78796edb2 Revert (skip) annotations
qarkai <qarkai@gmail.com>
parents: 40186
diff changeset
92 * Returns: (transfer none): A handle to the purple core.
42409
35ac55f4809d Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
93 *
42612
d905313bc732 Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
94 * Since: 2.0
6179
4df73df94250 [gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents: 6169
diff changeset
95 */
42409
35ac55f4809d Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
96 PURPLE_AVAILABLE_IN_ALL
15884
4de1981757fc sed -ie 's/gaim/purple/g'
Sean Egan <seanegan@pidgin.im>
parents: 15435
diff changeset
97 PurpleCore *purple_get_core(void);
6179
4df73df94250 [gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents: 6169
diff changeset
98
4df73df94250 [gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents: 6169
diff changeset
99 /**
43054
ccd071e7cd83 Add a boolean setting for toggling developer mode
Gary Kramlich <grim@reaperworld.com>
parents: 42656
diff changeset
100 * purple_core_get_developer_mode:
ccd071e7cd83 Add a boolean setting for toggling developer mode
Gary Kramlich <grim@reaperworld.com>
parents: 42656
diff changeset
101 *
ccd071e7cd83 Add a boolean setting for toggling developer mode
Gary Kramlich <grim@reaperworld.com>
parents: 42656
diff changeset
102 * Gets whether or not developer mode is turned on.
ccd071e7cd83 Add a boolean setting for toggling developer mode
Gary Kramlich <grim@reaperworld.com>
parents: 42656
diff changeset
103 *
ccd071e7cd83 Add a boolean setting for toggling developer mode
Gary Kramlich <grim@reaperworld.com>
parents: 42656
diff changeset
104 * Developer mode doesn't do anything itself. It is just a hint to other parts
ccd071e7cd83 Add a boolean setting for toggling developer mode
Gary Kramlich <grim@reaperworld.com>
parents: 42656
diff changeset
105 * of the code base to present things that are useful for developers.
ccd071e7cd83 Add a boolean setting for toggling developer mode
Gary Kramlich <grim@reaperworld.com>
parents: 42656
diff changeset
106 *
ccd071e7cd83 Add a boolean setting for toggling developer mode
Gary Kramlich <grim@reaperworld.com>
parents: 42656
diff changeset
107 * Returns: %TRUE if developer mode is on, otherwise %FALSE.
ccd071e7cd83 Add a boolean setting for toggling developer mode
Gary Kramlich <grim@reaperworld.com>
parents: 42656
diff changeset
108 *
ccd071e7cd83 Add a boolean setting for toggling developer mode
Gary Kramlich <grim@reaperworld.com>
parents: 42656
diff changeset
109 * Since: 3.0
ccd071e7cd83 Add a boolean setting for toggling developer mode
Gary Kramlich <grim@reaperworld.com>
parents: 42656
diff changeset
110 */
ccd071e7cd83 Add a boolean setting for toggling developer mode
Gary Kramlich <grim@reaperworld.com>
parents: 42656
diff changeset
111 PURPLE_AVAILABLE_IN_3_0
ccd071e7cd83 Add a boolean setting for toggling developer mode
Gary Kramlich <grim@reaperworld.com>
parents: 42656
diff changeset
112 gboolean purple_core_get_developer_mode(void);
ccd071e7cd83 Add a boolean setting for toggling developer mode
Gary Kramlich <grim@reaperworld.com>
parents: 42656
diff changeset
113
ccd071e7cd83 Add a boolean setting for toggling developer mode
Gary Kramlich <grim@reaperworld.com>
parents: 42656
diff changeset
114 /**
41660
6a4db60af05b Prepare GSettings schemas and a default settings backend
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41396
diff changeset
115 * purple_core_get_settings_backend:
6a4db60af05b Prepare GSettings schemas and a default settings backend
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41396
diff changeset
116 *
6a4db60af05b Prepare GSettings schemas and a default settings backend
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41396
diff changeset
117 * Gets the settings backend to use when saving/loading settings.
6a4db60af05b Prepare GSettings schemas and a default settings backend
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41396
diff changeset
118 *
6a4db60af05b Prepare GSettings schemas and a default settings backend
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41396
diff changeset
119 * Note, because we do not want to leak `G_SETTINGS_ENABLE_BACKEND` into
6a4db60af05b Prepare GSettings schemas and a default settings backend
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41396
diff changeset
120 * libpurple users, this function returns a `gpointer`, and you should cast to
6a4db60af05b Prepare GSettings schemas and a default settings backend
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41396
diff changeset
121 * `GSettingsBackend *` after setting `G_SETTINGS_ENABLE_BACKEND` for the files
6a4db60af05b Prepare GSettings schemas and a default settings backend
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41396
diff changeset
122 * where you need it.
6a4db60af05b Prepare GSettings schemas and a default settings backend
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41396
diff changeset
123 *
6a4db60af05b Prepare GSettings schemas and a default settings backend
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41396
diff changeset
124 * Returns: (transfer none): The [class@Gio.SettingsBackend] to use.
6a4db60af05b Prepare GSettings schemas and a default settings backend
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41396
diff changeset
125 *
42612
d905313bc732 Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
126 * Since: 3.0
41660
6a4db60af05b Prepare GSettings schemas and a default settings backend
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41396
diff changeset
127 */
42387
d9350cda1556 Export symbols added for 3.0.0
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42338
diff changeset
128 PURPLE_AVAILABLE_IN_3_0
41660
6a4db60af05b Prepare GSettings schemas and a default settings backend
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41396
diff changeset
129 gpointer purple_core_get_settings_backend(void);
6a4db60af05b Prepare GSettings schemas and a default settings backend
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41396
diff changeset
130
6a4db60af05b Prepare GSettings schemas and a default settings backend
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 41396
diff changeset
131 /**
43253
0cc00d7d6215 Create purple_core_new_settings
Gary Kramlich <grim@reaperworld.com>
parents: 43054
diff changeset
132 * purple_core_new_settings:
0cc00d7d6215 Create purple_core_new_settings
Gary Kramlich <grim@reaperworld.com>
parents: 43054
diff changeset
133 * @schema_id: the id of the schema
0cc00d7d6215 Create purple_core_new_settings
Gary Kramlich <grim@reaperworld.com>
parents: 43054
diff changeset
134 *
0cc00d7d6215 Create purple_core_new_settings
Gary Kramlich <grim@reaperworld.com>
parents: 43054
diff changeset
135 * Creates a new settings object using the preferred backend.
0cc00d7d6215 Create purple_core_new_settings
Gary Kramlich <grim@reaperworld.com>
parents: 43054
diff changeset
136 *
0cc00d7d6215 Create purple_core_new_settings
Gary Kramlich <grim@reaperworld.com>
parents: 43054
diff changeset
137 * Returns: (transfer full): The new instance.
0cc00d7d6215 Create purple_core_new_settings
Gary Kramlich <grim@reaperworld.com>
parents: 43054
diff changeset
138 *
0cc00d7d6215 Create purple_core_new_settings
Gary Kramlich <grim@reaperworld.com>
parents: 43054
diff changeset
139 * Since: 3.0
0cc00d7d6215 Create purple_core_new_settings
Gary Kramlich <grim@reaperworld.com>
parents: 43054
diff changeset
140 */
0cc00d7d6215 Create purple_core_new_settings
Gary Kramlich <grim@reaperworld.com>
parents: 43054
diff changeset
141 PURPLE_AVAILABLE_IN_3_0
0cc00d7d6215 Create purple_core_new_settings
Gary Kramlich <grim@reaperworld.com>
parents: 43054
diff changeset
142 GSettings *purple_core_new_settings(const char *schema_id);
0cc00d7d6215 Create purple_core_new_settings
Gary Kramlich <grim@reaperworld.com>
parents: 43054
diff changeset
143
0cc00d7d6215 Create purple_core_new_settings
Gary Kramlich <grim@reaperworld.com>
parents: 43054
diff changeset
144 /**
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents: 41660
diff changeset
145 * purple_core_get_ui:
6179
4df73df94250 [gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents: 6169
diff changeset
146 *
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents: 41660
diff changeset
147 * Gets the [class@Purple.Ui] that is running.
6179
4df73df94250 [gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents: 6169
diff changeset
148 *
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents: 41660
diff changeset
149 * Returns: (transfer none): The ui.
42409
35ac55f4809d Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
150 *
42612
d905313bc732 Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
151 * Since: 2.0
6179
4df73df94250 [gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents: 6169
diff changeset
152 */
42409
35ac55f4809d Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42387
diff changeset
153 PURPLE_AVAILABLE_IN_ALL
41867
5375c1d58c50 Create PurpleUi that merges PurpleCoreUiOps and PurpleUiInfo
Gary Kramlich <grim@reaperworld.com>
parents: 41660
diff changeset
154 PurpleUi *purple_core_get_ui(void);
18441
d255d04c0aa1 core support for UI info...now to do the UI piece
Nathan Walp <nwalp@pidgin.im>
parents: 18072
diff changeset
155
42473
c2cb3f628555 Update a bunch of gettext stuff
Gary Kramlich <grim@reaperworld.com>
parents: 42409
diff changeset
156 /**
42656
df9aafbae930 Add a doc-check unit test to libpurple and fix the issues it has found
Gary Kramlich <grim@reaperworld.com>
parents: 42612
diff changeset
157 * purple_get_locale_dir:
42473
c2cb3f628555 Update a bunch of gettext stuff
Gary Kramlich <grim@reaperworld.com>
parents: 42409
diff changeset
158 *
c2cb3f628555 Update a bunch of gettext stuff
Gary Kramlich <grim@reaperworld.com>
parents: 42409
diff changeset
159 * Gets the search directory for translations.
c2cb3f628555 Update a bunch of gettext stuff
Gary Kramlich <grim@reaperworld.com>
parents: 42409
diff changeset
160 *
c2cb3f628555 Update a bunch of gettext stuff
Gary Kramlich <grim@reaperworld.com>
parents: 42409
diff changeset
161 * This can be overridden by the `PURPLE_LOCALE_DIR` environment variable.
c2cb3f628555 Update a bunch of gettext stuff
Gary Kramlich <grim@reaperworld.com>
parents: 42409
diff changeset
162 *
c2cb3f628555 Update a bunch of gettext stuff
Gary Kramlich <grim@reaperworld.com>
parents: 42409
diff changeset
163 * Returns: The directory where translations should be searched for.
c2cb3f628555 Update a bunch of gettext stuff
Gary Kramlich <grim@reaperworld.com>
parents: 42409
diff changeset
164 *
42612
d905313bc732 Remove the micro version from since tags for libpurple part 1
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
165 * Since: 3.0
42473
c2cb3f628555 Update a bunch of gettext stuff
Gary Kramlich <grim@reaperworld.com>
parents: 42409
diff changeset
166 */
c2cb3f628555 Update a bunch of gettext stuff
Gary Kramlich <grim@reaperworld.com>
parents: 42409
diff changeset
167 PURPLE_AVAILABLE_IN_ALL
c2cb3f628555 Update a bunch of gettext stuff
Gary Kramlich <grim@reaperworld.com>
parents: 42409
diff changeset
168 const char *purple_get_locale_dir(void);
c2cb3f628555 Update a bunch of gettext stuff
Gary Kramlich <grim@reaperworld.com>
parents: 42409
diff changeset
169
32787
7072f190d6ad Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 32438
diff changeset
170 G_END_DECLS
6314
25bba03c42cd [gaim-migrate @ 6813]
Christian Hammond <chipx86@chipx86.com>
parents: 6182
diff changeset
171
39659
e4dfb99b0cef Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents: 39286
diff changeset
172 #endif /* PURPLE_CORE_H */
5862
1099a19a8351 [gaim-migrate @ 6293]
Sean Egan <seanegan@pidgin.im>
parents: 5859
diff changeset
173
1099a19a8351 [gaim-migrate @ 6293]
Sean Egan <seanegan@pidgin.im>
parents: 5859
diff changeset
174 /*
1099a19a8351 [gaim-migrate @ 6293]
Sean Egan <seanegan@pidgin.im>
parents: 5859
diff changeset
175
1099a19a8351 [gaim-migrate @ 6293]
Sean Egan <seanegan@pidgin.im>
parents: 5859
diff changeset
176 /===-
1099a19a8351 [gaim-migrate @ 6293]
Sean Egan <seanegan@pidgin.im>
parents: 5859
diff changeset
177 `//"\\ """"`---.___.-""
1099a19a8351 [gaim-migrate @ 6293]
Sean Egan <seanegan@pidgin.im>
parents: 5859
diff changeset
178 ______-==| | | \\ _-"`
1099a19a8351 [gaim-migrate @ 6293]
Sean Egan <seanegan@pidgin.im>
parents: 5859
diff changeset
179 __--""" ,-/-==\\ | | `\ ,'
1099a19a8351 [gaim-migrate @ 6293]
Sean Egan <seanegan@pidgin.im>
parents: 5859
diff changeset
180 _-" /' | \\ ___ / / \ /
1099a19a8351 [gaim-migrate @ 6293]
Sean Egan <seanegan@pidgin.im>
parents: 5859
diff changeset
181 .' / | \\ /" "\ /' / \ /'
6169
d23c0f0228ae [gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents: 5872
diff changeset
182 / ____ / | \`\.__/-"" D O \_/' / \/'
d23c0f0228ae [gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents: 5872
diff changeset
183 /-'" """""---__ | "-/" O G R /' _--"`
6179
4df73df94250 [gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents: 6169
diff changeset
184 \_| / R __--_ t ), __--""
4df73df94250 [gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents: 6169
diff changeset
185 '""--_/ T _-"_>--<_\ h '-" \
4df73df94250 [gaim-migrate @ 6664]
Christian Hammond <chipx86@chipx86.com>
parents: 6169
diff changeset
186 {\__--_/} / \\__>--<__\ e B \
6169
d23c0f0228ae [gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents: 5872
diff changeset
187 /' (_/ _-" | |__>--<__| U |
d23c0f0228ae [gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents: 5872
diff changeset
188 | _/) )-" | |__>--<__| R |
d23c0f0228ae [gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents: 5872
diff changeset
189 / /" ,_/ / /__>---<__/ N |
d23c0f0228ae [gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents: 5872
diff changeset
190 o-o _// /-"_>---<__-" I /
d23c0f0228ae [gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents: 5872
diff changeset
191 (^(" /"_>---<__- N _-"
d23c0f0228ae [gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents: 5872
diff changeset
192 ,/| /__>--<__/ A _-"
d23c0f0228ae [gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents: 5872
diff changeset
193 ,//('( |__>--<__| T / .----_
5862
1099a19a8351 [gaim-migrate @ 6293]
Sean Egan <seanegan@pidgin.im>
parents: 5859
diff changeset
194 ( ( ')) |__>--<__| | /' _---_"\
6169
d23c0f0228ae [gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents: 5872
diff changeset
195 `-)) )) ( |__>--<__| O | /' / "\`\
d23c0f0228ae [gaim-migrate @ 6652]
Christian Hammond <chipx86@chipx86.com>
parents: 5872
diff changeset
196 ,/,'//( ( \__>--<__\ R \ /' // ||
5862
1099a19a8351 [gaim-migrate @ 6293]
Sean Egan <seanegan@pidgin.im>
parents: 5859
diff changeset
197 ,( ( ((, )) "-__>--<_"-_ "--____---"' _/'/ /'
1099a19a8351 [gaim-migrate @ 6293]
Sean Egan <seanegan@pidgin.im>
parents: 5859
diff changeset
198 `"/ )` ) ,/| "-_">--<_/-__ __-" _/
1099a19a8351 [gaim-migrate @ 6293]
Sean Egan <seanegan@pidgin.im>
parents: 5859
diff changeset
199 ._-"//( )/ )) ` ""-'_/_/ /"""""""__--"
1099a19a8351 [gaim-migrate @ 6293]
Sean Egan <seanegan@pidgin.im>
parents: 5859
diff changeset
200 ;'( ')/ ,)( """"""""""
1099a19a8351 [gaim-migrate @ 6293]
Sean Egan <seanegan@pidgin.im>
parents: 5859
diff changeset
201 ' ') '( (/
1099a19a8351 [gaim-migrate @ 6293]
Sean Egan <seanegan@pidgin.im>
parents: 5859
diff changeset
202 ' ' `
1099a19a8351 [gaim-migrate @ 6293]
Sean Egan <seanegan@pidgin.im>
parents: 5859
diff changeset
203
1099a19a8351 [gaim-migrate @ 6293]
Sean Egan <seanegan@pidgin.im>
parents: 5859
diff changeset
204 */

mercurial