$(call to_forb_subdir, refcnt.h) \
$(call to_forb_subdir, request.h) \
$(call to_forb_subdir, syncobj.h) \
+ $(call to_forb_subdir, server_id.h) \
$(call to_forb_subdir, uuid.h)
renamed_include_GEN_HEADERS = \
#include <ul_gavlcust.h>
#include <forb.h>
#include <string.h>
+#include <forb/server_id.h>
/**
int
forb_init_tmp_dir(void);
-void
-forb_server_id_init(forb_server_id *serer);
-
-/**
- * Compares to server IDs.
- *
- * @param id1
- * @param id2
- *
- * @return -1, 0 or 1 if the @a id1 is less, equal on greated to @a id2 respectively.
- */
-static inline int forb_server_id_cmp(const forb_server_id *id1, const forb_server_id *id2)
-{
- return memcmp(id1, id2, sizeof(forb_server_id));
-}
-
-/**
- * Converts a server ID to string.
- *
- * @param dest Where to store the converted string.
- * @param server_id Server ID to convert.
- * @param n The size of @a dest memory buffer.
- *
- * @return Same value as @a dest.
- */
-static inline char *
-forb_server_id_to_string(char *dest, const forb_server_id *server_id, size_t n)
-{
- return forb_uuid_to_string(dest, (forb_uuid_t*)server_id->uuid, n);
-}
-
-/**
- * Initializes server ID from string.
- *
- * @param server_id Initialized server ID.
- * @param string String form of server ID.
- *
- * @return Same value as @a server_id.
- */
-static inline forb_server_id *
-forb_server_id_from_string(forb_server_id *server_id, const char *string)
-{
- return (forb_server_id *)forb_uuid_from_string((forb_uuid_t*)&server_id->uuid, string);
-}
-
#endif
/* { */
/* gavl_insert(&type_registry, &interface->node); */
/* } */
+
/**
* Initializes server ID variable.
*
--- /dev/null
+#ifndef FORB_SERVER_ID_H
+#define FORB_SERVER_ID_H
+
+#include <forb/uuid.h>
+#include <forb/types.h>
+
+void
+forb_server_id_init(forb_server_id *serer);
+
+/**
+ * Compares to server IDs.
+ *
+ * @param id1
+ * @param id2
+ *
+ * @return -1, 0 or 1 if the @a id1 is less, equal on greated to @a id2 respectively.
+ */
+static inline int forb_server_id_cmp(const forb_server_id *id1, const forb_server_id *id2)
+{
+ return memcmp(id1, id2, sizeof(forb_server_id));
+}
+
+/**
+ * Converts a server ID to string.
+ *
+ * @param dest Where to store the converted string.
+ * @param server_id Server ID to convert.
+ * @param n The size of @a dest memory buffer.
+ *
+ * @return Same value as @a dest.
+ */
+static inline char *
+forb_server_id_to_string(char *dest, const forb_server_id *server_id, size_t n)
+{
+ return forb_uuid_to_string(dest, (forb_uuid_t*)server_id->uuid, n);
+}
+
+/**
+ * Initializes server ID from string.
+ *
+ * @param server_id Initialized server ID.
+ * @param string String form of server ID.
+ *
+ * @return Same value as @a server_id.
+ */
+static inline forb_server_id *
+forb_server_id_from_string(forb_server_id *server_id, const char *string)
+{
+ return (forb_server_id *)forb_uuid_from_string((forb_uuid_t*)&server_id->uuid, string);
+}
+
+
+
+#endif