]> jfr.im git - solanum.git/blobdiff - include/msg.h
Merge pull request #287 from edk0/filter
[solanum.git] / include / msg.h
index 24c25409fdf88199329d93ddeae8b6694484b754..9035b3668c353c8a4eedd23e1373df04f20e4870 100644 (file)
  *  along with this program; if not, write to the Free Software
  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
  *  USA
- *
- *  $Id: msg.h 6 2005-09-10 01:02:21Z nenolod $
  */
 
 #ifndef INCLUDED_msg_h
 #define INCLUDED_msg_h
 
-#include "config.h"
+#include "defaults.h"
 #include "msgbuf.h"
 
 struct Client;
@@ -51,12 +49,12 @@ HandlerType;
  * int            parc   - parameter count (from msgbuf_p)
  * char*          parv[] - parameter vector (from msgbuf_p)
  */
-typedef int (*MessageHandler) (struct MsgBuf *, struct Client *, struct Client *, int, const char *[]);
+typedef void (*MessageHandler) (struct MsgBuf *, struct Client *, struct Client *, int, const char *[]);
 
 struct MessageEntry
 {
        MessageHandler handler;
-       int min_para;
+       size_t min_para;
 };
 
 /* Message table structure */
@@ -75,10 +73,10 @@ struct Message
 };
 
 /* generic handlers */
-extern int m_ignore(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
-extern int m_not_oper(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
-extern int m_registered(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
-extern int m_unregistered(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+extern void m_ignore(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+extern void m_not_oper(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+extern void m_registered(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
+extern void m_unregistered(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
 
 #define mg_ignore { m_ignore, 0 }
 #define mg_not_oper { m_not_oper, 0 }
@@ -87,7 +85,7 @@ extern int m_unregistered(struct MsgBuf *, struct Client *, struct Client *, int
 
 /*
  * m_functions execute protocol messages on this server:
- * int m_func(struct Client* client_p, struct Client* source_p, int parc, char* parv[]);
+ * void m_func(struct MsgBuf *, struct Client* client_p, struct Client* source_p, int parc, char* parv[]);
  *
  *    client_p    is always NON-NULL, pointing to a *LOCAL* client
  *            structure (with an open socket connected!). This