s4:lib/messaging: terminate the irpc_servers_byname() result with server_id_set_disco...
[Samba/gebeck_regimport.git] / source3 / services / svc_winreg_glue.h
blobc9366b377d2e09d00ba499af0481ad6f03c25113
1 /*
2 * Unix SMB/CIFS implementation.
4 * SVC winreg glue
6 * Copyright (c) 2005 Marcin Krzysztof Porwit
7 * Copyright (c) 2005 Gerald (Jerry) Carter
8 * Copyright (c) 2011 Andreas Schneider <asn@samba.org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 3 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, see <http://www.gnu.org/licenses/>.
24 #ifndef SVC_WINREG_GLUE_H
25 #define SVC_WINREG_GLUE_H
27 struct auth_session_info;
29 struct security_descriptor* svcctl_gen_service_sd(TALLOC_CTX *mem_ctx);
31 struct security_descriptor *svcctl_get_secdesc(TALLOC_CTX *mem_ctx,
32 struct messaging_context *msg_ctx,
33 const struct auth_session_info *session_info,
34 const char *name);
36 bool svcctl_set_secdesc(struct messaging_context *msg_ctx,
37 const struct auth_session_info *session_info,
38 const char *name,
39 struct security_descriptor *sd);
41 const char *svcctl_get_string_value(TALLOC_CTX *mem_ctx,
42 struct messaging_context *msg_ctx,
43 const struct auth_session_info *session_info,
44 const char *key_name,
45 const char *value_name);
47 const char *svcctl_lookup_dispname(TALLOC_CTX *mem_ctx,
48 struct messaging_context *msg_ctx,
49 const struct auth_session_info *session_info,
50 const char *name);
52 const char *svcctl_lookup_description(TALLOC_CTX *mem_ctx,
53 struct messaging_context *msg_ctx,
54 const struct auth_session_info *session_info,
55 const char *name);
57 #endif /* SVC_WINREG_GLUE_H */
59 /* vim: set ts=8 sw=8 noet cindent syntax=c.doxygen: */