]>
jfr.im git - irc/quakenet/newserv.git/blob - authext/authext.h
4 #include "../lib/flags.h"
6 #define MAXAUTHNAMEEXTS 5
10 typedef struct authname
{
15 struct authname
*next
, *nextbyname
;
16 unsigned int namebucket
;
18 /* These are extensions only used by other modules */
19 void *exts
[MAXAUTHNAMEEXTS
];
22 #define AUTHNAMEHASHSIZE 60000
24 extern authname
*authnametable
[AUTHNAMEHASHSIZE
];
27 authname
*newauthname(void);
28 void freeauthname (authname
*hp
);
31 int registerauthnameext(const char *name
);
32 int findauthnameext(const char *name
);
33 void releaseauthnameext(int index
);
35 /* Actual user commands */
36 authname
*findauthname(unsigned long userid
);
37 authname
*findauthnamebyname(const char *name
);
38 authname
*findorcreateauthname(unsigned long userid
, const char *name
);
39 void releaseauthname(authname
*anp
);
42 unsigned int nextauthnamemarker(void);
44 authname
*getauthbyname(const char *name
);