summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-10-31 04:11:17 +0000
committerLuke Leighton <lkcl@samba.org>1999-10-31 04:11:17 +0000
commitdbda98047df356cb854176982db156971d19466a (patch)
tree6ebfa9d20ccae8480e1ec65759aeb1ec14c13898 /source3/include
parente7b5412943f5b558a8b34645e376c53a39b079a1 (diff)
downloadsamba-dbda98047df356cb854176982db156971d19466a.tar.gz
samba-dbda98047df356cb854176982db156971d19466a.tar.bz2
samba-dbda98047df356cb854176982db156971d19466a.zip
added svcinfo <service name> command.
(This used to be commit c243231d8596a732aba69179ff8f3882e7118297)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/ntdomain.h3
-rw-r--r--source3/include/proto.h15
2 files changed, 16 insertions, 2 deletions
diff --git a/source3/include/ntdomain.h b/source3/include/ntdomain.h
index 8d35d7aae3..3f2461af95 100644
--- a/source3/include/ntdomain.h
+++ b/source3/include/ntdomain.h
@@ -162,5 +162,8 @@ struct acct_info
#define REG_KEY_FN(fn) void (*fn)(const char*, const char*, time_t)
#define REG_VAL_FN(fn) void (*fn)(const char *, const char*, uint32, BUFFER2 *)
+#define SVC_QUERY_FN(fn) void (*fn)(QUERY_SERVICE_CONFIG *)
+#define SVC_INFO_FN(fn) void (*fn)(ENUM_SRVC_STATUS *)
+
#endif /* _NT_DOMAIN_H */
diff --git a/source3/include/proto.h b/source3/include/proto.h
index ad4c637aa0..aed1d824de 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -2042,7 +2042,7 @@ BOOL svc_open_sc_man(struct cli_state *cli, uint16 fnum,
POLICY_HND *hnd);
BOOL svc_open_service(struct cli_state *cli, uint16 fnum,
POLICY_HND *scm_hnd,
- char *srv_name,
+ const char *srv_name,
uint32 des_access,
POLICY_HND *hnd);
BOOL svc_enum_svcs(struct cli_state *cli, uint16 fnum,
@@ -3049,7 +3049,7 @@ BOOL make_svc_r_open_sc_man(SVC_R_OPEN_SC_MAN *r_u, POLICY_HND *hnd,
BOOL svc_io_r_open_sc_man(char *desc, SVC_R_OPEN_SC_MAN *r_u, prs_struct *ps, int depth);
BOOL make_svc_q_open_service(SVC_Q_OPEN_SERVICE *q_u,
POLICY_HND *hnd,
- char *server,
+ const char *server,
uint32 des_access) ;
BOOL svc_io_q_open_service(char *desc, SVC_Q_OPEN_SERVICE *q_u, prs_struct *ps, int depth);
BOOL make_svc_r_open_service(SVC_R_OPEN_SERVICE *r_u, POLICY_HND *hnd,
@@ -3303,6 +3303,17 @@ void cmd_time(struct client_info *info);
/*The following definitions come from rpcclient/cmd_svcctl.c */
+void svc_display_query_svc_cfg(QUERY_SERVICE_CONFIG *cfg);
+BOOL svc_query_service(struct cli_state *cli, uint16 fnum,
+ POLICY_HND *pol_scm,
+ const char *svc_name,
+ SVC_QUERY_FN(svc_query_fn));
+void cmd_svc_info(struct client_info *info);
+BOOL msrpc_svc_enum(struct client_info *info,
+ ENUM_SRVC_STATUS **svcs,
+ uint32 *num_svcs,
+ SVC_INFO_FN(info_fn),
+ SVC_QUERY_FN(query_fn));
void cmd_svc_enum(struct client_info *info);
/*The following definitions come from rpcclient/cmd_wkssvc.c */