Browse Source

usrloc(k): db modes defines moved in usrloc.h

- they are part of API as registrar uses them
Daniel-Constantin Mierla 15 years ago
parent
commit
efe9d9d48f

+ 1 - 0
modules_k/usrloc/dlist.c

@@ -46,6 +46,7 @@
 #include "../../ip_addr.h"
 #include "../../socket_info.h"
 #include "udomain.h"           /* new_udomain, free_udomain */
+#include "usrloc.h"
 #include "utime.h"
 #include "ul_mod.h"
 

+ 1 - 0
modules_k/usrloc/ucontact.c

@@ -43,6 +43,7 @@
 #include "../../lib/srdb1/db.h"
 #include "ul_mod.h"
 #include "ul_callback.h"
+#include "usrloc.h"
 #include "urecord.h"
 #include "ucontact.h"
 

+ 1 - 0
modules_k/usrloc/udomain.c

@@ -45,6 +45,7 @@
 #include "../../ut.h"
 #include "../../lib/kcore/hash_func.h"
 #include "ul_mod.h"            /* usrloc module parameters */
+#include "usrloc.h"
 #include "utime.h"
 
 

+ 0 - 5
modules_k/usrloc/ul_mod.h

@@ -43,11 +43,6 @@
  */
 
 
-#define NO_DB         0
-#define WRITE_THROUGH 1
-#define WRITE_BACK    2
-#define DB_ONLY       3
-
 #define UL_TABLE_VERSION 1004
 
 extern str user_col;

+ 1 - 0
modules_k/usrloc/urecord.c

@@ -41,6 +41,7 @@
 #include "../../ut.h"
 #include "../../lib/kcore/hash_func.h"
 #include "ul_mod.h"
+#include "usrloc.h"
 #include "utime.h"
 #include "ul_callback.h"
 

+ 6 - 0
modules_k/usrloc/usrloc.h

@@ -35,6 +35,12 @@
 #include "ucontact.h"
 #include "ul_callback.h"
 
+/* storage modes */
+#define NO_DB         0
+#define WRITE_THROUGH 1
+#define WRITE_BACK    2
+#define DB_ONLY       3
+
 
 /*! usrloc API export structure */
 typedef struct usrloc_api {