summaryrefslogtreecommitdiff
path: root/source3/rpcclient/display.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-01-27 20:31:58 +0000
committerLuke Leighton <lkcl@samba.org>1999-01-27 20:31:58 +0000
commit05040640856b8eb1bebc26afa2a2e210241b4838 (patch)
tree51983e9edc476b5ba7b6e8dcaad9819e2aa99277 /source3/rpcclient/display.c
parentf6c646467d3b6a4ad296e50a1bf89a36ce9551bc (diff)
downloadsamba-05040640856b8eb1bebc26afa2a2e210241b4838.tar.gz
samba-05040640856b8eb1bebc26afa2a2e210241b4838.tar.bz2
samba-05040640856b8eb1bebc26afa2a2e210241b4838.zip
Service Control Manager - service enumeration.
(This used to be commit f4dd8f6b566961890b2933b7a413241bf9b93797)
Diffstat (limited to 'source3/rpcclient/display.c')
-rw-r--r--source3/rpcclient/display.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/source3/rpcclient/display.c b/source3/rpcclient/display.c
index 8a5844f943..800b89e563 100644
--- a/source3/rpcclient/display.c
+++ b/source3/rpcclient/display.c
@@ -1535,6 +1535,30 @@ void display_reg_key_info(FILE *out_hnd, enum action_type action,
}
}
+/****************************************************************************
+ display structure
+ ****************************************************************************/
+void display_svc_info(FILE *out_hnd, enum action_type action, ENUM_SRVC_STATUS *svc)
+{
+ switch (action)
+ {
+ case ACTION_HEADER:
+ {
+ break;
+ }
+ case ACTION_ENUMERATE:
+ {
+ fprintf(out_hnd, "\t%s:", unistr2(svc->uni_srvc_name .buffer)); /* service name unicode string */
+ fprintf(out_hnd, "\t%s\n", unistr2(svc->uni_disp_name .buffer)); /* display name unicode string */
+ break;
+ }
+ case ACTION_FOOTER:
+ {
+ break;
+ }
+ }
+}
+
#if COPY_THIS_TEMPLATE
/****************************************************************************
display structure