Tue, 24 Oct 2023 02:02:49 -0500
Add Since and symbol visibility to new-in-3.0 things
Mostly found through comparing ABI on `release-2.x.y` and `default`.
Note this only covers things that show up in the ABI, so macros, typedefs and the like won't be tagged.
Testing Done:
Compiled only.
Bugs closed: PIDGIN-17838
Reviewed at https://reviews.imfreedom.org/r/2688/
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
1 | /* purple |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
2 | * |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
3 | * Purple is the legal property of its developers, whose names are too numerous |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
5 | * source distribution. |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
6 | * |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
7 | * This program is free software; you can redistribute it and/or modify |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
8 | * it under the terms of the GNU General Public License as published by |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
9 | * the Free Software Foundation; either version 2 of the License, or |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
10 | * (at your option) any later version. |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
11 | * |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
12 | * This program is distributed in the hope that it will be useful, |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
15 | * GNU General Public License for more details. |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
16 | * |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
17 | * You should have received a copy of the GNU General Public License |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
18 | * along with this program; if not, write to the Free Software |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
20 | */ |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
21 | |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40188
diff
changeset
|
22 | #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:
40188
diff
changeset
|
23 | # 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:
40188
diff
changeset
|
24 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40188
diff
changeset
|
25 | |
|
41746
e1d8d70679d5
Fix a bunch of header guard comments
Gary Kramlich <grim@reaperworld.com>
parents:
41200
diff
changeset
|
26 | #ifndef PURPLE_ACTION_H |
|
e1d8d70679d5
Fix a bunch of header guard comments
Gary Kramlich <grim@reaperworld.com>
parents:
41200
diff
changeset
|
27 | #define PURPLE_ACTION_H |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
28 | |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
29 | #include <glib.h> |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
30 | #include <glib-object.h> |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
31 | |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
32 | #include "purpleversion.h" |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
33 | |
|
39871
86f6d297385b
Document the fields for PurpleProtocolAction
Gary Kramlich <grim@reaperworld.com>
parents:
39742
diff
changeset
|
34 | #define PURPLE_TYPE_PROTOCOL_ACTION (purple_protocol_action_get_type()) |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
35 | |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
36 | PURPLE_AVAILABLE_TYPE_IN_3_0 |
|
39480
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
37 | typedef struct _PurpleProtocolAction PurpleProtocolAction; |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
38 | |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
39 | PURPLE_AVAILABLE_TYPE_IN_3_0 |
|
39480
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
40 | typedef void (*PurpleProtocolActionCallback)(PurpleProtocolAction *action); |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
41 | |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
42 | /** |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
43 | * PurpleActionMenu: |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
44 | * |
|
39487
f0e629b4c500
Address a number of issues with ownership and leaking
Gary Kramlich <grim@reaperworld.com>
parents:
39484
diff
changeset
|
45 | * A generic structure that contains information about an "action". One |
|
f0e629b4c500
Address a number of issues with ownership and leaking
Gary Kramlich <grim@reaperworld.com>
parents:
39484
diff
changeset
|
46 | * place this is used is by protocols to tell the core the list of available |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
47 | * right-click actions for a buddy list row. |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
48 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
49 | PURPLE_AVAILABLE_TYPE_IN_3_0 |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
50 | typedef struct _PurpleActionMenu PurpleActionMenu; |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
51 | |
|
39480
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
52 | #include "connection.h" |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
53 | |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
54 | /** |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
55 | * PurpleProtocolAction: |
|
39871
86f6d297385b
Document the fields for PurpleProtocolAction
Gary Kramlich <grim@reaperworld.com>
parents:
39742
diff
changeset
|
56 | * @label: A translated string to be shown in a user interface. |
|
86f6d297385b
Document the fields for PurpleProtocolAction
Gary Kramlich <grim@reaperworld.com>
parents:
39742
diff
changeset
|
57 | * @callback: The function to call when the user wants to perform this action. |
|
39873
39f8ea1fd738
Fix some grammar in the PurpleProtocolAction docs
Gary Kramlich <grim@reaperworld.com>
parents:
39871
diff
changeset
|
58 | * @connection: The connection that this action should be performed against. |
|
39871
86f6d297385b
Document the fields for PurpleProtocolAction
Gary Kramlich <grim@reaperworld.com>
parents:
39742
diff
changeset
|
59 | * @user_data: User data to pass to @callback. |
|
39480
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
60 | * |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
61 | * Represents an action that the protocol can perform. This shows up in the |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
62 | * Accounts menu, under a submenu with the name of the account. |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
63 | */ |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
64 | struct _PurpleProtocolAction { |
|
39482
3e8b7fb5447b
use gchar instead of char
Gary Kramlich <grim@reaperworld.com>
parents:
39481
diff
changeset
|
65 | gchar *label; |
|
39480
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
66 | PurpleProtocolActionCallback callback; |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
67 | PurpleConnection *connection; |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
68 | gpointer user_data; |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
69 | }; |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
70 | |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
71 | G_BEGIN_DECLS |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
72 | |
|
39480
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
73 | /****************************************************************************** |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
74 | * Menu Action API |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
75 | *****************************************************************************/ |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
76 | |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
77 | /** |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
78 | * purple_action_menu_new: |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
79 | * @label: The text label to display for this action. |
| 40186 | 80 | * @callback: (scope notified): The function to be called when the action is used on |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
81 | * the selected item. |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
82 | * @data: Additional data to be passed to the callback. |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
83 | * @children: (element-type PurpleActionMenu) (transfer full): Menu actions to |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
84 | * be added as a submenu of this action. |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
85 | * |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
86 | * Creates a new PurpleActionMenu. |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
87 | * |
| 40188 | 88 | * Returns: (transfer full): The PurpleActionMenu. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
89 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
90 | * Since: 3.0.0 |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
91 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
92 | PURPLE_AVAILABLE_IN_3_0 |
|
39483
ab4728087d87
Rename purple_menu_action_* to purple_action_menu_*
Gary Kramlich <grim@reaperworld.com>
parents:
39482
diff
changeset
|
93 | PurpleActionMenu *purple_action_menu_new(const gchar *label, GCallback callback, gpointer data, GList *children); |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
94 | |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
95 | /** |
|
39483
ab4728087d87
Rename purple_menu_action_* to purple_action_menu_*
Gary Kramlich <grim@reaperworld.com>
parents:
39482
diff
changeset
|
96 | * purple_action_menu_free: |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
97 | * @act: The PurpleActionMenu to free. |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
98 | * |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
99 | * Frees a PurpleActionMenu |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
100 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
101 | * Since: 3.0.0 |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
102 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
103 | PURPLE_AVAILABLE_IN_3_0 |
|
39483
ab4728087d87
Rename purple_menu_action_* to purple_action_menu_*
Gary Kramlich <grim@reaperworld.com>
parents:
39482
diff
changeset
|
104 | void purple_action_menu_free(PurpleActionMenu *act); |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
105 | |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
106 | /** |
|
39483
ab4728087d87
Rename purple_menu_action_* to purple_action_menu_*
Gary Kramlich <grim@reaperworld.com>
parents:
39482
diff
changeset
|
107 | * purple_action_menu_get_label: |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
108 | * @act: The PurpleActionMenu. |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
109 | * |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
110 | * Returns the label of the PurpleActionMenu. |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
111 | * |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
112 | * Returns: The label string. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
113 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
114 | * Since: 3.0.0 |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
115 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
116 | PURPLE_AVAILABLE_IN_3_0 |
|
39487
f0e629b4c500
Address a number of issues with ownership and leaking
Gary Kramlich <grim@reaperworld.com>
parents:
39484
diff
changeset
|
117 | const gchar *purple_action_menu_get_label(const PurpleActionMenu *act); |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
118 | |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
119 | /** |
|
39483
ab4728087d87
Rename purple_menu_action_* to purple_action_menu_*
Gary Kramlich <grim@reaperworld.com>
parents:
39482
diff
changeset
|
120 | * purple_action_menu_get_callback: |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
121 | * @act: The PurpleActionMenu. |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
122 | * |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
123 | * Returns the callback of the PurpleActionMenu. |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
124 | * |
| 40188 | 125 | * Returns: (transfer none): The callback function. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
126 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
127 | * Since: 3.0.0 |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
128 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
129 | PURPLE_AVAILABLE_IN_3_0 |
|
39483
ab4728087d87
Rename purple_menu_action_* to purple_action_menu_*
Gary Kramlich <grim@reaperworld.com>
parents:
39482
diff
changeset
|
130 | GCallback purple_action_menu_get_callback(const PurpleActionMenu *act); |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
131 | |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
132 | /** |
|
39483
ab4728087d87
Rename purple_menu_action_* to purple_action_menu_*
Gary Kramlich <grim@reaperworld.com>
parents:
39482
diff
changeset
|
133 | * purple_action_menu_get_data: |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
134 | * @act: The PurpleActionMenu. |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
135 | * |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
136 | * Returns the data stored in the PurpleActionMenu. |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
137 | * |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
138 | * Returns: The data. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
139 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
140 | * Since: 3.0.0 |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
141 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
142 | PURPLE_AVAILABLE_IN_3_0 |
|
39483
ab4728087d87
Rename purple_menu_action_* to purple_action_menu_*
Gary Kramlich <grim@reaperworld.com>
parents:
39482
diff
changeset
|
143 | gpointer purple_action_menu_get_data(const PurpleActionMenu *act); |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
144 | |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
145 | /** |
|
39483
ab4728087d87
Rename purple_menu_action_* to purple_action_menu_*
Gary Kramlich <grim@reaperworld.com>
parents:
39482
diff
changeset
|
146 | * purple_action_menu_get_children: |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
147 | * @act: The PurpleActionMenu. |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
148 | * |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
149 | * Returns the children of the PurpleActionMenu. |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
150 | * |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
151 | * Returns: (element-type PurpleActionMenu) (transfer none): The menu children. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
152 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
153 | * Since: 3.0.0 |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
154 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
155 | PURPLE_AVAILABLE_IN_3_0 |
|
39483
ab4728087d87
Rename purple_menu_action_* to purple_action_menu_*
Gary Kramlich <grim@reaperworld.com>
parents:
39482
diff
changeset
|
156 | GList* purple_action_menu_get_children(const PurpleActionMenu *act); |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
157 | |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
158 | /** |
|
39483
ab4728087d87
Rename purple_menu_action_* to purple_action_menu_*
Gary Kramlich <grim@reaperworld.com>
parents:
39482
diff
changeset
|
159 | * purple_action_menu_set_label: |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
160 | * @act: The menu action. |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
161 | * @label: The label for the menu action. |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
162 | * |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
163 | * Set the label to the PurpleActionMenu. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
164 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
165 | * Since: 3.0.0 |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
166 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
167 | PURPLE_AVAILABLE_IN_3_0 |
|
39487
f0e629b4c500
Address a number of issues with ownership and leaking
Gary Kramlich <grim@reaperworld.com>
parents:
39484
diff
changeset
|
168 | void purple_action_menu_set_label(PurpleActionMenu *act, const gchar *label); |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
169 | |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
170 | /** |
|
39483
ab4728087d87
Rename purple_menu_action_* to purple_action_menu_*
Gary Kramlich <grim@reaperworld.com>
parents:
39482
diff
changeset
|
171 | * purple_action_menu_set_callback: |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
172 | * @act: The menu action. |
| 40186 | 173 | * @callback: (scope notified): The callback. |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
174 | * |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
175 | * Set the callback that will be used by the PurpleActionMenu. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
176 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
177 | * Since: 3.0.0 |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
178 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
179 | PURPLE_AVAILABLE_IN_3_0 |
|
39483
ab4728087d87
Rename purple_menu_action_* to purple_action_menu_*
Gary Kramlich <grim@reaperworld.com>
parents:
39482
diff
changeset
|
180 | void purple_action_menu_set_callback(PurpleActionMenu *act, GCallback callback); |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
181 | |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
182 | /** |
|
39483
ab4728087d87
Rename purple_menu_action_* to purple_action_menu_*
Gary Kramlich <grim@reaperworld.com>
parents:
39482
diff
changeset
|
183 | * purple_action_menu_set_data: |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
184 | * @act: The menu action. |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
185 | * @data: The data used by this PurpleActionMenu |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
186 | * |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
187 | * Set the label to the PurpleActionMenu. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
188 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
189 | * Since: 3.0.0 |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
190 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
191 | PURPLE_AVAILABLE_IN_3_0 |
|
39483
ab4728087d87
Rename purple_menu_action_* to purple_action_menu_*
Gary Kramlich <grim@reaperworld.com>
parents:
39482
diff
changeset
|
192 | void purple_action_menu_set_data(PurpleActionMenu *act, gpointer data); |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
193 | |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
194 | /** |
|
39483
ab4728087d87
Rename purple_menu_action_* to purple_action_menu_*
Gary Kramlich <grim@reaperworld.com>
parents:
39482
diff
changeset
|
195 | * purple_action_menu_set_children: |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
196 | * @act: The menu action. |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
197 | * @children: (element-type PurpleActionMenu) (transfer full): The menu children |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
198 | * |
|
39481
4db28449567d
Rename PurpleMenuAction to PurpleActionMenu
Gary Kramlich <grim@reaperworld.com>
parents:
39480
diff
changeset
|
199 | * Set the children of the PurpleActionMenu. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
200 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
201 | * Since: 3.0.0 |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
202 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
203 | PURPLE_AVAILABLE_IN_3_0 |
|
39483
ab4728087d87
Rename purple_menu_action_* to purple_action_menu_*
Gary Kramlich <grim@reaperworld.com>
parents:
39482
diff
changeset
|
204 | void purple_action_menu_set_children(PurpleActionMenu *act, GList *children); |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
205 | |
|
39480
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
206 | /****************************************************************************** |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
207 | * Protocol Action API |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
208 | *****************************************************************************/ |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
209 | |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
210 | /** |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
211 | * purple_protocol_action_get_type: |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
212 | * |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
213 | * Returns: The #GType for the #PurpleProtocolAction boxed structure. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
214 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
215 | * Since: 3.0.0 |
|
39480
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
216 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
217 | PURPLE_AVAILABLE_IN_3_0 |
|
39480
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
218 | GType purple_protocol_action_get_type(void); |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
219 | |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
220 | /** |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
221 | * purple_protocol_action_new: |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
222 | * @label: The description of the action to show to the user. |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
223 | * @callback: (scope call): The callback to call when the user selects this |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
224 | * action. |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
225 | * |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
226 | * Allocates and returns a new PurpleProtocolAction. Use this to add actions in |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
227 | * a list in the get_actions function of the protocol. |
|
39484
0ece2412a0b0
Add some basic unit tests
Gary Kramlich <grim@reaperworld.com>
parents:
39483
diff
changeset
|
228 | * |
|
0ece2412a0b0
Add some basic unit tests
Gary Kramlich <grim@reaperworld.com>
parents:
39483
diff
changeset
|
229 | * Returns: (transfer full): The new #PurpleProtocolAction. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
230 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
231 | * Since: 3.0.0 |
|
39480
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
232 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
233 | PURPLE_AVAILABLE_IN_3_0 |
|
39480
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
234 | PurpleProtocolAction *purple_protocol_action_new(const gchar *label, PurpleProtocolActionCallback callback); |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
235 | |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
236 | /** |
|
39484
0ece2412a0b0
Add some basic unit tests
Gary Kramlich <grim@reaperworld.com>
parents:
39483
diff
changeset
|
237 | * purple_protocol_action_copy: |
|
0ece2412a0b0
Add some basic unit tests
Gary Kramlich <grim@reaperworld.com>
parents:
39483
diff
changeset
|
238 | * @action: The #PurpleProtocolAction to copy. |
|
0ece2412a0b0
Add some basic unit tests
Gary Kramlich <grim@reaperworld.com>
parents:
39483
diff
changeset
|
239 | * |
|
0ece2412a0b0
Add some basic unit tests
Gary Kramlich <grim@reaperworld.com>
parents:
39483
diff
changeset
|
240 | * Creates a newly allocated copy of @action. |
|
0ece2412a0b0
Add some basic unit tests
Gary Kramlich <grim@reaperworld.com>
parents:
39483
diff
changeset
|
241 | * |
|
0ece2412a0b0
Add some basic unit tests
Gary Kramlich <grim@reaperworld.com>
parents:
39483
diff
changeset
|
242 | * Returns: (transfer full): A copy of @action. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
243 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
244 | * Since: 3.0.0 |
|
39484
0ece2412a0b0
Add some basic unit tests
Gary Kramlich <grim@reaperworld.com>
parents:
39483
diff
changeset
|
245 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
246 | PURPLE_AVAILABLE_IN_3_0 |
|
39484
0ece2412a0b0
Add some basic unit tests
Gary Kramlich <grim@reaperworld.com>
parents:
39483
diff
changeset
|
247 | PurpleProtocolAction *purple_protocol_action_copy(PurpleProtocolAction *action); |
|
0ece2412a0b0
Add some basic unit tests
Gary Kramlich <grim@reaperworld.com>
parents:
39483
diff
changeset
|
248 | |
|
0ece2412a0b0
Add some basic unit tests
Gary Kramlich <grim@reaperworld.com>
parents:
39483
diff
changeset
|
249 | /** |
|
39480
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
250 | * purple_protocol_action_free: |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
251 | * @action: The PurpleProtocolAction to free. |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
252 | * |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
253 | * Frees a PurpleProtocolAction |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
254 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
255 | * Since: 3.0.0 |
|
39480
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
256 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
41746
diff
changeset
|
257 | PURPLE_AVAILABLE_IN_3_0 |
|
39480
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
258 | void purple_protocol_action_free(PurpleProtocolAction *action); |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
259 | |
|
5e089a52b01b
Move the ProtocolActionInterface to action.[ch]
Gary Kramlich <grim@reaperworld.com>
parents:
39479
diff
changeset
|
260 | |
|
39479
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
261 | G_END_DECLS |
|
4da996236e9b
Move the MenuAction stuff to the new action.[ch] files
Gary Kramlich <grim@reaperworld.com>
parents:
diff
changeset
|
262 | |
|
41746
e1d8d70679d5
Fix a bunch of header guard comments
Gary Kramlich <grim@reaperworld.com>
parents:
41200
diff
changeset
|
263 | #endif /* PURPLE_ACTION_H */ |