s4-messaging: Unify list of possible messages into messaging.idl
authorAndrew Bartlett <abartlet@samba.org>
Sun, 15 Feb 2015 23:43:40 +0000 (12:43 +1300)
committerVolker Lendecke <vl@samba.org>
Mon, 16 Feb 2015 13:48:41 +0000 (14:48 +0100)
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Pair-programmed-with: Garming Sam <garming@catalyst.net.nz>
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Feb 16 14:48:41 CET 2015 on sn-devel-104

librpc/idl/messaging.idl
source4/lib/messaging/messaging.h

index ce40a7bb25602e90dd12e46409dec6b7f4c589c9..99b2af28a8e18e199447930e4d367e8f9a940c6d 100644 (file)
@@ -116,10 +116,25 @@ interface messaging
                /* smbXsrv messages */
                MSG_SMBXSRV_SESSION_CLOSE       = 0x0600,
 
+               /* source4 and NTVFS smb server messages */
+               MSG_BRL_RETRY                   = 0x0700,
+               MSG_PVFS_RETRY_OPEN             = 0x0701,
+               MSG_IRPC                        = 0x0702,
+               MSG_NTVFS_OPLOCK_BREAK          = 0x0703,
+               MSG_DREPL_ALLOCATE_RID          = 0x0704,
+
                /* dbwrap messages 4001-4999 (0x0FA0 - 0x1387) */
                /* MSG_DBWRAP_TDB2_CHANGES              = 4001, */
                /* MSG_DBWRAP_G_LOCK_RETRY              = 4002, */
-               MSG_DBWRAP_MODIFIED             = 4003
+               MSG_DBWRAP_MODIFIED             = 4003,
+
+               /*
+                * source4 allows new messages to be registered at
+                * runtime (currently used in python bindings and in
+                * smbtorture). Temporary messaging endpoints are
+                * allocated above this line
+                */
+               MSG_TMP_BASE                    = 0xF000
        } messaging_type;
 
        /* messaging struct sent across the sockets and stored in the tdb */
index 920e39d2c5cc47b1e763c280f3a9de4225979a36..c3477f2d3422141a589cb2f4826f9626d001dd69 100644 (file)
 #define _SOURCE4_LIB_MESSAGING_MESSAGES_H_
 
 #include "librpc/gen_ndr/server_id.h"
+#include "librpc/gen_ndr/messaging.h"
 
 struct imessaging_context;
 
-/* general messages */
-#define MSG_DEBUG              1
-#define MSG_PING               2
-#define MSG_PONG               3
-#define MSG_BRL_RETRY          4
-#define MSG_PVFS_RETRY_OPEN    5
-#define MSG_IRPC                6
-#define MSG_PVFS_NOTIFY                7
-#define MSG_NTVFS_OPLOCK_BREAK 8
-#define MSG_REQ_POOL_USAGE     9
-#define MSG_POOL_USAGE          10
-#define MSG_DREPL_ALLOCATE_RID 11
-
-/* temporary messaging endpoints are allocated above this line */
-#define MSG_TMP_BASE           1000
-
 /* taskid for messaging of parent process */
 #define SAMBA_PARENT_TASKID     0