summaryrefslogtreecommitdiff
path: root/src/plugins/irc/irc-protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/irc/irc-protocol.h')
-rw-r--r--src/plugins/irc/irc-protocol.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-protocol.h b/src/plugins/irc/irc-protocol.h
new file mode 100644
index 000000000..3c2a0647c
--- /dev/null
+++ b/src/plugins/irc/irc-protocol.h
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) 2003-2007 by FlashCode <flashcode@flashtux.org>
+ * See README for License detail, AUTHORS for developers list.
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+
+#ifndef __WEECHAT_IRC_PROTOCOL_H
+#define __WEECHAT_IRC_PROTOCOL_H 1
+
+typedef int (t_irc_recv_func)(t_irc_server *, char *, char *, char *, char *,
+ int, int);
+
+typedef struct t_irc_protocol_msg t_irc_protocol_msg;
+
+struct t_irc_protocol_msg
+{
+ char *name; /* IRC message name */
+ char *description; /* message description */
+ t_irc_recv_func *recv_function; /* function called when msg is received */
+};
+
+#endif /* irc-protocol.h */