]>
jfr.im git - irc/quakenet/newserv.git/blob - authext/authext.h
4 #define MAXAUTHNAMEEXTS 5
8 typedef struct authname
{
13 struct authname
*next
;
14 /* These are extensions only used by other modules */
15 void *exts
[MAXAUTHNAMEEXTS
];
18 #define AUTHNAMEHASHSIZE 60000
20 extern authname
*authnametable
[AUTHNAMEHASHSIZE
];
23 authname
*newauthname();
24 void freeauthname (authname
*hp
);
27 int registerauthnameext(const char *name
);
28 int findauthnameext(const char *name
);
29 void releaseauthnameext(int index
);
31 /* Actual user commands */
32 authname
*findauthname(unsigned long userid
);
33 authname
*findorcreateauthname(unsigned long userid
);
34 void releaseauthname(authname
*anp
);
37 unsigned int nextauthnamemarker();