summaryrefslogtreecommitdiff
path: root/libpurple/action.h
diff options
context:
space:
mode:
authorGary Kramlich <grim@reaperworld.com>2018-02-15 23:15:48 -0600
committerGary Kramlich <grim@reaperworld.com>2018-02-15 23:15:48 -0600
commitaf0e42cc061fde8a908073832194d7eb4fdcd69b (patch)
treece4a634a31682c947575566952452b4a3ffdb71b /libpurple/action.h
parentcffb894f610eb534901324e05f51e0f6f0f6196d (diff)
downloadpidgin-af0e42cc061fde8a908073832194d7eb4fdcd69b.tar.gz
Add some basic unit tests
Diffstat (limited to 'libpurple/action.h')
-rw-r--r--libpurple/action.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libpurple/action.h b/libpurple/action.h
index 42f32c1810..36b4ceb6b3 100644
--- a/libpurple/action.h
+++ b/libpurple/action.h
@@ -199,10 +199,22 @@ GType purple_protocol_action_get_type(void);
*
* Allocates and returns a new PurpleProtocolAction. Use this to add actions in
* a list in the get_actions function of the protocol.
+ *
+ * Returns: (transfer full): The new #PurpleProtocolAction.
*/
PurpleProtocolAction *purple_protocol_action_new(const gchar *label, PurpleProtocolActionCallback callback);
/**
+ * purple_protocol_action_copy:
+ * @action: The #PurpleProtocolAction to copy.
+ *
+ * Creates a newly allocated copy of @action.
+ *
+ * Returns: (transfer full): A copy of @action.
+ */
+PurpleProtocolAction *purple_protocol_action_copy(PurpleProtocolAction *action);
+
+/**
* purple_protocol_action_free:
* @action: The PurpleProtocolAction to free.
*