]> jfr.im git - irc/quakenet/newserv.git/blobdiff - authext/authext.h
build: Keep track of #include dependencies.
[irc/quakenet/newserv.git] / authext / authext.h
index adc022058553519a821b0d7ff2ec39a1f171382b..4a78c2f0f4d5bc10aee4f80c561208e215cbaadb 100644 (file)
@@ -3,9 +3,15 @@
 
 #include "../irc/irc_config.h"
 #include "../lib/flags.h"
+#include "../lib/ccassert.h"
+
+#include <sys/types.h>
 
 #define MAXAUTHNAMEEXTS 5
 
+/* checking to see that u_int64_t == unsigned long long for strtoull */
+CCASSERT(sizeof(unsigned long long) == sizeof(u_int64_t))
+
 struct nick;
 
 typedef struct authname {
@@ -15,7 +21,7 @@ typedef struct authname {
   struct nick *nicks;
   struct authname *next, *nextbyname;
   unsigned int namebucket;
-  flag_t flags;
+  u_int64_t flags;
   char name[ACCOUNTLEN+1];
   /* These are extensions only used by other modules */
   void *exts[MAXAUTHNAMEEXTS];
@@ -30,7 +36,7 @@ authname *newauthname(void);
 void freeauthname (authname *hp);
 
 /* EXT management */
-int registerauthnameext(const char *name);
+int registerauthnameext(const char *name, int persistant);
 int findauthnameext(const char *name);
 void releaseauthnameext(int index);