f2f036e7255b1b7fe07bb0a31ec7f1559c18b993
[amitay/samba.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 security_descriptor* svcctl_gen_service_sd(TALLOC_CTX *mem_ctx);
28
29 struct security_descriptor *svcctl_get_secdesc(TALLOC_CTX *mem_ctx,
30                                                struct messaging_context *msg_ctx,
31                                                const struct auth_serversupplied_info *server_info,
32                                                const char *name);
33
34 bool svcctl_set_secdesc(struct messaging_context *msg_ctx,
35                         const struct auth_serversupplied_info *server_info,
36                         const char *name,
37                         struct security_descriptor *sd);
38
39 const char *svcctl_get_string_value(TALLOC_CTX *mem_ctx,
40                                     struct messaging_context *msg_ctx,
41                                     const struct auth_serversupplied_info *server_info,
42                                     const char *key_name,
43                                     const char *value_name);
44
45 const char *svcctl_lookup_dispname(TALLOC_CTX *mem_ctx,
46                                    struct messaging_context *msg_ctx,
47                                    const struct auth_serversupplied_info *server_info,
48                                    const char *name);
49
50 const char *svcctl_lookup_description(TALLOC_CTX *mem_ctx,
51                                       struct messaging_context *msg_ctx,
52                                       const struct auth_serversupplied_info *server_info,
53                                       const char *name);
54
55 #endif /* SVC_WINREG_GLUE_H */
56
57 /* vim: set ts=8 sw=8 noet cindent syntax=c.doxygen: */