include/libmsrpc_internal.h

説明を見る。
00001 /* 
00002  *  Unix SMB/CIFS implementation.
00003  *  MS-RPC client internal definitions
00004  *  Copyright (C) Chris Nicholls              2005.
00005  *  
00006  *  This program is free software; you can redistribute it and/or modify
00007  *  it under the terms of the GNU General Public License as published by
00008  *  the Free Software Foundation; either version 2 of the License, or
00009  *  (at your option) any later version.
00010  *  
00011  *  This program is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *  
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with this program; if not, write to the Free Software
00018  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  */
00020 
00021 #ifndef LIBMSRPC_INTERNAL_H
00022 #define LIBMSRPC_INTERNAL_H
00023 
00024 #include "libmsrpc.h"
00025 
00026 /*definitions*/
00027 
00028 struct CacServerHandleInternal {
00029    /*stores the os type of the server*/
00030    uint16 srv_level;
00031 
00032    /*stores the initialized/active pipes*/
00033    BOOL pipes[PI_MAX_PIPES];
00034 
00035    /*underlying smbc context*/
00036    SMBCCTX *ctx;
00037 
00038    /*did the user supply this SMBCCTX?*/
00039    BOOL user_supplied_ctx;
00040 };
00041 
00042 /*used to get a struct rpc_pipe_client* to be passed into rpccli* calls*/
00043 
00044 /*nessecary prototypes*/
00045 BOOL rid_in_list(uint32 rid, uint32 *list, uint32 list_len);
00046 
00047 int cac_ParseRegPath(char *path, uint32 *reg_type, char **key_name);
00048 
00049 REG_VALUE_DATA *cac_MakeRegValueData(TALLOC_CTX *mem_ctx, uint32 data_type, REGVAL_BUFFER buf);
00050 
00051 RPC_DATA_BLOB *cac_MakeRpcDataBlob(TALLOC_CTX *mem_ctx, uint32 data_type, REG_VALUE_DATA data);
00052 
00053 SAM_USERINFO_CTR *cac_MakeUserInfoCtr(TALLOC_CTX *mem_ctx, CacUserInfo *info);
00054 
00055 CacUserInfo *cac_MakeUserInfo(TALLOC_CTX *mem_ctx, SAM_USERINFO_CTR *ctr);
00056 CacGroupInfo *cac_MakeGroupInfo(TALLOC_CTX *mem_ctx, GROUP_INFO_CTR *ctr);
00057 GROUP_INFO_CTR *cac_MakeGroupInfoCtr(TALLOC_CTX *mem_ctx, CacGroupInfo *info);
00058 CacAliasInfo *cac_MakeAliasInfo(TALLOC_CTX *mem_ctx, ALIAS_INFO_CTR ctr);
00059 ALIAS_INFO_CTR *cac_MakeAliasInfoCtr(TALLOC_CTX *mem_ctx, CacAliasInfo *info);
00060 CacDomainInfo *cac_MakeDomainInfo(TALLOC_CTX *mem_ctx, SAM_UNK_INFO_1 *info1, SAM_UNK_INFO_2 *info2, SAM_UNK_INFO_12 *info12);
00061 CacService *cac_MakeServiceArray(TALLOC_CTX *mem_ctx, ENUM_SERVICES_STATUS *svc, uint32 num_services);
00062 int cac_InitCacServiceConfig(TALLOC_CTX *mem_ctx, SERVICE_CONFIG *src, CacServiceConfig *dest);
00063 
00064 /*moved to libmsrpc.h*/
00065 /*struct rpc_pipe_client *cac_GetPipe(CacServerHandle *hnd, int pi_idx);*/
00066 
00067 SMBCSRV *smbc_attr_server(SMBCCTX *context,
00068                           const char *server, const char *share, 
00069                           fstring workgroup,
00070                           fstring username, fstring password,
00071                           POLICY_HND *pol);
00072 
00073 
00074 #endif /* LIBMSRPC_INTERNAL_H */

Sambaに対してSat Aug 29 21:22:54 2009に生成されました。  doxygen 1.4.7