source: branches/samba-3.2.x/source/include/libmsrpc_internal.h

Last change on this file was 133, checked in by Paul Smedley, 17 years ago

Update trunk to 3.2.0pre3

File size: 2.7 KB
Line 
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.
10 *
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.
15 *
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/>.
18 */
19
20#ifndef LIBMSRPC_INTERNAL_H
21#define LIBMSRPC_INTERNAL_H
22
23#include "libmsrpc.h"
24
25/*definitions*/
26
27struct CacServerHandleInternal {
28 /*stores the os type of the server*/
29 uint16 srv_level;
30
31 /*stores the initialized/active pipes*/
32 bool pipes[PI_MAX_PIPES];
33
34 /*underlying smbc context*/
35 SMBCCTX *ctx;
36
37 /*did the user supply this SMBCCTX?*/
38 bool user_supplied_ctx;
39};
40
41/*used to get a struct rpc_pipe_client* to be passed into rpccli* calls*/
42
43/*nessecary prototypes*/
44bool rid_in_list(uint32 rid, uint32 *list, uint32 list_len);
45
46int cac_ParseRegPath(char *path, uint32 *reg_type, char **key_name);
47
48REG_VALUE_DATA *cac_MakeRegValueData(TALLOC_CTX *mem_ctx, uint32 data_type, REGVAL_BUFFER buf);
49
50RPC_DATA_BLOB *cac_MakeRpcDataBlob(TALLOC_CTX *mem_ctx, uint32 data_type, REG_VALUE_DATA data);
51
52SAM_USERINFO_CTR *cac_MakeUserInfoCtr(TALLOC_CTX *mem_ctx, CacUserInfo *info);
53
54CacUserInfo *cac_MakeUserInfo(TALLOC_CTX *mem_ctx, SAM_USERINFO_CTR *ctr);
55CacGroupInfo *cac_MakeGroupInfo(TALLOC_CTX *mem_ctx, GROUP_INFO_CTR *ctr);
56GROUP_INFO_CTR *cac_MakeGroupInfoCtr(TALLOC_CTX *mem_ctx, CacGroupInfo *info);
57CacAliasInfo *cac_MakeAliasInfo(TALLOC_CTX *mem_ctx, ALIAS_INFO_CTR ctr);
58ALIAS_INFO_CTR *cac_MakeAliasInfoCtr(TALLOC_CTX *mem_ctx, CacAliasInfo *info);
59CacDomainInfo *cac_MakeDomainInfo(TALLOC_CTX *mem_ctx, SAM_UNK_INFO_1 *info1, SAM_UNK_INFO_2 *info2, SAM_UNK_INFO_12 *info12);
60CacService *cac_MakeServiceArray(TALLOC_CTX *mem_ctx, ENUM_SERVICES_STATUS *svc, uint32 num_services);
61int cac_InitCacServiceConfig(TALLOC_CTX *mem_ctx, SERVICE_CONFIG *src, CacServiceConfig *dest);
62
63/*moved to libmsrpc.h*/
64/*struct rpc_pipe_client *cac_GetPipe(CacServerHandle *hnd, int pi_idx);*/
65
66SMBCSRV *smbc_attr_server(SMBCCTX *context,
67 const char *server, const char *share,
68 fstring workgroup,
69 fstring username, fstring password,
70 POLICY_HND *pol);
71
72
73#endif /* LIBMSRPC_INTERNAL_H */
Note: See TracBrowser for help on using the repository browser.