summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-01-07 15:03:45 +0100
committerGünther Deschner <gd@samba.org>2009-01-08 11:19:13 +0100
commitea7fa77bb2f2f17c3df2ed0069ab1d4746029df5 (patch)
treeca3669307b89996068d3643f5d1e7c80ff34d0eb /librpc
parent60c10a153a4e6c6cb2adf6c649b57a12f51dea26 (diff)
downloadsamba-ea7fa77bb2f2f17c3df2ed0069ab1d4746029df5.tar.gz
samba-ea7fa77bb2f2f17c3df2ed0069ab1d4746029df5.tar.bz2
samba-ea7fa77bb2f2f17c3df2ed0069ab1d4746029df5.zip
svcctl: add SERVICE_FAILURE_ACTIONS and SERVICE_DESCRIPTION to IDL.
Guenther
Diffstat (limited to 'librpc')
-rw-r--r--librpc/idl/svcctl.idl24
1 files changed, 24 insertions, 0 deletions
diff --git a/librpc/idl/svcctl.idl b/librpc/idl/svcctl.idl
index fa792c2457..70310967d5 100644
--- a/librpc/idl/svcctl.idl
+++ b/librpc/idl/svcctl.idl
@@ -556,6 +556,30 @@ import "misc.idl", "security.idl";
SERVICE_CONFIG_FAILURE_ACTIONS = 0x00000002
} svcctl_ConfigLevel;
+ typedef [gensize,public] struct {
+ [relative] nstring *description;
+ } SERVICE_DESCRIPTION;
+
+ typedef [v1_enum] enum {
+ SC_ACTION_NONE = 0,
+ SC_ACTION_RESTART = 1,
+ SC_ACTION_REBOOT = 2,
+ SC_ACTION_RUN_COMMAND = 3
+ } SC_ACTION_TYPE;
+
+ typedef struct {
+ SC_ACTION_TYPE type;
+ uint32 delay;
+ } SC_ACTION;
+
+ typedef [public,gensize] struct {
+ uint32 reset_period;
+ [relative] nstring *rebootmsg;
+ [relative] nstring *command;
+ [range(0,1024)] uint32 num_actions;
+ [relative] [size_is(num_actions)] SC_ACTION *actions;
+ } SERVICE_FAILURE_ACTIONS;
+
WERROR svcctl_QueryServiceConfig2A(
[in,ref] policy_handle *handle,
[in] svcctl_ConfigLevel info_level,