]> git.ipfire.org Git - location/libloc.git/blobdiff - src/loc/as.h
Bump database version to "1"
[location/libloc.git] / src / loc / as.h
index b16de84b665b076c5ff0aed166ddbb4299e95917..b4c8e1d66fc509051b4541bb2d10a8c642c70b97 100644 (file)
@@ -35,9 +35,15 @@ int loc_as_set_name(struct loc_as* as, const char* name);
 
 int loc_as_cmp(struct loc_as* as1, struct loc_as* as2);
 
-int loc_as_new_from_database_v0(struct loc_ctx* ctx, struct loc_stringpool* pool,
-               struct loc_as** as, const struct loc_database_as_v0* dbobj);
-int loc_as_to_database_v0(struct loc_as* as, struct loc_stringpool* pool,
-               struct loc_database_as_v0* dbobj);
+#ifdef LIBLOC_PRIVATE
+
+int loc_as_new_from_database_v1(struct loc_ctx* ctx, struct loc_stringpool* pool,
+               struct loc_as** as, const struct loc_database_as_v1* dbobj);
+int loc_as_to_database_v1(struct loc_as* as, struct loc_stringpool* pool,
+               struct loc_database_as_v1* dbobj);
+
+int loc_as_match_string(struct loc_as* as, const char* string);
+
+#endif
 
 #endif