summaryrefslogtreecommitdiff
path: root/src/core/chat-protocols.h
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-09-30 22:49:48 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-09-30 22:49:48 +0000
commit2b8580c8a73ecdb2846b745c32b0ba51be4458e3 (patch)
tree04a68511ca0e66618883afb9e8ff83ca4425f972 /src/core/chat-protocols.h
parent965def294b3787052a9285ef22d6b01cd41a2ebe (diff)
downloadirssi-2b8580c8a73ecdb2846b745c32b0ba51be4458e3.zip
multiprotocol updates. SILC prints channel and private messages now
using the same message formats as IRC. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@699 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/chat-protocols.h')
-rw-r--r--src/core/chat-protocols.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/core/chat-protocols.h b/src/core/chat-protocols.h
index 42b413cf..1f38da50 100644
--- a/src/core/chat-protocols.h
+++ b/src/core/chat-protocols.h
@@ -1,27 +1,27 @@
#ifndef __CHAT_PROTOCOLS_H
#define __CHAT_PROTOCOLS_H
+typedef struct {
+ char *name;
+ char *fullname;
+ char *chatnet;
+} CHAT_PROTOCOL_REC;
+
#define PROTO_CHECK_CAST(object, cast, type_field, id) \
((cast *) chat_protocol_check_cast(object, \
offsetof(cast, type_field), id))
void *chat_protocol_check_cast(void *object, int type_pos, const char *id);
/* Register new chat protocol. */
-void chat_protocol_register(const char *name,
- const char *fullname,
- const char *chatnet);
+void chat_protocol_register(CHAT_PROTOCOL_REC *rec);
/* Unregister chat protocol. */
void chat_protocol_unregister(const char *name);
/* Return the ID for the specified chat protocol. */
int chat_protocol_lookup(const char *name);
-/* Return the name for the specified chat protocol ID. */
-const char *chat_protocol_get_name(int id);
-/* Return the full name for the specified chat protocol ID. */
-const char *chat_protocol_get_fullname(int id);
-/* Return the chatnet identifier name for the specified chat protocol ID. */
-const char *chat_protocol_get_chatnet(int id);
+/* Return the record for the specified chat protocol ID. */
+CHAT_PROTOCOL_REC *chat_protocol_get_rec(int id);
void chat_protocols_init(void);
void chat_protocols_deinit(void);