libpurple/purplepresencemanagerprivate.h

Tue, 10 Sep 2024 01:31:09 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Tue, 10 Sep 2024 01:31:09 -0500
changeset 42929
e9cc6fc1f717
parent 42615
2f3308794a8f
permissions
-rw-r--r--

Update Purple.NotificationAuthorizationRequest to take an id and auto populate account

This also removed the duplication in purplenotification.c.

Testing Done:
Ran the unit tests under valgrind and called in the turtles for the rest.

Bugs closed: PIDGIN-17939

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

42475
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /*
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 * Purple - Internet Messaging Library
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 *
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 * Purple is the legal property of its developers, whose names are too numerous
42595
e2078e5dc55c Remove duplicate private headers variable, and fix corresponding license headers
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42475
diff changeset
6 * to list here. Please refer to the COPYRIGHT file distributed with this
42475
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 * source distribution.
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 *
42595
e2078e5dc55c Remove duplicate private headers variable, and fix corresponding license headers
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42475
diff changeset
9 * This library is free software; you can redistribute it and/or modify it
e2078e5dc55c Remove duplicate private headers variable, and fix corresponding license headers
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42475
diff changeset
10 * under the terms of the GNU General Public License as published by the Free
e2078e5dc55c Remove duplicate private headers variable, and fix corresponding license headers
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42475
diff changeset
11 * Software Foundation; either version 2 of the License, or (at your option)
e2078e5dc55c Remove duplicate private headers variable, and fix corresponding license headers
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42475
diff changeset
12 * any later version.
42475
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 *
42595
e2078e5dc55c Remove duplicate private headers variable, and fix corresponding license headers
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42475
diff changeset
14 * This library is distributed in the hope that it will be useful, but WITHOUT
e2078e5dc55c Remove duplicate private headers variable, and fix corresponding license headers
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42475
diff changeset
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
e2078e5dc55c Remove duplicate private headers variable, and fix corresponding license headers
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42475
diff changeset
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
e2078e5dc55c Remove duplicate private headers variable, and fix corresponding license headers
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42475
diff changeset
17 * more details.
42475
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 *
42595
e2078e5dc55c Remove duplicate private headers variable, and fix corresponding license headers
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42475
diff changeset
19 * You should have received a copy of the GNU General Public License along with
e2078e5dc55c Remove duplicate private headers variable, and fix corresponding license headers
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents: 42475
diff changeset
20 * this library; if not, see <https://www.gnu.org/licenses/>.
42475
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21 */
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
23 #ifndef PURPLE_COMPILATION
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
24 # error "purplepresencemanagerprivate.h may only be include by libpurple"
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
25 #endif
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27 #ifndef PURPLE_PRESENCE_MANAGER_PRIVATE_H
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
28 #define PURPLE_PRESENCE_MANAGER_PRIVATE_H
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
30 #include <glib.h>
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32 G_BEGIN_DECLS
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
33
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
34 /**
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
35 * purple_presence_manager_startup: (skip)
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
36 *
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
37 * This will ask the UI what [class@PresenceManager] should be used and caches
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
38 * it for use with [func@PresenceManager.get_default].
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
39 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42595
diff changeset
40 * Since: 3.0
42475
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
41 */
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
42 G_GNUC_INTERNAL void purple_presence_manager_startup(void);
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
43
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
44 /**
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
45 * purple_presence_manager_shutdown: (skip)
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
46 *
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
47 * Clears the references to the default manager if one exists.
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
48 *
42615
2f3308794a8f Remove the micro version from since tags for libpurple part 4
Gary Kramlich <grim@reaperworld.com>
parents: 42595
diff changeset
49 * Since: 3.0
42475
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
50 */
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
51 G_GNUC_INTERNAL void purple_presence_manager_shutdown(void);
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
52
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
53 G_END_DECLS
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
54
ce06ca18db9b Integrate PurplePresenceManager with the core and uis
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
55 #endif /* PURPLE_PRESENCE_MANAGER_PRIVATE_H */

mercurial