summaryrefslogtreecommitdiff
path: root/source3/include/serverid.h
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include/serverid.h')
-rw-r--r--source3/include/serverid.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/source3/include/serverid.h b/source3/include/serverid.h
index babb21b8f7..8fc06a15d8 100644
--- a/source3/include/serverid.h
+++ b/source3/include/serverid.h
@@ -22,6 +22,9 @@
#include "includes.h"
+/** Don't verify this unique id */
+#define SERVERID_UNIQUE_ID_NOT_TO_VERIFY 0xFFFFFFFFFFFFFFFFULL
+
/*
* Register a server with its unique id
*/
@@ -69,4 +72,10 @@ bool serverid_traverse_read(int (*fn)(const struct server_id *id,
*/
bool serverid_parent_init(TALLOC_CTX *mem_ctx);
+/*
+ * Get a random unique_id and make sure that it is not
+ * SERVERID_UNIQUE_ID_NOT_TO_VERIFY
+ */
+uint64_t serverid_get_random_unique_id(void);
+
#endif