OpenAFS
OpenAFS distributed network file system
|
00001 /* 00002 * Copyright (c) 2009 Secure Endpoints Inc. 00003 * 00004 * Permission is hereby granted, free of charge, to any person 00005 * obtaining a copy of this software and associated documentation 00006 * files (the "Software"), to deal in the Software without 00007 * restriction, including without limitation the rights to use, copy, 00008 * modify, merge, publish, distribute, sublicense, and/or sell copies 00009 * of the Software, and to permit persons to whom the Software is 00010 * furnished to do so, subject to the following conditions: 00011 * 00012 * The above copyright notice and this permission notice shall be 00013 * included in all copies or substantial portions of the Software. 00014 * 00015 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 00016 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 00017 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 00018 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS 00019 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 00020 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 00021 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 00022 * SOFTWARE. 00023 */ 00024 00025 #ifndef __SMB_RPC_H__ 00026 #define __SMB_RPC_H__ 00027 00028 struct smb_rpc; 00029 00030 #ifdef SMB_RPC_IMPL 00031 00032 #include "msrpc.h" 00033 00034 typedef 00035 struct smb_rpc { 00036 smb_fid_t * fidp; 00037 msrpc_conn rpc_conn; 00038 } smb_rpc_t; 00039 00040 #endif 00041 00042 afs_int32 00043 smb_SetupRPCFid(smb_fid_t * fidp, const clientchar_t * epnamep, 00044 unsigned short * file_type, 00045 unsigned short * device_state); 00046 00047 void 00048 smb_CleanupRPCFid(IN smb_fid_t * fidp); 00049 00050 afs_int32 00051 smb_RPCRead(smb_fid_t *fidp, smb_vc_t *vcp, smb_packet_t *inp, smb_packet_t *outp); 00052 00053 afs_int32 00054 smb_RPCWrite(smb_fid_t *fidp, smb_vc_t *vcp, smb_packet_t *inp, smb_packet_t *outp); 00055 00056 afs_int32 00057 smb_RPCV3Read(smb_fid_t *fidp, smb_vc_t *vcp, smb_packet_t *inp, smb_packet_t *outp); 00058 00059 afs_int32 00060 smb_RPCV3Write(smb_fid_t *fidp, smb_vc_t *vcp, smb_packet_t *inp, smb_packet_t *outp); 00061 00062 afs_int32 00063 smb_RPCNmpipeTransact(smb_fid_t *fidp, smb_vc_t *vcp, smb_tran2Packet_t *p, smb_packet_t *op); 00064 00065 #endif /* __SMB_RPC_H__ */