lib: Move "message_send_all" to serverid.c
[metze/samba/wip.git] / source3 / include / serverid.h
index 19caec8f8132fe776d3d3cfe1c8f7723c6254331..749b950f2c83bc7a8981393e93eceafd96b94545 100644 (file)
 #include "lib/dbwrap/dbwrap.h"
 #include "librpc/gen_ndr/server_id.h"
 
+/* Flags to classify messages - used in message_send_all() */
+/* Sender will filter by flag. */
+
+#define FLAG_MSG_GENERAL               0x0001
+#define FLAG_MSG_SMBD                  0x0002
+#define FLAG_MSG_NMBD                  0x0004
+#define FLAG_MSG_WINBIND               0x0008
+#define FLAG_MSG_PRINT_GENERAL         0x0010
+/* dbwrap messages 4001-4999 */
+#define FLAG_MSG_DBWRAP                        0x0020
+
 /*
  * Register a server with its unique id
  */
@@ -60,4 +71,11 @@ bool serverid_traverse_read(int (*fn)(const struct server_id *id,
  */
 bool serverid_parent_init(TALLOC_CTX *mem_ctx);
 
+struct messaging_context;
+
+bool message_send_all(struct messaging_context *msg_ctx,
+                     int msg_type,
+                     const void *buf, size_t len,
+                     int *n_sent);
+
 #endif