Fri, 27 May 2022 14:52:34 -0500
Convert plugin actions to GMenu and GAction
Also ported the idle maker plugin to the new api.
Testing Done:
Made sure all of the actions for the idle maker plugin worked.
Reviewed at https://reviews.imfreedom.org/r/1408/
|
40963
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | /* |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | * This library is free software; you can redistribute it and/or |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
6 | * modify it under the terms of the GNU Lesser General Public |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | * License as published by the Free Software Foundation; either |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | * version 2 of the License, or (at your option) any later version. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
9 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
10 | * This library is distributed in the hope that it will be useful, |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | * Lesser General Public License for more details. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
14 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
15 | * You should have received a copy of the GNU Lesser General Public |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
16 | * License along with this library; if not, see <https://www.gnu.org/licenses/>. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
17 | */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
19 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
20 | # error "only <purple.h> may be included directly" |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
21 | #endif |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
22 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
23 | #ifndef PURPLE_PLUGIN_INFO_H |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
24 | #define PURPLE_PLUGIN_INFO_H |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
25 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
26 | #include <glib.h> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
27 | |
|
41414
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
28 | #include <gio/gio.h> |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
29 | |
|
40963
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | #include <gplugin.h> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | #include <gplugin-native.h> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
32 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
33 | #include "pluginpref.h" |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
34 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
35 | /** |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
36 | * PURPLE_TYPE_PLUGIN_INFO: |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
37 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
38 | * The standard _get_type macro for #PurplePluginInfo. |
|
41010
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
39 | * |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
40 | * Since: 3.0.0 |
|
40963
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
41 | */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
42 | #define PURPLE_TYPE_PLUGIN_INFO (purple_plugin_info_get_type()) |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
43 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
44 | /** |
|
41205
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
45 | * PurplePluginInfo: |
|
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
46 | * |
|
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
47 | * #PurplePluginInfo is a #GPluginPluginInfo subclass that adds additional |
|
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
48 | * libpurple specific properties. |
|
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
49 | * |
|
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
50 | * Since: 3.0.0 |
|
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
51 | */ |
|
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
52 | |
|
c5513eb740aa
Remove unnecessary gtk-doc comments and move them where possible from libpurple/purple[o-z]*.h
Gary Kramlich <grim@reaperworld.com>
parents:
41010
diff
changeset
|
53 | /** |
|
40963
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
54 | * purple_plugin_info_get_type: |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
55 | * |
|
41010
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
56 | * The standard _get_type function for #PurplePluginInfo. |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
57 | * |
|
40963
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
58 | * Returns: The #GType for the #PurplePluginInfo object. |
|
41010
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
59 | * |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
60 | * Since: 3.0.0 |
|
40963
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
61 | */ |
|
41010
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
62 | G_DECLARE_DERIVABLE_TYPE(PurplePluginInfo, purple_plugin_info, PURPLE, |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
63 | PLUGIN_INFO, GPluginPluginInfo) |
|
40963
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
64 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
65 | #include "plugins.h" |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
66 | |
|
41010
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
67 | /** |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
68 | * PurplePluginInfoClass: |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
69 | * |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
70 | * An opaque type representing the class of a #PurplePluginInfo. |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
71 | * |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
72 | * Since: 3.0.0 |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
73 | */ |
|
40963
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
74 | struct _PurplePluginInfoClass { |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
75 | /*< private >*/ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
76 | GPluginPluginInfoClass parent; |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
77 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
78 | gpointer reserved[4]; |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
79 | }; |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
80 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
81 | /** |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
82 | * PurplePluginActionsCb: |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
83 | * @plugin: the plugin associated with this callback. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
84 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
85 | * Returns a list of actions the plugin can perform. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
86 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
87 | * Returns: (transfer none): A list of actions the plugin can perform. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
88 | */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
89 | typedef GList *(*PurplePluginActionsCb)(PurplePlugin *plugin); |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
90 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
91 | /** |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
92 | * PurplePluginExtraCb: |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
93 | * @plugin: the plugin associated with this callback. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
94 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
95 | * Gives extra information about the plguin. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
96 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
97 | * Returns: a newly allocated string denoting extra information |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
98 | * about a plugin. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
99 | */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
100 | typedef gchar *(*PurplePluginExtraCb)(PurplePlugin *plugin); |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
101 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
102 | /** |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
103 | * PurplePluginPrefFrameCb: |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
104 | * @plugin: the plugin associated with this callback. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
105 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
106 | * Returns the preferences frame for the plugin. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
107 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
108 | * Returns: Preference frame. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
109 | */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
110 | typedef PurplePluginPrefFrame *(*PurplePluginPrefFrameCb)(PurplePlugin *plugin); |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
111 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
112 | /** |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
113 | * PurplePrefRequestCb: |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
114 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
115 | * Returns the preferences request handle for a plugin. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
116 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
117 | * Returns: Preferences request handle. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
118 | */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
119 | typedef gpointer (*PurplePluginPrefRequestCb)(PurplePlugin *plugin); |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
120 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
121 | /** |
|
41010
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
122 | * PURPLE_TYPE_PLUGIN_INFO_FLAGS: |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
123 | * |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
124 | * The standard type macro for #PurplePluginInfoFlags. |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
125 | */ |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
126 | |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
127 | /** |
|
40963
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
128 | * PurplePluginInfoFlags: |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
129 | * @PURPLE_PLUGIN_INFO_FLAGS_INTERNAL: Plugin is not shown in UI lists |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
130 | * @PURPLE_PLUGIN_INFO_FLAGS_AUTO_LOAD: Auto-load the plugin |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
131 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
132 | * Flags that can be used to treat plugins differently. |
|
41010
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
133 | * |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
134 | * Since: 3.0.0 |
|
40963
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
135 | */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
136 | typedef enum /*< flags >*/ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
137 | { |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
138 | PURPLE_PLUGIN_INFO_FLAGS_INTERNAL = 1 << 1, |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
139 | PURPLE_PLUGIN_INFO_FLAGS_AUTO_LOAD = 1 << 2, |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
140 | } PurplePluginInfoFlags; |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
141 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
142 | /** |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
143 | * PURPLE_PLUGIN_ABI_VERSION: |
|
41010
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
144 | * @major: The major version of libpurple to target. |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
145 | * @minor: The minor version of libpurple to target. |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
146 | * |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
147 | * Packs @major and @minor into an integer to be used as an abi version for |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
148 | * gplugin. |
|
40963
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
149 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
150 | * Note: The lower six nibbles represent the ABI version for libpurple, the |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
151 | * rest are required by GPlugin. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
152 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
153 | * Returns: An ABI version to set in plugins using major and minor versions. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
154 | */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
155 | #define PURPLE_PLUGIN_ABI_VERSION(major,minor) \ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
156 | (0x01000000 | ((major) << 16) | (minor)) |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
157 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
158 | /** |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
159 | * PURPLE_PLUGIN_ABI_MAJOR_VERSION: |
|
41010
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
160 | * @abi: The abi version. |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
161 | * |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
162 | * Extracts the purple major version from @abi. |
|
40963
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
163 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
164 | * Returns: The major version from an ABI version |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
165 | */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
166 | #define PURPLE_PLUGIN_ABI_MAJOR_VERSION(abi) \ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
167 | ((abi >> 16) & 0xff) |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
168 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
169 | /** |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
170 | * PURPLE_PLUGIN_ABI_MINOR_VERSION: |
|
41010
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
171 | * @abi: The abi version. |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
172 | * |
|
d0abbb616bea
A bunch of random libpurple documentation fixes
Gary Kramlich <grim@reaperworld.com>
parents:
40963
diff
changeset
|
173 | * Extracts the purple minor version from @abi. |
|
40963
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
174 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
175 | * Returns: The minor version from an ABI version |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
176 | */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
177 | #define PURPLE_PLUGIN_ABI_MINOR_VERSION(abi) \ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
178 | (abi & 0xffff) |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
179 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
180 | /** |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
181 | * PURPLE_ABI_VERSION: |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
182 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
183 | * A convenience macro that returns an ABI version using PURPLE_MAJOR_VERSION |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
184 | * and PURPLE_MINOR_VERSION |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
185 | */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
186 | #define PURPLE_ABI_VERSION PURPLE_PLUGIN_ABI_VERSION(PURPLE_MAJOR_VERSION, PURPLE_MINOR_VERSION) |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
187 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
188 | G_BEGIN_DECLS |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
189 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
190 | /** |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
191 | * purple_plugin_info_new: |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
192 | * @first_property: The first property name |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
193 | * @...: The value of the first property, followed optionally by more |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
194 | * name/value pairs, followed by %NULL |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
195 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
196 | * Creates a new #PurplePluginInfo instance to be returned from |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
197 | * #plugin_query of a plugin, using the provided name/value pairs. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
198 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
199 | * All properties except <literal>"id"</literal> and |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
200 | * <literal>"purple-abi"</literal> are optional. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
201 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
202 | * Valid property names are: |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
203 | * <informaltable frame='none'> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
204 | * <tgroup cols='2'><tbody> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
205 | * <row><entry><literal>"id"</literal></entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
206 | * <entry>(string) The ID of the plugin.</entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
207 | * </row> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
208 | * <row><entry><literal>"abi-version"</literal></entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
209 | * <entry>(<type>guint32</type>) The ABI version required by the |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
210 | * plugin.</entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
211 | * </row> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
212 | * <row><entry><literal>"name"</literal></entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
213 | * <entry>(string) The translated name of the plugin.</entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
214 | * </row> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
215 | * <row><entry><literal>"version"</literal></entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
216 | * <entry>(string) Version of the plugin.</entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
217 | * </row> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
218 | * <row><entry><literal>"category"</literal></entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
219 | * <entry>(string) Primary category of the plugin.</entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
220 | * </row> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
221 | * <row><entry><literal>"summary"</literal></entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
222 | * <entry>(string) Brief summary of the plugin.</entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
223 | * </row> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
224 | * <row><entry><literal>"description"</literal></entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
225 | * <entry>(string) Full description of the plugin.</entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
226 | * </row> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
227 | * <row><entry><literal>"authors"</literal></entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
228 | * <entry>(<type>const gchar * const *</type>) A %NULL-terminated list of |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
229 | * plugin authors. format: First Last <user\@domain.com></entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
230 | * </row> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
231 | * <row><entry><literal>"website"</literal></entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
232 | * <entry>(string) Website of the plugin.</entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
233 | * </row> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
234 | * <row><entry><literal>"icon"</literal></entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
235 | * <entry>(string) Path to a plugin's icon.</entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
236 | * </row> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
237 | * <row><entry><literal>"license-id"</literal></entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
238 | * <entry>(string) Short name of the plugin's license. This should |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
239 | * either be an identifier of the license from |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
240 | * <ulink url="http://dep.debian.net/deps/dep5/#license-specification"> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
241 | * DEP5</ulink> or "Other" for custom licenses.</entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
242 | * </row> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
243 | * <row><entry><literal>"license-text"</literal></entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
244 | * <entry>(string) The text of the plugin's license, if unlisted on |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
245 | * DEP5.</entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
246 | * </row> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
247 | * <row><entry><literal>"license-url"</literal></entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
248 | * <entry>(string) The plugin's license URL, if unlisted on DEP5.</entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
249 | * </row> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
250 | * <row><entry><literal>"dependencies"</literal></entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
251 | * <entry>(<type>const gchar * const *</type>) A %NULL-terminated list of |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
252 | * plugin IDs required by the plugin.</entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
253 | * </row> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
254 | * <row><entry><literal>"actions-cb"</literal></entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
255 | * <entry>(#PurplePluginActionsCb) Callback that returns a list of |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
256 | * actions the plugin can perform.</entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
257 | * </row> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
258 | * <row><entry><literal>"extra-cb"</literal></entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
259 | * <entry>(#PurplePluginExtraCb) Callback that returns a newly |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
260 | * allocated string denoting extra information about a plugin.</entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
261 | * </row> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
262 | * <row><entry><literal>"pref-frame-cb"</literal></entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
263 | * <entry>(#PurplePluginPrefFrameCb) Callback that returns a |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
264 | * preferences frame for the plugin.</entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
265 | * </row> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
266 | * <row><entry><literal>"pref-request-cb"</literal></entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
267 | * <entry>(#PurplePluginPrefRequestCb) Callback that returns a |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
268 | * preferences request handle for the plugin.</entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
269 | * </row> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
270 | * <row><entry><literal>"flags"</literal></entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
271 | * <entry>(#PurplePluginInfoFlags) The flags for a plugin.</entry> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
272 | * </row> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
273 | * </tbody></tgroup> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
274 | * </informaltable> |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
275 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
276 | * See #PURPLE_PLUGIN_ABI_VERSION, |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
277 | * <link linkend="chapter-plugin-ids">Plugin IDs</link>. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
278 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
279 | * Returns: A new #PurplePluginInfo instance. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
280 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
281 | * Since: 3.0.0 |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
282 | */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
283 | GPluginPluginInfo *purple_plugin_info_new(const char *first_property, ...) G_GNUC_NULL_TERMINATED; |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
284 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
285 | /** |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
286 | * purple_plugin_info_get_actions_cb: |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
287 | * @info: The plugin info to get the callback from. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
288 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
289 | * Returns the callback that retrieves the list of actions a plugin can perform |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
290 | * at that moment. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
291 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
292 | * Returns: The callback that returns a list of #PurplePluginAction |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
293 | * instances corresponding to the actions a plugin can perform. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
294 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
295 | * Since: 3.0.0 |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
296 | */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
297 | PurplePluginActionsCb purple_plugin_info_get_actions_cb(PurplePluginInfo *info); |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
298 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
299 | /** |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
300 | * purple_plugin_info_get_extra_cb: |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
301 | * @info: The plugin info to get extra information from. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
302 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
303 | * Returns a callback that gives extra information about a plugin. You must |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
304 | * free the string returned by this callback. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
305 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
306 | * Returns: (transfer none): The callback that returns extra information about a plugin. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
307 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
308 | * Since: 3.0.0 |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
309 | */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
310 | PurplePluginExtraCb purple_plugin_info_get_extra_cb(PurplePluginInfo *info); |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
311 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
312 | /** |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
313 | * purple_plugin_info_get_pref_frame_cb: |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
314 | * @info: The plugin info to get the callback from. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
315 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
316 | * Returns the callback that retrieves the preferences frame for a plugin, set |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
317 | * via the "pref-frame-cb" property of the plugin info. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
318 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
319 | * Returns: The callback that returns the preferences frame. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
320 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
321 | * Since: 3.0.0 |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
322 | */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
323 | PurplePluginPrefFrameCb purple_plugin_info_get_pref_frame_cb(PurplePluginInfo *info); |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
324 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
325 | /** |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
326 | * purple_plugin_info_get_pref_request_cb: |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
327 | * @info: The plugin info to get the callback from. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
328 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
329 | * Returns the callback that retrieves the preferences request handle for a |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
330 | * plugin, set via the "pref-request-cb" property of the plugin info. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
331 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
332 | * Returns: (transfer none): The callback that returns the preferences request handle. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
333 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
334 | * Since: 3.0.0 |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
335 | */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
336 | PurplePluginPrefRequestCb purple_plugin_info_get_pref_request_cb(PurplePluginInfo *info); |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
337 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
338 | /** |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
339 | * purple_plugin_info_get_flags: |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
340 | * @info: The plugin's info instance. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
341 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
342 | * Returns the plugin's flags. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
343 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
344 | * Returns: The flags of the plugin. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
345 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
346 | * Since: 3.0.0 |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
347 | */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
348 | PurplePluginInfoFlags purple_plugin_info_get_flags(PurplePluginInfo *info); |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
349 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
350 | /** |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
351 | * purple_plugin_info_get_error: |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
352 | * @info: The plugin info. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
353 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
354 | * Returns an error in the plugin info that would prevent the plugin from being |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
355 | * loaded. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
356 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
357 | * Returns: The plugin info error, or %NULL. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
358 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
359 | * Since: 3.0.0 |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
360 | */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
361 | const gchar *purple_plugin_info_get_error(PurplePluginInfo *info); |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
362 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
363 | /** |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
364 | * purple_plugin_info_get_unloaded: |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
365 | * @info: The #PurplePluginInfo instance. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
366 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
367 | * Gets whether or not the plugin has been unloaded. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
368 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
369 | * Returns: %TRUE if the plugin has been unloaded previously, or %FALSE if not. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
370 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
371 | * Since: 3.0.0 |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
372 | */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
373 | gboolean purple_plugin_info_get_unloaded(PurplePluginInfo *info); |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
374 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
375 | /** |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
376 | * purple_plugin_info_set_unloaded: |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
377 | * @info: The #PurplePluginInfo instance. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
378 | * @unloaded: %TRUE to say the plugin has been unloaded. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
379 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
380 | * Sets the unloaded state of @info to @unloaded. |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
381 | * |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
382 | * Since: 3.0.0 |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
383 | */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
384 | void purple_plugin_info_set_unloaded(PurplePluginInfo *info, gboolean unloaded); |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
385 | |
|
41414
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
386 | /** |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
387 | * purple_plugin_info_get_action_group: |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
388 | * @info: The instance. |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
389 | * |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
390 | * Gets the [class:Gio.ActionGroup] from @info if one is set. |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
391 | * |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
392 | * Returns: (transfer full): The action group. |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
393 | * |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
394 | * Since: 3.0.0 |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
395 | */ |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
396 | GActionGroup *purple_plugin_info_get_action_group(PurplePluginInfo *info); |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
397 | |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
398 | /** |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
399 | * purple_plugin_info_get_action_menu: |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
400 | * @info: The instance. |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
401 | * |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
402 | * Gets the [class:Gio.MenuModel] from @info if one is set. |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
403 | * |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
404 | * Returns: (transfer full): The menu model. |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
405 | * |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
406 | * Since: 3.0.0 |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
407 | */ |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
408 | GMenuModel *purple_plugin_info_get_action_menu(PurplePluginInfo *info); |
|
b76bc2b4d7cc
Convert plugin actions to GMenu and GAction
Gary Kramlich <grim@reaperworld.com>
parents:
41283
diff
changeset
|
409 | |
|
40963
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
410 | G_END_DECLS |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
411 | |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
412 | #endif /* PURPLE_PLUGIN_INFO_H */ |
|
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
413 |