libpurple/purpleprivate.h

Sat, 13 Apr 2024 21:21:59 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Sat, 13 Apr 2024 21:21:59 -0500
changeset 42715
f886f74847b0
parent 42706
6039c89f2f5c
child 42725
ceb13f1de2d2
permissions
-rw-r--r--

Remove PurpleIMConversation and PurpleProtocolIM

Both of these have been replaced and needed to be removed.

Testing Done:
Checked in with our turtle buddies.

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

40439
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /*
42594
eddde70cedd8 Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents: 42444
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: 42444
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
40439
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 *
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
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: 42444
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
40439
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 * source distribution.
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
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: 42444
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: 42444
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: 42444
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: 42444
diff changeset
12 * any later version.
40439
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.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: 42444
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: 42444
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: 42444
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: 42444
diff changeset
17 * more details.
40439
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.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: 42444
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: 42444
diff changeset
20 * this library; if not, see <https://www.gnu.org/licenses/>.
40439
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21 */
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22
40474
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40440
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: 40440
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: 40440
diff changeset
25 #endif
1341be8e3402 Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents: 40440
diff changeset
26
40439
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27 #ifndef PURPLE_PRIVATE_H
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
28 #define PURPLE_PRIVATE_H
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
30 #include <glib.h>
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31 #include <glib/gstdio.h>
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
33 #include "accounts.h"
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
34 #include "connection.h"
40823
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
35 #include "purplecredentialprovider.h"
41090
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
36 #include "purplehistoryadapter.h"
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
37 #include "purpleversion.h"
40439
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
38
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
39 G_BEGIN_DECLS
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
40
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
41 /**
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
42 * _purple_account_to_xmlnode:
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
43 * @account: The account
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
44 *
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
45 * Get an XML description of an account.
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
46 *
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
47 * Returns: The XML description of the account.
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
48 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
49 G_GNUC_INTERNAL
40439
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
50 PurpleXmlNode *_purple_account_to_xmlnode(PurpleAccount *account);
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
51
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
52 /**
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
53 * _purple_blist_get_last_child:
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
54 * @node: The node whose last child is to be retrieved.
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
55 *
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
56 * Returns the last child of a particular node.
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
57 *
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
58 * Returns: The last child of the node.
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
59 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
60 G_GNUC_INTERNAL
40439
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
61 PurpleBlistNode *_purple_blist_get_last_child(PurpleBlistNode *node);
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
62
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
63 /* This is for the accounts code to notify the buddy icon code that
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
64 * it's done loading. We may want to replace this with a signal. */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
65 G_GNUC_INTERNAL
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
66 void _purple_buddy_icons_account_loaded_cb(void);
40439
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
67
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
68 /* This is for the buddy list to notify the buddy icon code that
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
69 * it's done loading. We may want to replace this with a signal. */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
70 G_GNUC_INTERNAL
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
71 void _purple_buddy_icons_blist_loaded_cb(void);
40439
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
72
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
73 /**
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
74 * _purple_connection_wants_to_die:
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
75 * @gc: The connection to check
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
76 *
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
77 * Checks if a connection is disconnecting, and should not attempt to reconnect.
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
78 *
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
79 * Note: This function should only be called by purple_account_set_enabled()
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
80 * in account.c.
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
81 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
82 G_GNUC_INTERNAL
40439
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
83 gboolean _purple_connection_wants_to_die(PurpleConnection *gc);
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
84
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
85 /**
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
86 * _purple_statuses_get_primitive_scores:
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
87 *
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
88 * Note: This function should only be called by
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
89 * purple_buddy_presence_compute_score() in presence.c.
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
90 *
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
91 * Returns: The primitive scores array from status.c.
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
92 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
93 G_GNUC_INTERNAL
40439
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
94 int *_purple_statuses_get_primitive_scores(void);
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
95
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
96 /**
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
97 * _purple_conversation_write_common:
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
98 * @conv: The conversation.
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
99 * @msg: The message.
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
100 *
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
101 * Writes to a conversation window.
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
102 *
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
103 * This function should not be used to write IM or chat messages. Use
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
104 * purple_conversation_write_message() instead. This function will
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
105 * most likely call this anyway, but it may do it's own formatting,
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
106 * sound playback, etc. depending on whether the conversation is a chat or an
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
107 * IM.
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
108 *
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
109 * See purple_conversation_write_message().
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
110 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
111 G_GNUC_INTERNAL
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
112 void _purple_conversation_write_common(PurpleConversation *conv, PurpleMessage *msg);
40439
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
113
40583
28964322556c Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents: 40541
diff changeset
114 /**
41181
e859c41d8996 Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents: 41090
diff changeset
115 * purple_account_manager_startup:
e859c41d8996 Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents: 41090
diff changeset
116 *
e859c41d8996 Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents: 41090
diff changeset
117 * Starts up the account manager by creating the default instance.
e859c41d8996 Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents: 41090
diff changeset
118 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
119 * Since: 3.0
41181
e859c41d8996 Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents: 41090
diff changeset
120 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
121 G_GNUC_INTERNAL
41181
e859c41d8996 Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents: 41090
diff changeset
122 void purple_account_manager_startup(void);
e859c41d8996 Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents: 41090
diff changeset
123
e859c41d8996 Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents: 41090
diff changeset
124 /**
e859c41d8996 Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents: 41090
diff changeset
125 * purple_account_manager_shutdown:
e859c41d8996 Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents: 41090
diff changeset
126 *
e859c41d8996 Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents: 41090
diff changeset
127 * Shuts down the account manager by destroying the default instance.
e859c41d8996 Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents: 41090
diff changeset
128 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
129 * Since: 3.0
41181
e859c41d8996 Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents: 41090
diff changeset
130 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
131 G_GNUC_INTERNAL
41181
e859c41d8996 Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents: 41090
diff changeset
132 void purple_account_manager_shutdown(void);
e859c41d8996 Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents: 41090
diff changeset
133
e859c41d8996 Create the PurpleAccountManager API
Gary Kramlich <grim@reaperworld.com>
parents: 41090
diff changeset
134 /**
41754
abf413211063 Create the new PurpleContactManager
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
135 * purple_contact_manager_startup:
abf413211063 Create the new PurpleContactManager
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
136 *
abf413211063 Create the new PurpleContactManager
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
137 * Starts up the contact manager by creating the default instance.
abf413211063 Create the new PurpleContactManager
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
138 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
139 * Since: 3.0
41754
abf413211063 Create the new PurpleContactManager
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
140 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
141 G_GNUC_INTERNAL
41754
abf413211063 Create the new PurpleContactManager
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
142 void purple_contact_manager_startup(void);
abf413211063 Create the new PurpleContactManager
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
143
abf413211063 Create the new PurpleContactManager
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
144 /**
abf413211063 Create the new PurpleContactManager
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
145 * purple_contact_manager_shutdown:
abf413211063 Create the new PurpleContactManager
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
146 *
abf413211063 Create the new PurpleContactManager
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
147 * Shuts down the contact manager by destroying the default instance.
abf413211063 Create the new PurpleContactManager
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
148 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
149 * Since: 3.0
41754
abf413211063 Create the new PurpleContactManager
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
150 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
151 G_GNUC_INTERNAL
41754
abf413211063 Create the new PurpleContactManager
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
152 void purple_contact_manager_shutdown(void);
abf413211063 Create the new PurpleContactManager
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
153
abf413211063 Create the new PurpleContactManager
Gary Kramlich <grim@reaperworld.com>
parents: 41433
diff changeset
154 /**
40948
2c312f084d84 Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents: 40823
diff changeset
155 * purple_conversation_manager_startup:
2c312f084d84 Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents: 40823
diff changeset
156 *
2c312f084d84 Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents: 40823
diff changeset
157 * Starts up the conversation manager by creating the default instance.
2c312f084d84 Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents: 40823
diff changeset
158 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
159 * Since: 3.0
40948
2c312f084d84 Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents: 40823
diff changeset
160 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
161 G_GNUC_INTERNAL
40948
2c312f084d84 Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents: 40823
diff changeset
162 void purple_conversation_manager_startup(void);
2c312f084d84 Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents: 40823
diff changeset
163
2c312f084d84 Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents: 40823
diff changeset
164 /**
2c312f084d84 Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents: 40823
diff changeset
165 * purple_conversation_manager_shutdown:
2c312f084d84 Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents: 40823
diff changeset
166 *
2c312f084d84 Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents: 40823
diff changeset
167 * Shuts down the conversation manager by destroying the default instance.
2c312f084d84 Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents: 40823
diff changeset
168 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
169 * Since: 3.0
40948
2c312f084d84 Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents: 40823
diff changeset
170 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
171 G_GNUC_INTERNAL
40948
2c312f084d84 Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents: 40823
diff changeset
172 void purple_conversation_manager_shutdown(void);
2c312f084d84 Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents: 40823
diff changeset
173
2c312f084d84 Create a manager for conversations.
Gary Kramlich <grim@reaperworld.com>
parents: 40823
diff changeset
174 /**
40583
28964322556c Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents: 40541
diff changeset
175 * purple_credential_manager_startup:
28964322556c Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents: 40541
diff changeset
176 *
28964322556c Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents: 40541
diff changeset
177 * Starts up the credential manager by creating the default instance.
40823
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
178 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
179 * Since: 3.0
40583
28964322556c Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents: 40541
diff changeset
180 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
181 G_GNUC_INTERNAL
40583
28964322556c Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents: 40541
diff changeset
182 void purple_credential_manager_startup(void);
28964322556c Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents: 40541
diff changeset
183
28964322556c Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents: 40541
diff changeset
184 /**
28964322556c Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents: 40541
diff changeset
185 * purple_credential_manager_shutdown:
28964322556c Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents: 40541
diff changeset
186 *
28964322556c Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents: 40541
diff changeset
187 * Shuts down the credential manager by destroying the default instance.
40823
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
188 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
189 * Since: 3.0
40583
28964322556c Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents: 40541
diff changeset
190 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
191 G_GNUC_INTERNAL
40583
28964322556c Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents: 40541
diff changeset
192 void purple_credential_manager_shutdown(void);
28964322556c Add the new PurpleCredentialManager API
Gary Kramlich <grim@reaperworld.com>
parents: 40541
diff changeset
193
40735
cc0679f47fd9 Create a new PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents: 40583
diff changeset
194 /**
40822
4946be291bc3 Fix some typos in the doc strings in purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents: 40769
diff changeset
195 * purple_protocol_manager_startup:
40735
cc0679f47fd9 Create a new PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents: 40583
diff changeset
196 *
cc0679f47fd9 Create a new PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents: 40583
diff changeset
197 * Starts up the protocol manager by creating the default instance.
40823
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
198 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
199 * Since: 3.0
40735
cc0679f47fd9 Create a new PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents: 40583
diff changeset
200 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
201 G_GNUC_INTERNAL
40735
cc0679f47fd9 Create a new PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents: 40583
diff changeset
202 void purple_protocol_manager_startup(void);
cc0679f47fd9 Create a new PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents: 40583
diff changeset
203
cc0679f47fd9 Create a new PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents: 40583
diff changeset
204 /**
cc0679f47fd9 Create a new PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents: 40583
diff changeset
205 * purple_protocol_manager_shutdown:
cc0679f47fd9 Create a new PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents: 40583
diff changeset
206 *
40822
4946be291bc3 Fix some typos in the doc strings in purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents: 40769
diff changeset
207 * Shuts down the protocol manager by destroying the default instance.
40823
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
208 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
209 * Since: 3.0
40735
cc0679f47fd9 Create a new PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents: 40583
diff changeset
210 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
211 G_GNUC_INTERNAL
40735
cc0679f47fd9 Create a new PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents: 40583
diff changeset
212 void purple_protocol_manager_shutdown(void);
cc0679f47fd9 Create a new PurpleProtocolManager
Gary Kramlich <grim@reaperworld.com>
parents: 40583
diff changeset
213
40823
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
214 /**
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
215 * purple_credential_provider_activate:
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
216 * @provider: The #PurpleCredentialProvider instance.
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
217 *
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
218 * Tells a @provider that it has become the active provider.
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
219 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
220 * Since: 3.0
40823
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
221 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
222 G_GNUC_INTERNAL
40823
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
223 void purple_credential_provider_activate(PurpleCredentialProvider *provider);
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
224
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
225 /**
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
226 * purple_credential_provider_deactivate:
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
227 * @provider: The #PurpleCredentialProvider instance.
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
228 *
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
229 * Tells @provider that another #PurpleCredentialProvider has become the active
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
230 * provider.
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
231 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
232 * Since: 3.0
40823
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
233 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
234 G_GNUC_INTERNAL
40823
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
235 void purple_credential_provider_deactivate(PurpleCredentialProvider *provider);
338bba38df77 Port the KWallet Keyring to the new CredentialProvider API.
Gary Kramlich <grim@reaperworld.com>
parents: 40822
diff changeset
236
41040
4be2eda9548a Create PurpleWhiteboardManager for managing whiteboards
Gary Kramlich <grim@reaperworld.com>
parents: 40948
diff changeset
237 /**
41090
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
238 * purple_history_adapter_activate:
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
239 * @adapter: The #PurpleHistoryAdapter instance.
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
240 * @error: A return address for a #GError.
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
241 *
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
242 * Asks @adapter to become the active adapter. If @adapter can not become active
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
243 * it should return %FALSE and set @error.
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
244 *
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
245 * NOTE: This is public only for tests. Do not use outside of libpurple.
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
246 *
41090
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
247 * Returns: %TRUE on success otherwise %FALSE with @error set.
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
248 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
249 * Since: 3.0
41090
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
250 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
251 PURPLE_AVAILABLE_IN_3_0
41090
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
252 gboolean purple_history_adapter_activate(PurpleHistoryAdapter *adapter, GError **error);
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
253
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
254 /**
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
255 * purple_history_adapter_deactivate:
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
256 * @adapter: The #PurpleHistoryAdapter instance.
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
257 * @error: A return address for a #GError.
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
258 *
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
259 * Asks @adapter to stop being the active adapter. If @adapter can not
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
260 * deactivate it should return %FALSE and set @error.
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
261 *
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
262 * NOTE: This is public only for tests. Do not use outside of libpurple.
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
263 *
41090
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
264 * Returns: %TRUE on success otherwise %FALSE with @error set.
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
265 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
266 * Since: 3.0
41090
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
267 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
268 PURPLE_AVAILABLE_IN_3_0
41090
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
269 gboolean purple_history_adapter_deactivate(PurpleHistoryAdapter *adapter, GError **error);
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
270
741992355ead GSoC History API including sqlite history adapter
James Culver <rewtguy@gmail.com>
parents: 41083
diff changeset
271 /**
42644
efe66edc9676 Fix media leaks
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42615
diff changeset
272 * purple_media_manager_shutdown:
efe66edc9676 Fix media leaks
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42615
diff changeset
273 *
efe66edc9676 Fix media leaks
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42615
diff changeset
274 * Shuts down the media manager by destroying the default instance.
efe66edc9676 Fix media leaks
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42615
diff changeset
275 *
efe66edc9676 Fix media leaks
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42615
diff changeset
276 * Since: 3.0
efe66edc9676 Fix media leaks
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42615
diff changeset
277 */
efe66edc9676 Fix media leaks
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42615
diff changeset
278 G_GNUC_INTERNAL
efe66edc9676 Fix media leaks
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42615
diff changeset
279 void purple_media_manager_shutdown(void);
efe66edc9676 Fix media leaks
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42615
diff changeset
280
efe66edc9676 Fix media leaks
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42615
diff changeset
281 /**
41433
d563b345a096 Phase 1 of the Notifications API
Gary Kramlich <grim@reaperworld.com>
parents: 41181
diff changeset
282 * purple_notification_manager_startup:
d563b345a096 Phase 1 of the Notifications API
Gary Kramlich <grim@reaperworld.com>
parents: 41181
diff changeset
283 *
d563b345a096 Phase 1 of the Notifications API
Gary Kramlich <grim@reaperworld.com>
parents: 41181
diff changeset
284 * Starts up the notification manager by creating the default instance.
d563b345a096 Phase 1 of the Notifications API
Gary Kramlich <grim@reaperworld.com>
parents: 41181
diff changeset
285 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
286 * Since: 3.0
41433
d563b345a096 Phase 1 of the Notifications API
Gary Kramlich <grim@reaperworld.com>
parents: 41181
diff changeset
287 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
288 G_GNUC_INTERNAL
41433
d563b345a096 Phase 1 of the Notifications API
Gary Kramlich <grim@reaperworld.com>
parents: 41181
diff changeset
289 void purple_notification_manager_startup(void);
d563b345a096 Phase 1 of the Notifications API
Gary Kramlich <grim@reaperworld.com>
parents: 41181
diff changeset
290
d563b345a096 Phase 1 of the Notifications API
Gary Kramlich <grim@reaperworld.com>
parents: 41181
diff changeset
291 /**
d563b345a096 Phase 1 of the Notifications API
Gary Kramlich <grim@reaperworld.com>
parents: 41181
diff changeset
292 * purple_notification_manager_shutdown:
d563b345a096 Phase 1 of the Notifications API
Gary Kramlich <grim@reaperworld.com>
parents: 41181
diff changeset
293 *
d563b345a096 Phase 1 of the Notifications API
Gary Kramlich <grim@reaperworld.com>
parents: 41181
diff changeset
294 * Shuts down the notification manager by destroying the default instance.
d563b345a096 Phase 1 of the Notifications API
Gary Kramlich <grim@reaperworld.com>
parents: 41181
diff changeset
295 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
296 * Since: 3.0
41433
d563b345a096 Phase 1 of the Notifications API
Gary Kramlich <grim@reaperworld.com>
parents: 41181
diff changeset
297 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
298 G_GNUC_INTERNAL
41433
d563b345a096 Phase 1 of the Notifications API
Gary Kramlich <grim@reaperworld.com>
parents: 41181
diff changeset
299 void purple_notification_manager_shutdown(void);
d563b345a096 Phase 1 of the Notifications API
Gary Kramlich <grim@reaperworld.com>
parents: 41181
diff changeset
300
d563b345a096 Phase 1 of the Notifications API
Gary Kramlich <grim@reaperworld.com>
parents: 41181
diff changeset
301 /**
41040
4be2eda9548a Create PurpleWhiteboardManager for managing whiteboards
Gary Kramlich <grim@reaperworld.com>
parents: 40948
diff changeset
302 * purple_whiteboard_manager_startup:
4be2eda9548a Create PurpleWhiteboardManager for managing whiteboards
Gary Kramlich <grim@reaperworld.com>
parents: 40948
diff changeset
303 *
4be2eda9548a Create PurpleWhiteboardManager for managing whiteboards
Gary Kramlich <grim@reaperworld.com>
parents: 40948
diff changeset
304 * Starts up the whiteboard manager by creating the default instance.
4be2eda9548a Create PurpleWhiteboardManager for managing whiteboards
Gary Kramlich <grim@reaperworld.com>
parents: 40948
diff changeset
305 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
306 * Since: 3.0
41040
4be2eda9548a Create PurpleWhiteboardManager for managing whiteboards
Gary Kramlich <grim@reaperworld.com>
parents: 40948
diff changeset
307 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
308 G_GNUC_INTERNAL
41040
4be2eda9548a Create PurpleWhiteboardManager for managing whiteboards
Gary Kramlich <grim@reaperworld.com>
parents: 40948
diff changeset
309 void purple_whiteboard_manager_startup(void);
4be2eda9548a Create PurpleWhiteboardManager for managing whiteboards
Gary Kramlich <grim@reaperworld.com>
parents: 40948
diff changeset
310
4be2eda9548a Create PurpleWhiteboardManager for managing whiteboards
Gary Kramlich <grim@reaperworld.com>
parents: 40948
diff changeset
311 /**
4be2eda9548a Create PurpleWhiteboardManager for managing whiteboards
Gary Kramlich <grim@reaperworld.com>
parents: 40948
diff changeset
312 * purple_whiteboard_manager_shutdown:
4be2eda9548a Create PurpleWhiteboardManager for managing whiteboards
Gary Kramlich <grim@reaperworld.com>
parents: 40948
diff changeset
313 *
4be2eda9548a Create PurpleWhiteboardManager for managing whiteboards
Gary Kramlich <grim@reaperworld.com>
parents: 40948
diff changeset
314 * Shuts down the whiteboard manager by destroying the default instance.
4be2eda9548a Create PurpleWhiteboardManager for managing whiteboards
Gary Kramlich <grim@reaperworld.com>
parents: 40948
diff changeset
315 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
316 * Since: 3.0
41040
4be2eda9548a Create PurpleWhiteboardManager for managing whiteboards
Gary Kramlich <grim@reaperworld.com>
parents: 40948
diff changeset
317 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
318 G_GNUC_INTERNAL
41040
4be2eda9548a Create PurpleWhiteboardManager for managing whiteboards
Gary Kramlich <grim@reaperworld.com>
parents: 40948
diff changeset
319 void purple_whiteboard_manager_shutdown(void);
4be2eda9548a Create PurpleWhiteboardManager for managing whiteboards
Gary Kramlich <grim@reaperworld.com>
parents: 40948
diff changeset
320
41830
5bc664b848a5 Work around an issue where accounts were attempting to connect when they were deserialized
Gary Kramlich <grim@reaperworld.com>
parents: 41754
diff changeset
321 /**
5bc664b848a5 Work around an issue where accounts were attempting to connect when they were deserialized
Gary Kramlich <grim@reaperworld.com>
parents: 41754
diff changeset
322 * purple_account_set_enabled_plain:
5bc664b848a5 Work around an issue where accounts were attempting to connect when they were deserialized
Gary Kramlich <grim@reaperworld.com>
parents: 41754
diff changeset
323 * @account: The instance.
5bc664b848a5 Work around an issue where accounts were attempting to connect when they were deserialized
Gary Kramlich <grim@reaperworld.com>
parents: 41754
diff changeset
324 * @enabled: Whether or not the account is enabled.
5bc664b848a5 Work around an issue where accounts were attempting to connect when they were deserialized
Gary Kramlich <grim@reaperworld.com>
parents: 41754
diff changeset
325 *
5bc664b848a5 Work around an issue where accounts were attempting to connect when they were deserialized
Gary Kramlich <grim@reaperworld.com>
parents: 41754
diff changeset
326 * This is a temporary method until we overhaul serialization of accounts.
5bc664b848a5 Work around an issue where accounts were attempting to connect when they were deserialized
Gary Kramlich <grim@reaperworld.com>
parents: 41754
diff changeset
327 *
5bc664b848a5 Work around an issue where accounts were attempting to connect when they were deserialized
Gary Kramlich <grim@reaperworld.com>
parents: 41754
diff changeset
328 * This method sets the enabled state of an account without any side effects.
5bc664b848a5 Work around an issue where accounts were attempting to connect when they were deserialized
Gary Kramlich <grim@reaperworld.com>
parents: 41754
diff changeset
329 * Its primary usage is when loading accounts from disk, as without this, the
5bc664b848a5 Work around an issue where accounts were attempting to connect when they were deserialized
Gary Kramlich <grim@reaperworld.com>
parents: 41754
diff changeset
330 * account attempts to connect immediately.
5bc664b848a5 Work around an issue where accounts were attempting to connect when they were deserialized
Gary Kramlich <grim@reaperworld.com>
parents: 41754
diff changeset
331 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42594
diff changeset
332 * Since: 3.0
41830
5bc664b848a5 Work around an issue where accounts were attempting to connect when they were deserialized
Gary Kramlich <grim@reaperworld.com>
parents: 41754
diff changeset
333 */
42444
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
334 G_GNUC_INTERNAL
6d129ecb4b6f Mark private libpurple API as internal
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42389
diff changeset
335 void purple_account_set_enabled_plain(PurpleAccount *account, gboolean enabled);
41830
5bc664b848a5 Work around an issue where accounts were attempting to connect when they were deserialized
Gary Kramlich <grim@reaperworld.com>
parents: 41754
diff changeset
336
40439
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
337 G_END_DECLS
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
338
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
339 #endif /* PURPLE_PRIVATE_H */
e9838d634d5e Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
340

mercurial