Beispiel #1
0
DECLARE_MODULE_AV1(cap, modinit, NULL, cap_clist, NULL, NULL, "$Revision: 676 $");

#define _CLICAP(name, capserv, capclient, flags)	\
	{ (name), (capserv), (capclient), (flags), sizeof(name) - 1 }

#define CLICAP_FLAGS_STICKY	0x001

static struct clicap
{
	const char *name;
	int cap_serv;		/* for altering s->c */
	int cap_cli;		/* for altering c->s */
	int flags;
	int namelen;
} clicap_list[] = {
	_CLICAP("multi-prefix",	CLICAP_MULTI_PREFIX, 0, 0),
	_CLICAP("sasl", CLICAP_SASL, 0, 0)
};

#define CLICAP_LIST_LEN (sizeof(clicap_list) / sizeof(struct clicap))

static int clicap_sort(struct clicap *, struct clicap *);

static int
modinit(void)
{
	qsort(clicap_list, CLICAP_LIST_LEN, sizeof(struct clicap),
		(bqcmp) clicap_sort);
	return 0;
}
Beispiel #2
0
mapi_clist_av1 cap_clist[] = { &cap_msgtab, NULL };
DECLARE_MODULE_AV1(cap, modinit, NULL, cap_clist, NULL, NULL, "$Revision: 676 $");

#define _CLICAP(name, capserv, capclient, flags)	\
	{ (name), (capserv), (capclient), (flags), sizeof(name) - 1 }

#define CLICAP_FLAGS_STICKY	0x001

static struct clicap {
    const char *name;
    int cap_serv;		/* for altering s->c */
    int cap_cli;		/* for altering c->s */
    int flags;
    int namelen;
} clicap_list[] = {
    _CLICAP("multi-prefix",	CLICAP_MULTI_PREFIX, 0, 0),
    _CLICAP("sasl", CLICAP_SASL, 0, 0),
    _CLICAP("account-notify", CLICAP_ACCOUNT_NOTIFY, 0, 0),
    _CLICAP("extended-join", CLICAP_EXTENDED_JOIN, 0, 0),
//    _CLICAP("away-notify", CLICAP_AWAY_NOTIFY, 0, 0),
};

#define CLICAP_LIST_LEN (sizeof(clicap_list) / sizeof(struct clicap))

static int clicap_sort(struct clicap *, struct clicap *);

static int
modinit(void)
{
    qsort(clicap_list, CLICAP_LIST_LEN, sizeof(struct clicap),
          (bqcmp) clicap_sort);
Beispiel #3
0
DECLARE_MODULE_AV1(cap, modinit, NULL, cap_clist, NULL, NULL, "$Revision$");

#define _CLICAP(name, capserv, capclient, flags)	\
	{ (name), (capserv), (capclient), (flags), sizeof(name) - 1 }

#define CLICAP_FLAGS_STICKY	0x001

static struct clicap
{
	const char *name;
	int cap_serv;		/* for altering s->c */
	int cap_cli;		/* for altering c->s */
	int flags;
	int namelen;
} clicap_list[] = {
	_CLICAP("multi-prefix",	CLICAP_MULTI_PREFIX, 0, 0)
};

#define CLICAP_LIST_LEN (sizeof(clicap_list) / sizeof(struct clicap))

static int clicap_sort(struct clicap *, struct clicap *);

static int
modinit(void)
{
	qsort(clicap_list, CLICAP_LIST_LEN, sizeof(struct clicap),
		(bqcmp) clicap_sort);
	return 0;
}

static int
Beispiel #4
0
#define _CLICAP(name, capserv, capclient, caprequired, flags)	\
	{ (name), (capserv), (capclient), (caprequired), (flags), sizeof(name) - 1 }

#define CLICAP_FLAGS_STICKY	0x001

static struct clicap
{
	const char *name;
	int cap_serv;		/* for altering s->c */
	int cap_cli;		/* for altering c->s */
	int cap_required_serv;	/* required dependency cap */
	int flags;
	int namelen;
} clicap_list[] = {
	_CLICAP("multi-prefix",	CLICAP_MULTI_PREFIX, 0, 0, 0),
	_CLICAP("sasl", CLICAP_SASL, 0, 0, CLICAP_FLAGS_STICKY),
	_CLICAP("account-notify", CLICAP_ACCOUNT_NOTIFY, 0, 0, 0),
	_CLICAP("extended-join", CLICAP_EXTENDED_JOIN, 0, 0, 0),
	_CLICAP("away-notify", CLICAP_AWAY_NOTIFY, 0, 0, 0),
	_CLICAP("tls", CLICAP_TLS, 0, 0, 0),
	_CLICAP("userhost-in-names", CLICAP_USERHOST_IN_NAMES, 0, 0, 0),
	_CLICAP("cap-notify", CLICAP_CAP_NOTIFY, 0, 0, 0),
	_CLICAP("chghost", CLICAP_CHGHOST, 0, 0, 0),
	_CLICAP("account-tag", CLICAP_ACCOUNT_TAG, 0, 0, 0),
};

#define CLICAP_LIST_LEN (sizeof(clicap_list) / sizeof(struct clicap))

static int clicap_sort(struct clicap *, struct clicap *);