diff options
author | Gary Kramlich <grim@reaperworld.com> | 2018-02-01 23:21:30 -0600 |
---|---|---|
committer | Gary Kramlich <grim@reaperworld.com> | 2018-02-01 23:21:30 -0600 |
commit | ef05f992cedbe39a6d55576962be92b82019f5ae (patch) | |
tree | 036d439bbb9d7c11ac3b3590c68e8c24278eec21 /libpurple/protocols.h | |
parent | 16a065ff9ed5078e46d564a962a84a4224650095 (diff) | |
download | pidgin-ef05f992cedbe39a6d55576962be92b82019f5ae.tar.gz |
Move the ProtocolActionInterface to action.[ch]
Diffstat (limited to 'libpurple/protocols.h')
-rw-r--r-- | libpurple/protocols.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/libpurple/protocols.h b/libpurple/protocols.h index 81c314e1a8..eb01f627ae 100644 --- a/libpurple/protocols.h +++ b/libpurple/protocols.h @@ -31,11 +31,6 @@ #define PURPLE_PROTOCOLS_DOMAIN (g_quark_from_static_string("protocols")) -#define PURPLE_TYPE_PROTOCOL_ACTION (purple_protocol_action_get_type()) - -typedef struct _PurpleProtocolAction PurpleProtocolAction; -typedef void (*PurpleProtocolActionCallback)(PurpleProtocolAction *action); - /**************************************************************************/ /* Basic Protocol Information */ /**************************************************************************/ @@ -128,19 +123,6 @@ struct _PurpleProtocolChatEntry { gboolean secret; }; -/** - * PurpleProtocolAction: - * - * Represents an action that the protocol can perform. This shows up in the - * Accounts menu, under a submenu with the name of the account. - */ -struct _PurpleProtocolAction { - char *label; - PurpleProtocolActionCallback callback; - PurpleConnection *connection; - gpointer user_data; -}; - G_BEGIN_DECLS /**************************************************************************/ @@ -148,37 +130,6 @@ G_BEGIN_DECLS /**************************************************************************/ /**************************************************************************/ -/* Protocol Action API */ -/**************************************************************************/ - -/** - * purple_protocol_action_get_type: - * - * Returns: The #GType for the #PurpleProtocolAction boxed structure. - */ -GType purple_protocol_action_get_type(void); - -/** - * purple_protocol_action_new: - * @label: The description of the action to show to the user. - * @callback: (scope call): The callback to call when the user selects this - * action. - * - * Allocates and returns a new PurpleProtocolAction. Use this to add actions in - * a list in the get_actions function of the protocol. - */ -PurpleProtocolAction *purple_protocol_action_new(const char* label, - PurpleProtocolActionCallback callback); - -/** - * purple_protocol_action_free: - * @action: The PurpleProtocolAction to free. - * - * Frees a PurpleProtocolAction - */ -void purple_protocol_action_free(PurpleProtocolAction *action); - -/**************************************************************************/ /* Protocol Chat Entry API */ /**************************************************************************/ |