Fix typo.
[Samba/gebeck_regimport.git] / source3 / include / libmsrpc_internal.h
blob623c43f9c3937741e3e9683f3f4cb451e89df944
1 /*
2 * Unix SMB/CIFS implementation.
3 * MS-RPC client internal definitions
4 * Copyright (C) Chris Nicholls 2005.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
20 #ifndef LIBMSRPC_INTERNAL_H
21 #define LIBMSRPC_INTERNAL_H
23 #include "libmsrpc.h"
25 /*definitions*/
27 struct CacServerHandleInternal {
28 /*stores the os type of the server*/
29 uint16 srv_level;
31 /*stores the initialized/active pipes*/
32 bool pipes[PI_MAX_PIPES];
34 /*underlying smbc context*/
35 SMBCCTX *ctx;
37 /*did the user supply this SMBCCTX?*/
38 bool user_supplied_ctx;
41 /*used to get a struct rpc_pipe_client* to be passed into rpccli* calls*/
43 /*nessecary prototypes*/
44 bool rid_in_list(uint32 rid, uint32 *list, uint32 list_len);
46 int cac_ParseRegPath(char *path, uint32 *reg_type, char **key_name);
48 REG_VALUE_DATA *cac_MakeRegValueData(TALLOC_CTX *mem_ctx, uint32 data_type, REGVAL_BUFFER buf);
50 RPC_DATA_BLOB *cac_MakeRpcDataBlob(TALLOC_CTX *mem_ctx, uint32 data_type, REG_VALUE_DATA data);
52 SAM_USERINFO_CTR *cac_MakeUserInfoCtr(TALLOC_CTX *mem_ctx, CacUserInfo *info);
54 CacUserInfo *cac_MakeUserInfo(TALLOC_CTX *mem_ctx, SAM_USERINFO_CTR *ctr);
55 CacGroupInfo *cac_MakeGroupInfo(TALLOC_CTX *mem_ctx, GROUP_INFO_CTR *ctr);
56 GROUP_INFO_CTR *cac_MakeGroupInfoCtr(TALLOC_CTX *mem_ctx, CacGroupInfo *info);
57 CacAliasInfo *cac_MakeAliasInfo(TALLOC_CTX *mem_ctx, ALIAS_INFO_CTR ctr);
58 ALIAS_INFO_CTR *cac_MakeAliasInfoCtr(TALLOC_CTX *mem_ctx, CacAliasInfo *info);
59 CacDomainInfo *cac_MakeDomainInfo(TALLOC_CTX *mem_ctx, SAM_UNK_INFO_1 *info1, SAM_UNK_INFO_2 *info2, SAM_UNK_INFO_12 *info12);
60 CacService *cac_MakeServiceArray(TALLOC_CTX *mem_ctx, ENUM_SERVICES_STATUS *svc, uint32 num_services);
61 int cac_InitCacServiceConfig(TALLOC_CTX *mem_ctx, SERVICE_CONFIG *src, CacServiceConfig *dest);
63 /*moved to libmsrpc.h*/
64 /*struct rpc_pipe_client *cac_GetPipe(CacServerHandle *hnd, int pi_idx);*/
66 SMBCSRV *smbc_attr_server(SMBCCTX *context,
67 const char *server, const char *share,
68 fstring workgroup,
69 fstring username, fstring password,
70 POLICY_HND *pol);
73 #endif /* LIBMSRPC_INTERNAL_H */