summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2007-06-21 13:04:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:29 -0500
commit36fc39d845f5cf8d3a87a58e8ec7e14e7542e60f (patch)
treeb787c3487cf720a948e92a4e89fcb5e5a1298ba3 /source3
parent90773ab0be6030f249ac8b8cf65ad3e8141cbb42 (diff)
downloadsamba-36fc39d845f5cf8d3a87a58e8ec7e14e7542e60f.tar.gz
samba-36fc39d845f5cf8d3a87a58e8ec7e14e7542e60f.tar.bz2
samba-36fc39d845f5cf8d3a87a58e8ec7e14e7542e60f.zip
r23563: Add dump-event-list command to smbcontrol.
Guenther (This used to be commit 0d956a8e45cd4421cddb8e077e1960dafac3a4d0)
Diffstat (limited to 'source3')
-rw-r--r--source3/include/messages.h3
-rw-r--r--source3/utils/smbcontrol.c17
2 files changed, 20 insertions, 0 deletions
diff --git a/source3/include/messages.h b/source3/include/messages.h
index bf5f49b872..8c829712eb 100644
--- a/source3/include/messages.h
+++ b/source3/include/messages.h
@@ -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 :-)
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index 1a1a190957..83ccce7057 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -982,6 +982,22 @@ static BOOL do_winbind_onlinestatus(struct messaging_context *msg_ctx,
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,
@@ -1079,6 +1095,7 @@ static const struct {
{ "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 }
};