e013f8deeda1d2b5e723417275561ddd972e5c4c
[metze/samba/wip.git] / source3 / services / svc_winreg_glue.h
1 /*
2  *  Unix SMB/CIFS implementation.
3  *
4  *  SVC winreg glue
5  *
6  *  Copyright (c) 2005      Marcin Krzysztof Porwit
7  *  Copyright (c) 2005      Gerald (Jerry) Carter
8  *  Copyright (c) 2011      Andreas Schneider <asn@samba.org>
9  *
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.
14  *
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.
19  *
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/>.
22  */
23
24 #ifndef SVC_WINREG_GLUE_H
25 #define SVC_WINREG_GLUE_H
26
27 struct auth_session_info;
28
29 struct security_descriptor* svcctl_gen_service_sd(TALLOC_CTX *mem_ctx);
30
31 WERROR svcctl_get_secdesc(struct messaging_context *msg_ctx,
32                           const struct auth_session_info *session_info,
33                           const char *name,
34                           TALLOC_CTX *mem_ctx,
35                           struct security_descriptor **result);
36
37 bool svcctl_set_secdesc(struct messaging_context *msg_ctx,
38                         const struct auth_session_info *session_info,
39                         const char *name,
40                         struct security_descriptor *sd);
41
42 const char *svcctl_get_string_value(TALLOC_CTX *mem_ctx,
43                                     struct messaging_context *msg_ctx,
44                                     const struct auth_session_info *session_info,
45                                     const char *key_name,
46                                     const char *value_name);
47
48 const char *svcctl_lookup_dispname(TALLOC_CTX *mem_ctx,
49                                    struct messaging_context *msg_ctx,
50                                    const struct auth_session_info *session_info,
51                                    const char *name);
52
53 const char *svcctl_lookup_description(TALLOC_CTX *mem_ctx,
54                                       struct messaging_context *msg_ctx,
55                                       const struct auth_session_info *session_info,
56                                       const char *name);
57
58 #endif /* SVC_WINREG_GLUE_H */
59
60 /* vim: set ts=8 sw=8 noet cindent syntax=c.doxygen: */