summaryrefslogtreecommitdiff
path: root/libpurple/purpleprotocolchat.h
diff options
context:
space:
mode:
authorGary Kramlich <grim@reaperworld.com>2022-11-16 22:37:33 -0600
committerGary Kramlich <grim@reaperworld.com>2022-11-16 22:37:33 -0600
commit1348d68fe602879ae91fe5064ca0a6ca18536960 (patch)
treee33992c3e76936d3b3042ae8bea55c209843b3d1 /libpurple/purpleprotocolchat.h
parent7eb574d4159df0c83fdd11c6858dabd26bda8582 (diff)
downloadpidgin-1348d68fe602879ae91fe5064ca0a6ca18536960.tar.gz
Move PurpleProtocolChatEntry to purpleprotocolchat.h
Also remove the boxed code as nothing was using it as a boxed type anyways. Testing Done: Compiled Reviewed at https://reviews.imfreedom.org/r/2067/
Diffstat (limited to 'libpurple/purpleprotocolchat.h')
-rw-r--r--libpurple/purpleprotocolchat.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/libpurple/purpleprotocolchat.h b/libpurple/purpleprotocolchat.h
index a1c2227608..6c5f41944f 100644
--- a/libpurple/purpleprotocolchat.h
+++ b/libpurple/purpleprotocolchat.h
@@ -47,6 +47,31 @@
G_DECLARE_INTERFACE(PurpleProtocolChat, purple_protocol_chat, PURPLE,
PROTOCOL_CHAT, PurpleProtocol)
+typedef struct _PurpleProtocolChatEntry PurpleProtocolChatEntry;
+
+/**
+ * PurpleProtocolChatEntry:
+ * @label: User-friendly name of the entry
+ * @identifier: Used by the protocol to identify the option
+ * @required: True if it's required
+ * @is_int: True if the entry expects an integer
+ * @min: Minimum value in case of integer
+ * @max: Maximum value in case of integer
+ * @secret: True if the entry is secret (password)
+ *
+ * Represents an entry containing information that must be supplied by the
+ * user when joining a chat.
+ */
+struct _PurpleProtocolChatEntry {
+ const char *label;
+ const char *identifier;
+ gboolean required;
+ gboolean is_int;
+ int min;
+ int max;
+ gboolean secret;
+};
+
G_BEGIN_DECLS
/**