X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/3c7d6fcce7a021ea7c4948a37a32aeca072e5b10..b2ee72e4487d9ec90ff64f63d8f8c3974d96bc5c:/include/msg.h diff --git a/include/msg.h b/include/msg.h index 0adc9a84..4039d97d 100644 --- a/include/msg.h +++ b/include/msg.h @@ -25,7 +25,7 @@ #ifndef INCLUDED_msg_h #define INCLUDED_msg_h -#include "config.h" +#include "defaults.h" #include "msgbuf.h" struct Client; @@ -54,7 +54,7 @@ typedef void (*MessageHandler) (struct MsgBuf *, struct Client *, struct Client struct MessageEntry { MessageHandler handler; - int min_para; + size_t min_para; }; /* Message table structure */ @@ -67,7 +67,7 @@ struct Message unsigned int flags; /* handlers: - * UNREGISTERED, CLIENT, RCLIENT, SERVER, OPER, LAST + * UNREGISTERED, CLIENT, RCLIENT, SERVER, ENCAP, OPER */ struct MessageEntry handlers[LAST_HANDLER_TYPE]; }; @@ -85,7 +85,7 @@ extern void m_unregistered(struct MsgBuf *, struct Client *, struct Client *, in /* * m_functions execute protocol messages on this server: - * void 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