modules: Add AV2 descriptions to all m_s* modules

This commit is contained in:
Andrew Wilcox 2016-03-07 02:05:28 -06:00
parent 114d98b3cc
commit 3abc337fe1
9 changed files with 22 additions and 9 deletions

View file

@ -44,6 +44,7 @@
static int m_authenticate(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int m_authenticate(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static int me_sasl(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int me_sasl(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static int me_mechlist(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int me_mechlist(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char sasl_desc[] = "Provides SASL authentication support";
static void abort_sasl(struct Client *); static void abort_sasl(struct Client *);
static void abort_sasl_exit(hook_data_client_exit *); static void abort_sasl_exit(hook_data_client_exit *);
@ -115,7 +116,7 @@ _moddeinit(void)
capability_orphan(cli_capindex, "sasl"); capability_orphan(cli_capindex, "sasl");
} }
DECLARE_MODULE_AV2(sasl, _modinit, _moddeinit, sasl_clist, NULL, sasl_hfnlist, NULL, NULL, NULL); DECLARE_MODULE_AV2(sasl, _modinit, _moddeinit, sasl_clist, NULL, sasl_hfnlist, NULL, NULL, sasl_desc);
static int static int
m_authenticate(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, m_authenticate(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p,

View file

@ -52,6 +52,8 @@
static int mo_scan(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int mo_scan(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static int scan_umodes(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int scan_umodes(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
/*static int scan_cmodes(struct MsgBuf *, struct Client *, struct Client *, int, const char **);*/ /*static int scan_cmodes(struct MsgBuf *, struct Client *, struct Client *, int, const char **);*/
static const char scan_desc[] =
"Provides the SCAN command to show users that have a mode set or cleared";
struct Message scan_msgtab = { struct Message scan_msgtab = {
"SCAN", 0, 0, 0, 0, "SCAN", 0, 0, 0, 0,
@ -59,7 +61,7 @@ struct Message scan_msgtab = {
}; };
mapi_clist_av1 scan_clist[] = { &scan_msgtab, NULL }; mapi_clist_av1 scan_clist[] = { &scan_msgtab, NULL };
DECLARE_MODULE_AV2(scan, NULL, NULL, scan_clist, NULL, NULL, NULL, NULL, NULL); DECLARE_MODULE_AV2(scan, NULL, NULL, scan_clist, NULL, NULL, NULL, NULL, scan_desc);
typedef int (*scan_handler)(struct MsgBuf *, struct Client *, struct Client *, int, typedef int (*scan_handler)(struct MsgBuf *, struct Client *, struct Client *, int,
const char **); const char **);

View file

@ -58,6 +58,8 @@ static int me_login(struct MsgBuf *, struct Client *, struct Client *, int, cons
static int me_rsfnc(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int me_rsfnc(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static int me_nickdelay(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int me_nickdelay(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char services_desc[] = "Provides support for running a services daemon";
static void h_svc_server_introduced(hook_data_client *); static void h_svc_server_introduced(hook_data_client *);
static void h_svc_whois(hook_data_client *); static void h_svc_whois(hook_data_client *);
static void h_svc_stats(hook_data_int *); static void h_svc_stats(hook_data_int *);
@ -94,7 +96,7 @@ mapi_hfn_list_av1 services_hfnlist[] = {
{ NULL, NULL } { NULL, NULL }
}; };
DECLARE_MODULE_AV2(services, _modinit, _moddeinit, services_clist, NULL, services_hfnlist, NULL, NULL, NULL); DECLARE_MODULE_AV2(services, _modinit, _moddeinit, services_clist, NULL, services_hfnlist, NULL, NULL, services_desc);
static int static int
_modinit(void) _modinit(void)

View file

@ -40,6 +40,7 @@
#include "modules.h" #include "modules.h"
static int mo_set(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int mo_set(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char set_desc[] = "Provides the SET command to change server parameters";
struct Message set_msgtab = { struct Message set_msgtab = {
"SET", 0, 0, 0, 0, "SET", 0, 0, 0, 0,
@ -47,7 +48,7 @@ struct Message set_msgtab = {
}; };
mapi_clist_av1 set_clist[] = { &set_msgtab, NULL }; mapi_clist_av1 set_clist[] = { &set_msgtab, NULL };
DECLARE_MODULE_AV2(set, NULL, NULL, set_clist, NULL, NULL, NULL, NULL, NULL); DECLARE_MODULE_AV2(set, NULL, NULL, set_clist, NULL, NULL, NULL, NULL, set_desc);
/* Structure used for the SET table itself */ /* Structure used for the SET table itself */
struct SetStruct struct SetStruct

View file

@ -51,6 +51,7 @@
static int me_svslogin(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int me_svslogin(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static int ms_signon(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int ms_signon(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char signon_desc[] = "Provides account login/logout support for services";
static void send_signon(struct Client *, struct Client *, const char *, const char *, const char *, unsigned int, const char *); static void send_signon(struct Client *, struct Client *, const char *, const char *, const char *, unsigned int, const char *);
@ -67,7 +68,7 @@ mapi_clist_av1 signon_clist[] = {
&svslogin_msgtab, &signon_msgtab, NULL &svslogin_msgtab, &signon_msgtab, NULL
}; };
DECLARE_MODULE_AV2(signon, NULL, NULL, signon_clist, NULL, NULL, NULL, NULL, NULL); DECLARE_MODULE_AV2(signon, NULL, NULL, signon_clist, NULL, NULL, NULL, NULL, signon_desc);
#define NICK_VALID 1 #define NICK_VALID 1
#define USER_VALID 2 #define USER_VALID 2

View file

@ -49,6 +49,7 @@
#include "modules.h" #include "modules.h"
static int me_snote(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int me_snote(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char snote_desc[] = "Provides server notices via the SNOTE command";
struct Message snote_msgtab = { struct Message snote_msgtab = {
"SNOTE", 0, 0, 0, 0, "SNOTE", 0, 0, 0, 0,
@ -56,7 +57,7 @@ struct Message snote_msgtab = {
}; };
mapi_clist_av1 snote_clist[] = { &snote_msgtab, NULL }; mapi_clist_av1 snote_clist[] = { &snote_msgtab, NULL };
DECLARE_MODULE_AV2(snote, NULL, NULL, snote_clist, NULL, NULL, NULL, NULL, NULL); DECLARE_MODULE_AV2(snote, NULL, NULL, snote_clist, NULL, NULL, NULL, NULL, snote_desc);
/* /*
* me_snote * me_snote

View file

@ -34,6 +34,7 @@
#include "logger.h" #include "logger.h"
static int mr_starttls(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int mr_starttls(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char starttls_desc[] = "Provides the tls CAP and STARTTLS command";
struct Message starttls_msgtab = { struct Message starttls_msgtab = {
"STARTTLS", 0, 0, 0, 0, "STARTTLS", 0, 0, 0, 0,
@ -61,7 +62,7 @@ _moddeinit(void)
#endif #endif
} }
DECLARE_MODULE_AV2(starttls, _modinit, _moddeinit, starttls_clist, NULL, NULL, NULL, NULL, NULL); DECLARE_MODULE_AV2(starttls, _modinit, _moddeinit, starttls_clist, NULL, NULL, NULL, NULL, starttls_desc);
static int static int
mr_starttls(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[]) mr_starttls(struct MsgBuf *msgbuf_p, struct Client *client_p, struct Client *source_p, int parc, const char *parv[])

View file

@ -50,6 +50,8 @@
#include "sslproc.h" #include "sslproc.h"
static int m_stats (struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int m_stats (struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char stats_desc[] =
"Provides the STATS command to inspect various server/network information";
struct Message stats_msgtab = { struct Message stats_msgtab = {
"STATS", 0, 0, 0, 0, "STATS", 0, 0, 0, 0,
@ -66,7 +68,7 @@ mapi_hlist_av1 stats_hlist[] = {
{ NULL, NULL } { NULL, NULL }
}; };
DECLARE_MODULE_AV2(stats, NULL, NULL, stats_clist, stats_hlist, NULL, NULL, NULL, NULL); DECLARE_MODULE_AV2(stats, NULL, NULL, stats_clist, stats_hlist, NULL, NULL, NULL, stats_desc);
const char *Lformat = "%s %u %u %u %u %u :%u %u %s"; const char *Lformat = "%s %u %u %u %u %u :%u %u %s";

View file

@ -36,6 +36,8 @@
#include "modules.h" #include "modules.h"
static int ms_svinfo(struct MsgBuf *, struct Client *, struct Client *, int, const char **); static int ms_svinfo(struct MsgBuf *, struct Client *, struct Client *, int, const char **);
static const char svinfo_desc[] =
"Provides TS6 SVINFO command to ensure version and clock synchronisation";
struct Message svinfo_msgtab = { struct Message svinfo_msgtab = {
"SVINFO", 0, 0, 0, 0, "SVINFO", 0, 0, 0, 0,
@ -43,7 +45,7 @@ struct Message svinfo_msgtab = {
}; };
mapi_clist_av1 svinfo_clist[] = { &svinfo_msgtab, NULL }; mapi_clist_av1 svinfo_clist[] = { &svinfo_msgtab, NULL };
DECLARE_MODULE_AV2(svinfo, NULL, NULL, svinfo_clist, NULL, NULL, NULL, NULL, NULL); DECLARE_MODULE_AV2(svinfo, NULL, NULL, svinfo_clist, NULL, NULL, NULL, NULL, svinfo_desc);
/* /*
* ms_svinfo - SVINFO message handler * ms_svinfo - SVINFO message handler