svn commit: samba r23563 - in branches: SAMBA_3_0/source/include
SAMBA_3_0/source/utils SAMBA_3_0_26/source/include
SAMBA_3_0_26/source/utils
gd at samba.org
gd at samba.org
Thu Jun 21 13:04:29 GMT 2007
Author: gd
Date: 2007-06-21 13:04:28 +0000 (Thu, 21 Jun 2007)
New Revision: 23563
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23563
Log:
Add dump-event-list command to smbcontrol.
Guenther
Modified:
branches/SAMBA_3_0/source/include/messages.h
branches/SAMBA_3_0/source/utils/smbcontrol.c
branches/SAMBA_3_0_26/source/include/messages.h
branches/SAMBA_3_0_26/source/utils/smbcontrol.c
Changeset:
Modified: branches/SAMBA_3_0/source/include/messages.h
===================================================================
--- branches/SAMBA_3_0/source/include/messages.h 2007-06-21 13:03:27 UTC (rev 23562)
+++ branches/SAMBA_3_0/source/include/messages.h 2007-06-21 13:04:28 UTC (rev 23563)
@@ -98,6 +98,9 @@
#define MSG_WINBIND_TRY_TO_GO_ONLINE 0x0406
#define MSG_WINBIND_FAILED_TO_GO_ONLINE 0x0407
+/* event messages */
+#define MSG_DUMP_EVENT_LIST 0x0500
+
/*
* Special flags passed to message_send. Allocated from the top, lets see when
* it collides with the message types in the lower 16 bits :-)
Modified: branches/SAMBA_3_0/source/utils/smbcontrol.c
===================================================================
--- branches/SAMBA_3_0/source/utils/smbcontrol.c 2007-06-21 13:03:27 UTC (rev 23562)
+++ branches/SAMBA_3_0/source/utils/smbcontrol.c 2007-06-21 13:04:28 UTC (rev 23563)
@@ -982,7 +982,23 @@
return num_replies;
}
+static BOOL do_dump_event_list(struct messaging_context *msg_ctx,
+ const struct server_id pid,
+ const int argc, const char **argv)
+{
+ struct server_id myid;
+ myid = pid_to_procid(sys_getpid());
+
+ if (argc != 1) {
+ fprintf(stderr, "Usage: smbcontrol <dest> dump-event-list\n");
+ return False;
+ }
+
+ return send_message(msg_ctx, pid, MSG_DUMP_EVENT_LIST, NULL, 0);
+}
+
+
static BOOL do_reload_config(struct messaging_context *msg_ctx,
const struct server_id pid,
const int argc, const char **argv)
@@ -1079,6 +1095,7 @@
{ "online", do_winbind_online, "Ask winbind to go into online state"},
{ "offline", do_winbind_offline, "Ask winbind to go into offline state"},
{ "onlinestatus", do_winbind_onlinestatus, "Request winbind online status"},
+ { "dump-event-list", do_dump_event_list, "Dump event list"},
{ "noop", do_noop, "Do nothing" },
{ NULL }
};
Modified: branches/SAMBA_3_0_26/source/include/messages.h
===================================================================
--- branches/SAMBA_3_0_26/source/include/messages.h 2007-06-21 13:03:27 UTC (rev 23562)
+++ branches/SAMBA_3_0_26/source/include/messages.h 2007-06-21 13:04:28 UTC (rev 23563)
@@ -98,6 +98,9 @@
#define MSG_WINBIND_TRY_TO_GO_ONLINE 0x0406
#define MSG_WINBIND_FAILED_TO_GO_ONLINE 0x0407
+/* event messages */
+#define MSG_DUMP_EVENT_LIST 0x0500
+
/*
* Special flags passed to message_send. Allocated from the top, lets see when
* it collides with the message types in the lower 16 bits :-)
Modified: branches/SAMBA_3_0_26/source/utils/smbcontrol.c
===================================================================
--- branches/SAMBA_3_0_26/source/utils/smbcontrol.c 2007-06-21 13:03:27 UTC (rev 23562)
+++ branches/SAMBA_3_0_26/source/utils/smbcontrol.c 2007-06-21 13:04:28 UTC (rev 23563)
@@ -982,7 +982,23 @@
return num_replies;
}
+static BOOL do_dump_event_list(struct messaging_context *msg_ctx,
+ const struct server_id pid,
+ const int argc, const char **argv)
+{
+ struct server_id myid;
+ myid = pid_to_procid(sys_getpid());
+
+ if (argc != 1) {
+ fprintf(stderr, "Usage: smbcontrol <dest> dump-event-list\n");
+ return False;
+ }
+
+ return send_message(msg_ctx, pid, MSG_DUMP_EVENT_LIST, NULL, 0);
+}
+
+
static BOOL do_reload_config(struct messaging_context *msg_ctx,
const struct server_id pid,
const int argc, const char **argv)
@@ -1079,6 +1095,7 @@
{ "online", do_winbind_online, "Ask winbind to go into online state"},
{ "offline", do_winbind_offline, "Ask winbind to go into offline state"},
{ "onlinestatus", do_winbind_onlinestatus, "Request winbind online status"},
+ { "dump-event-list", do_dump_event_list, "Dump event list"},
{ "noop", do_noop, "Do nothing" },
{ NULL }
};
More information about the samba-cvs
mailing list