Sync to Wine-20050725:

Francois Gouget <fgouget@free.fr>
- Fix the NdrVaryingArrayUnmarshall prototype (reported by
  winapi_check).
- Assorted spelling fixes.
Robert Shearman <rob@codeweavers.com>
- Add stubs for most of the NDR marshaling functions.
- IRpcStubBuffer_Disconnect can be called more than once.
Mike McCormack <mike@codeweavers.com>
- Interlocked LONG* gcc warning fixes.
Stefan Huehner <stefan@huehner.org>
- Fix -Wmissing-declarations warnings.
- Fix some missing-declarations warnings.

svn path=/trunk/; revision=17337
This commit is contained in:
Gé van Geldorp 2005-08-12 17:50:33 +00:00
parent 8df355e8a6
commit 95a149a8df
10 changed files with 552 additions and 78 deletions

View file

@ -100,8 +100,7 @@ ULONG WINAPI NdrCStdStubBuffer_Release(LPRPCSTUBBUFFER iface,
TRACE("(%p)->Release()\n",This); TRACE("(%p)->Release()\n",This);
if (!--(This->RefCount)) { if (!--(This->RefCount)) {
if(This->pvServerObject) IRpcStubBuffer_Disconnect(iface);
IUnknown_Release(This->pvServerObject);
if(This->pPSFactory) if(This->pPSFactory)
IPSFactoryBuffer_Release(This->pPSFactory); IPSFactoryBuffer_Release(This->pPSFactory);
HeapFree(GetProcessHeap(),0,This); HeapFree(GetProcessHeap(),0,This);
@ -123,7 +122,11 @@ void WINAPI CStdStubBuffer_Disconnect(LPRPCSTUBBUFFER iface)
{ {
CStdStubBuffer *This = (CStdStubBuffer *)iface; CStdStubBuffer *This = (CStdStubBuffer *)iface;
TRACE("(%p)->Disconnect()\n",This); TRACE("(%p)->Disconnect()\n",This);
This->pvServerObject = NULL; if (This->pvServerObject)
{
IUnknown_Release(This->pvServerObject);
This->pvServerObject = NULL;
}
} }
HRESULT WINAPI CStdStubBuffer_Invoke(LPRPCSTUBBUFFER iface, HRESULT WINAPI CStdStubBuffer_Invoke(LPRPCSTUBBUFFER iface,

View file

@ -114,16 +114,23 @@ NDR_MARSHALL NdrMarshaller[NDR_TABLE_SIZE] = {
NdrPointerMarshall, NdrPointerMarshall, NdrPointerMarshall, NdrPointerMarshall,
/* 0x15 */ /* 0x15 */
NdrSimpleStructMarshall, NdrSimpleStructMarshall, NdrSimpleStructMarshall, NdrSimpleStructMarshall,
0, 0, 0, NdrConformantStructMarshall, NdrConformantStructMarshall,
NdrConformantVaryingStructMarshall,
NdrComplexStructMarshall, NdrComplexStructMarshall,
/* 0x1b */ /* 0x1b */
NdrConformantArrayMarshall, 0, 0, 0, 0, 0, NdrConformantArrayMarshall,
NdrConformantVaryingArrayMarshall,
NdrFixedArrayMarshall, NdrFixedArrayMarshall,
NdrVaryingArrayMarshall, NdrVaryingArrayMarshall,
NdrComplexArrayMarshall, NdrComplexArrayMarshall,
/* 0x22 */ /* 0x22 */
NdrConformantStringMarshall, 0, 0, NdrConformantStringMarshall, 0, 0,
NdrConformantStringMarshall, 0, 0, 0, 0, NdrConformantStringMarshall, 0, 0, 0, 0,
/* 0x2a */ /* 0x2a */
0, 0, 0, 0, 0, NdrEncapsulatedUnionMarshall,
NdrNonEncapsulatedUnionMarshall,
0,
NdrXmitOrRepAsMarshall, NdrXmitOrRepAsMarshall,
/* 0x2f */ /* 0x2f */
NdrInterfacePointerMarshall, NdrInterfacePointerMarshall,
/* 0xb0 */ /* 0xb0 */
@ -140,16 +147,23 @@ NDR_UNMARSHALL NdrUnmarshaller[NDR_TABLE_SIZE] = {
NdrPointerUnmarshall, NdrPointerUnmarshall, NdrPointerUnmarshall, NdrPointerUnmarshall,
/* 0x15 */ /* 0x15 */
NdrSimpleStructUnmarshall, NdrSimpleStructUnmarshall, NdrSimpleStructUnmarshall, NdrSimpleStructUnmarshall,
0, 0, 0, NdrConformantStructUnmarshall, NdrConformantStructUnmarshall,
NdrConformantVaryingStructUnmarshall,
NdrComplexStructUnmarshall, NdrComplexStructUnmarshall,
/* 0x1b */ /* 0x1b */
NdrConformantArrayUnmarshall, 0, 0, 0, 0, 0, NdrConformantArrayUnmarshall,
NdrConformantVaryingArrayUnmarshall,
NdrFixedArrayUnmarshall, NdrFixedArrayUnmarshall,
NdrVaryingArrayUnmarshall, NdrVaryingArrayUnmarshall,
NdrComplexArrayUnmarshall, NdrComplexArrayUnmarshall,
/* 0x22 */ /* 0x22 */
NdrConformantStringUnmarshall, 0, 0, NdrConformantStringUnmarshall, 0, 0,
NdrConformantStringUnmarshall, 0, 0, 0, 0, NdrConformantStringUnmarshall, 0, 0, 0, 0,
/* 0x2a */ /* 0x2a */
0, 0, 0, 0, 0, NdrEncapsulatedUnionUnmarshall,
NdrNonEncapsulatedUnionUnmarshall,
0,
NdrXmitOrRepAsUnmarshall, NdrXmitOrRepAsUnmarshall,
/* 0x2f */ /* 0x2f */
NdrInterfacePointerUnmarshall, NdrInterfacePointerUnmarshall,
/* 0xb0 */ /* 0xb0 */
@ -166,16 +180,23 @@ NDR_BUFFERSIZE NdrBufferSizer[NDR_TABLE_SIZE] = {
NdrPointerBufferSize, NdrPointerBufferSize, NdrPointerBufferSize, NdrPointerBufferSize,
/* 0x15 */ /* 0x15 */
NdrSimpleStructBufferSize, NdrSimpleStructBufferSize, NdrSimpleStructBufferSize, NdrSimpleStructBufferSize,
0, 0, 0, NdrConformantStructBufferSize, NdrConformantStructBufferSize,
NdrConformantVaryingStructBufferSize,
NdrComplexStructBufferSize, NdrComplexStructBufferSize,
/* 0x1b */ /* 0x1b */
NdrConformantArrayBufferSize, 0, 0, 0, 0, 0, NdrConformantArrayBufferSize,
NdrConformantVaryingArrayBufferSize,
NdrFixedArrayBufferSize, NdrFixedArrayBufferSize,
NdrVaryingArrayBufferSize, NdrVaryingArrayBufferSize,
NdrComplexArrayBufferSize, NdrComplexArrayBufferSize,
/* 0x22 */ /* 0x22 */
NdrConformantStringBufferSize, 0, 0, NdrConformantStringBufferSize, 0, 0,
NdrConformantStringBufferSize, 0, 0, 0, 0, NdrConformantStringBufferSize, 0, 0, 0, 0,
/* 0x2a */ /* 0x2a */
0, 0, 0, 0, 0, NdrEncapsulatedUnionBufferSize,
NdrNonEncapsulatedUnionBufferSize,
0,
NdrXmitOrRepAsBufferSize, NdrXmitOrRepAsBufferSize,
/* 0x2f */ /* 0x2f */
NdrInterfacePointerBufferSize, NdrInterfacePointerBufferSize,
/* 0xb0 */ /* 0xb0 */
@ -218,15 +239,23 @@ NDR_FREE NdrFreer[NDR_TABLE_SIZE] = {
NdrPointerFree, NdrPointerFree, NdrPointerFree, NdrPointerFree,
/* 0x15 */ /* 0x15 */
NdrSimpleStructFree, NdrSimpleStructFree, NdrSimpleStructFree, NdrSimpleStructFree,
0, 0, 0, NdrConformantStructFree, NdrConformantStructFree,
NdrConformantVaryingStructFree,
NdrComplexStructFree, NdrComplexStructFree,
/* 0x1b */ /* 0x1b */
NdrConformantArrayFree, 0, 0, 0, 0, 0, NdrConformantArrayFree,
NdrConformantVaryingArrayFree,
NdrFixedArrayFree, NdrFixedArrayFree,
NdrVaryingArrayFree, NdrVaryingArrayFree,
NdrComplexArrayFree, NdrComplexArrayFree,
/* 0x22 */ /* 0x22 */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x2a */
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
/* 0x2a */
NdrEncapsulatedUnionFree,
NdrNonEncapsulatedUnionFree,
0,
NdrXmitOrRepAsFree, NdrXmitOrRepAsFree,
/* 0x2f */ /* 0x2f */
NdrInterfacePointerFree, NdrInterfacePointerFree,
/* 0xb0 */ /* 0xb0 */
@ -2191,3 +2220,447 @@ void WINAPI NdrConvert2( PMIDL_STUB_MESSAGE pStubMsg, PFORMAT_STRING pFormat, lo
/* FIXME: since this stub doesn't do any converting, the proper behavior /* FIXME: since this stub doesn't do any converting, the proper behavior
is to raise an exception */ is to raise an exception */
} }
/***********************************************************************
* NdrConformantStructMarshall [RPCRT4.@]
*/
unsigned char * WINAPI NdrConformantStructMarshall(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
return NULL;
}
/***********************************************************************
* NdrConformantStructUnmarshall [RPCRT4.@]
*/
unsigned char * WINAPI NdrConformantStructUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char **ppMemory,
PFORMAT_STRING pFormat,
unsigned char fMustAlloc)
{
FIXME("stub\n");
return NULL;
}
/***********************************************************************
* NdrConformantStructBufferSize [RPCRT4.@]
*/
void WINAPI NdrConformantStructBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
}
/***********************************************************************
* NdrConformantStructMemorySize [RPCRT4.@]
*/
unsigned long WINAPI NdrConformantStructMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
return 0;
}
/***********************************************************************
* NdrConformantStructFree [RPCRT4.@]
*/
void WINAPI NdrConformantStructFree(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
}
/***********************************************************************
* NdrConformantVaryingStructMarshall [RPCRT4.@]
*/
unsigned char * WINAPI NdrConformantVaryingStructMarshall(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
return NULL;
}
/***********************************************************************
* NdrConformantVaryingStructUnmarshall [RPCRT4.@]
*/
unsigned char * WINAPI NdrConformantVaryingStructUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char **ppMemory,
PFORMAT_STRING pFormat,
unsigned char fMustAlloc)
{
FIXME("stub\n");
return NULL;
}
/***********************************************************************
* NdrConformantVaryingStructBufferSize [RPCRT4.@]
*/
void WINAPI NdrConformantVaryingStructBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
}
/***********************************************************************
* NdrConformantVaryingStructMemorySize [RPCRT4.@]
*/
unsigned long WINAPI NdrConformantVaryingStructMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
return 0;
}
/***********************************************************************
* NdrConformantVaryingStructFree [RPCRT4.@]
*/
void WINAPI NdrConformantVaryingStructFree(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
}
/***********************************************************************
* NdrFixedArrayMarshall [RPCRT4.@]
*/
unsigned char * WINAPI NdrFixedArrayMarshall(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
return NULL;
}
/***********************************************************************
* NdrFixedArrayUnmarshall [RPCRT4.@]
*/
unsigned char * WINAPI NdrFixedArrayUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char **ppMemory,
PFORMAT_STRING pFormat,
unsigned char fMustAlloc)
{
FIXME("stub\n");
return NULL;
}
/***********************************************************************
* NdrFixedArrayBufferSize [RPCRT4.@]
*/
void WINAPI NdrFixedArrayBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
}
/***********************************************************************
* NdrFixedArrayMemorySize [RPCRT4.@]
*/
unsigned long WINAPI NdrFixedArrayMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
return 0;
}
/***********************************************************************
* NdrFixedArrayFree [RPCRT4.@]
*/
void WINAPI NdrFixedArrayFree(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
}
/***********************************************************************
* NdrVaryingArrayMarshall [RPCRT4.@]
*/
unsigned char * WINAPI NdrVaryingArrayMarshall(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
return NULL;
}
/***********************************************************************
* NdrVaryingArrayUnmarshall [RPCRT4.@]
*/
unsigned char * WINAPI NdrVaryingArrayUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char **ppMemory,
PFORMAT_STRING pFormat,
unsigned char fMustAlloc)
{
FIXME("stub\n");
return NULL;
}
/***********************************************************************
* NdrVaryingArrayBufferSize [RPCRT4.@]
*/
void WINAPI NdrVaryingArrayBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
}
/***********************************************************************
* NdrVaryingArrayMemorySize [RPCRT4.@]
*/
unsigned long WINAPI NdrVaryingArrayMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
return 0;
}
/***********************************************************************
* NdrVaryingArrayFree [RPCRT4.@]
*/
void WINAPI NdrVaryingArrayFree(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
}
/***********************************************************************
* NdrEncapsulatedUnionMarshall [RPCRT4.@]
*/
unsigned char * WINAPI NdrEncapsulatedUnionMarshall(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
return NULL;
}
/***********************************************************************
* NdrEncapsulatedUnionUnmarshall [RPCRT4.@]
*/
unsigned char * WINAPI NdrEncapsulatedUnionUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char **ppMemory,
PFORMAT_STRING pFormat,
unsigned char fMustAlloc)
{
FIXME("stub\n");
return NULL;
}
/***********************************************************************
* NdrEncapsulatedUnionBufferSize [RPCRT4.@]
*/
void WINAPI NdrEncapsulatedUnionBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
}
/***********************************************************************
* NdrEncapsulatedUnionMemorySize [RPCRT4.@]
*/
unsigned long WINAPI NdrEncapsulatedUnionMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
return 0;
}
/***********************************************************************
* NdrEncapsulatedUnionFree [RPCRT4.@]
*/
void WINAPI NdrEncapsulatedUnionFree(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
}
/***********************************************************************
* NdrNonEncapsulatedUnionMarshall [RPCRT4.@]
*/
unsigned char * WINAPI NdrNonEncapsulatedUnionMarshall(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
return NULL;
}
/***********************************************************************
* NdrNonEncapsulatedUnionUnmarshall [RPCRT4.@]
*/
unsigned char * WINAPI NdrNonEncapsulatedUnionUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char **ppMemory,
PFORMAT_STRING pFormat,
unsigned char fMustAlloc)
{
FIXME("stub\n");
return NULL;
}
/***********************************************************************
* NdrNonEncapsulatedUnionBufferSize [RPCRT4.@]
*/
void WINAPI NdrNonEncapsulatedUnionBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
}
/***********************************************************************
* NdrNonEncapsulatedUnionMemorySize [RPCRT4.@]
*/
unsigned long WINAPI NdrNonEncapsulatedUnionMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
return 0;
}
/***********************************************************************
* NdrNonEncapsulatedUnionFree [RPCRT4.@]
*/
void WINAPI NdrNonEncapsulatedUnionFree(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
}
/***********************************************************************
* NdrByteCountPointerMarshall [RPCRT4.@]
*/
unsigned char * WINAPI NdrByteCountPointerMarshall(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
return NULL;
}
/***********************************************************************
* NdrByteCountPointerUnmarshall [RPCRT4.@]
*/
unsigned char * WINAPI NdrByteCountPointerUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char **ppMemory,
PFORMAT_STRING pFormat,
unsigned char fMustAlloc)
{
FIXME("stub\n");
return NULL;
}
/***********************************************************************
* NdrByteCountPointerBufferSize [RPCRT4.@]
*/
void WINAPI NdrByteCountPointerBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
}
/***********************************************************************
* NdrByteCountPointerMemorySize [RPCRT4.@]
*/
unsigned long WINAPI NdrByteCountPointerMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
return 0;
}
/***********************************************************************
* NdrByteCountPointerFree [RPCRT4.@]
*/
void WINAPI NdrByteCountPointerFree(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
}
/***********************************************************************
* NdrXmitOrRepAsMarshall [RPCRT4.@]
*/
unsigned char * WINAPI NdrXmitOrRepAsMarshall(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
return NULL;
}
/***********************************************************************
* NdrXmitOrRepAsUnmarshall [RPCRT4.@]
*/
unsigned char * WINAPI NdrXmitOrRepAsUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char **ppMemory,
PFORMAT_STRING pFormat,
unsigned char fMustAlloc)
{
FIXME("stub\n");
return NULL;
}
/***********************************************************************
* NdrXmitOrRepAsBufferSize [RPCRT4.@]
*/
void WINAPI NdrXmitOrRepAsBufferSize(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
}
/***********************************************************************
* NdrXmitOrRepAsMemorySize [RPCRT4.@]
*/
unsigned long WINAPI NdrXmitOrRepAsMemorySize(PMIDL_STUB_MESSAGE pStubMsg,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
return 0;
}
/***********************************************************************
* NdrXmitOrRepAsFree [RPCRT4.@]
*/
void WINAPI NdrXmitOrRepAsFree(PMIDL_STUB_MESSAGE pStubMsg,
unsigned char *pMemory,
PFORMAT_STRING pFormat)
{
FIXME("stub\n");
}
/***********************************************************************
* NdrClientContextMarshall
*/
void WINAPI NdrClientContextMarshall(PMIDL_STUB_MESSAGE pStubMsg,
NDR_CCONTEXT ContextHandle,
int fCheck)
{
FIXME("(%p, %p, %d): stub\n", pStubMsg, ContextHandle, fCheck);
}
/***********************************************************************
* NdrClientContextUnmarshall
*/
void WINAPI NdrClientContextUnmarshall(PMIDL_STUB_MESSAGE pStubMsg,
NDR_CCONTEXT * pContextHandle,
RPC_BINDING_HANDLE BindHandle)
{
FIXME("(%p, %p, %p): stub\n", pStubMsg, pContextHandle, BindHandle);
}

View file

@ -223,7 +223,7 @@ static LPSTREAM RpcStream_Create(PMIDL_STUB_MESSAGE pStubMsg, BOOL init)
return (LPSTREAM)This; return (LPSTREAM)This;
} }
const IID* get_ip_iid(PMIDL_STUB_MESSAGE pStubMsg, unsigned char *pMemory, PFORMAT_STRING pFormat) static const IID* get_ip_iid(PMIDL_STUB_MESSAGE pStubMsg, unsigned char *pMemory, PFORMAT_STRING pFormat)
{ {
const IID *riid; const IID *riid;
if (!pFormat) return &IID_IUnknown; if (!pFormat) return &IID_IUnknown;

View file

@ -312,7 +312,7 @@ RPC_STATUS RPCRT4_SpawnConnection(RpcConnection** Connection, RpcConnection* Old
return err; return err;
} }
RPC_STATUS RPCRT4_AllocBinding(RpcBinding** Binding, BOOL server) static RPC_STATUS RPCRT4_AllocBinding(RpcBinding** Binding, BOOL server)
{ {
RpcBinding* NewBinding; RpcBinding* NewBinding;

View file

@ -41,7 +41,7 @@ typedef struct _RpcConnection
/* don't know what MS's structure looks like */ /* don't know what MS's structure looks like */
typedef struct _RpcBinding typedef struct _RpcBinding
{ {
DWORD refs; LONG refs;
struct _RpcBinding* Next; struct _RpcBinding* Next;
BOOL server; BOOL server;
UUID ObjectUuid; UUID ObjectUuid;

View file

@ -41,10 +41,11 @@
#include "rpc_binding.h" #include "rpc_binding.h"
#include "rpc_misc.h" #include "rpc_misc.h"
#include "rpc_defs.h" #include "rpc_defs.h"
#include "rpc_message.h"
WINE_DEFAULT_DEBUG_CHANNEL(rpc); WINE_DEFAULT_DEBUG_CHANNEL(rpc);
DWORD RPCRT4_GetHeaderSize(RpcPktHdr *Header) static DWORD RPCRT4_GetHeaderSize(RpcPktHdr *Header)
{ {
static const DWORD header_sizes[] = { static const DWORD header_sizes[] = {
sizeof(Header->request), 0, sizeof(Header->response), sizeof(Header->request), 0, sizeof(Header->response),
@ -67,7 +68,7 @@ DWORD RPCRT4_GetHeaderSize(RpcPktHdr *Header)
return ret; return ret;
} }
VOID RPCRT4_BuildCommonHeader(RpcPktHdr *Header, unsigned char PacketType, static VOID RPCRT4_BuildCommonHeader(RpcPktHdr *Header, unsigned char PacketType,
unsigned long DataRepresentation) unsigned long DataRepresentation)
{ {
Header->common.rpc_ver = RPC_VER_MAJOR; Header->common.rpc_ver = RPC_VER_MAJOR;
@ -83,7 +84,7 @@ VOID RPCRT4_BuildCommonHeader(RpcPktHdr *Header, unsigned char PacketType,
/* Flags and fragment length are computed in RPCRT4_Send. */ /* Flags and fragment length are computed in RPCRT4_Send. */
} }
RpcPktHdr *RPCRT4_BuildRequestHeader(unsigned long DataRepresentation, static RpcPktHdr *RPCRT4_BuildRequestHeader(unsigned long DataRepresentation,
unsigned long BufferLength, unsigned long BufferLength,
unsigned short ProcNum, unsigned short ProcNum,
UUID *ObjectUuid) UUID *ObjectUuid)
@ -113,7 +114,7 @@ RpcPktHdr *RPCRT4_BuildRequestHeader(unsigned long DataRepresentation,
return header; return header;
} }
RpcPktHdr *RPCRT4_BuildResponseHeader(unsigned long DataRepresentation, static RpcPktHdr *RPCRT4_BuildResponseHeader(unsigned long DataRepresentation,
unsigned long BufferLength) unsigned long BufferLength)
{ {
RpcPktHdr *header; RpcPktHdr *header;

View file

@ -24,9 +24,6 @@
#include "wine/rpcss_shared.h" #include "wine/rpcss_shared.h"
#include "rpc_defs.h" #include "rpc_defs.h"
VOID RPCRT4_BuildCommonHeader(RpcPktHdr *Header, unsigned char PacketType, unsigned long DataRepresentation);
RpcPktHdr *RPCRT4_BuildRequestHeader(unsigned long DataRepresentation, unsigned long BufferLength, unsigned short ProcNum, UUID *ObjectUuid);
RpcPktHdr *RPCRT4_BuildResponseHeader(unsigned long DataRepresentation, unsigned long BufferLength);
RpcPktHdr *RPCRT4_BuildFaultHeader(unsigned long DataRepresentation, RPC_STATUS Status); RpcPktHdr *RPCRT4_BuildFaultHeader(unsigned long DataRepresentation, RPC_STATUS Status);
RpcPktHdr *RPCRT4_BuildBindHeader(unsigned long DataRepresentation, unsigned short MaxTransmissionSize, unsigned short MaxReceiveSize, RPC_SYNTAX_IDENTIFIER *AbstractId, RPC_SYNTAX_IDENTIFIER *TransferId); RpcPktHdr *RPCRT4_BuildBindHeader(unsigned long DataRepresentation, unsigned short MaxTransmissionSize, unsigned short MaxReceiveSize, RPC_SYNTAX_IDENTIFIER *AbstractId, RPC_SYNTAX_IDENTIFIER *TransferId);
RpcPktHdr *RPCRT4_BuildBindNackHeader(unsigned long DataRepresentation, unsigned char RpcVersion, unsigned char RpcVersionMinor); RpcPktHdr *RPCRT4_BuildBindNackHeader(unsigned long DataRepresentation, unsigned char RpcVersion, unsigned char RpcVersionMinor);

View file

@ -117,7 +117,7 @@ static RpcPacket* spacket_head;
static RpcPacket* spacket_tail; static RpcPacket* spacket_tail;
static HANDLE server_sem; static HANDLE server_sem;
static DWORD worker_count, worker_free, worker_tls; static LONG worker_count, worker_free, worker_tls;
static UUID uuid_nil; static UUID uuid_nil;

View file

@ -150,17 +150,17 @@
@ stdcall NdrAllocate(ptr long) @ stdcall NdrAllocate(ptr long)
@ stub NdrAsyncClientCall @ stub NdrAsyncClientCall
@ stub NdrAsyncServerCall @ stub NdrAsyncServerCall
@ stub NdrByteCountPointerBufferSize @ stdcall NdrByteCountPointerBufferSize(ptr ptr ptr)
@ stub NdrByteCountPointerFree @ stdcall NdrByteCountPointerFree(ptr ptr ptr)
@ stub NdrByteCountPointerMarshall @ stdcall NdrByteCountPointerMarshall(ptr ptr ptr)
@ stub NdrByteCountPointerUnmarshall @ stdcall NdrByteCountPointerUnmarshall(ptr ptr ptr long)
@ stub NdrCStdStubBuffer2_Release @ stub NdrCStdStubBuffer2_Release
@ stdcall NdrCStdStubBuffer_Release(ptr ptr) @ stdcall NdrCStdStubBuffer_Release(ptr ptr)
@ stdcall NdrClearOutParameters(ptr ptr ptr) @ stdcall NdrClearOutParameters(ptr ptr ptr)
@ varargs NdrClientCall2(ptr ptr) @ varargs NdrClientCall2(ptr ptr)
@ stub NdrClientCall @ stub NdrClientCall
@ stub NdrClientContextMarshall @ stdcall NdrClientContextMarshall(ptr ptr long)
@ stub NdrClientContextUnmarshall @ stdcall NdrClientContextUnmarshall(ptr ptr ptr)
@ stub NdrClientInitialize @ stub NdrClientInitialize
@ stdcall NdrClientInitializeNew(ptr ptr ptr long) @ stdcall NdrClientInitializeNew(ptr ptr ptr long)
@ stdcall NdrComplexArrayBufferSize(ptr ptr ptr) @ stdcall NdrComplexArrayBufferSize(ptr ptr ptr)
@ -182,21 +182,21 @@
@ stdcall NdrConformantStringMarshall(ptr ptr ptr) @ stdcall NdrConformantStringMarshall(ptr ptr ptr)
@ stdcall NdrConformantStringMemorySize(ptr ptr) @ stdcall NdrConformantStringMemorySize(ptr ptr)
@ stdcall NdrConformantStringUnmarshall(ptr ptr ptr long) @ stdcall NdrConformantStringUnmarshall(ptr ptr ptr long)
@ stub NdrConformantStructBufferSize @ stdcall NdrConformantStructBufferSize(ptr ptr ptr)
@ stub NdrConformantStructFree @ stdcall NdrConformantStructFree(ptr ptr ptr)
@ stub NdrConformantStructMarshall @ stdcall NdrConformantStructMarshall(ptr ptr ptr)
@ stub NdrConformantStructMemorySize @ stdcall NdrConformantStructMemorySize(ptr ptr)
@ stub NdrConformantStructUnmarshall @ stdcall NdrConformantStructUnmarshall(ptr ptr ptr long)
@ stdcall NdrConformantVaryingArrayBufferSize(ptr ptr ptr) @ stdcall NdrConformantVaryingArrayBufferSize(ptr ptr ptr)
@ stdcall NdrConformantVaryingArrayFree(ptr ptr ptr) @ stdcall NdrConformantVaryingArrayFree(ptr ptr ptr)
@ stdcall NdrConformantVaryingArrayMarshall(ptr ptr ptr) @ stdcall NdrConformantVaryingArrayMarshall(ptr ptr ptr)
@ stdcall NdrConformantVaryingArrayMemorySize(ptr ptr) @ stdcall NdrConformantVaryingArrayMemorySize(ptr ptr)
@ stdcall NdrConformantVaryingArrayUnmarshall(ptr ptr ptr long) @ stdcall NdrConformantVaryingArrayUnmarshall(ptr ptr ptr long)
@ stub NdrConformantVaryingStructBufferSize @ stdcall NdrConformantVaryingStructBufferSize(ptr ptr ptr)
@ stub NdrConformantVaryingStructFree @ stdcall NdrConformantVaryingStructFree(ptr ptr ptr)
@ stub NdrConformantVaryingStructMarshall @ stdcall NdrConformantVaryingStructMarshall(ptr ptr ptr)
@ stub NdrConformantVaryingStructMemorySize @ stdcall NdrConformantVaryingStructMemorySize(ptr ptr)
@ stub NdrConformantVaryingStructUnmarshall @ stdcall NdrConformantVaryingStructUnmarshall(ptr ptr ptr long)
@ stub NdrContextHandleInitialize @ stub NdrContextHandleInitialize
@ stub NdrContextHandleSize @ stub NdrContextHandleSize
@ stdcall NdrConvert2(ptr ptr long) @ stdcall NdrConvert2(ptr ptr long)
@ -210,16 +210,16 @@
@ stdcall NdrDllGetClassObject(ptr ptr ptr ptr ptr ptr) @ stdcall NdrDllGetClassObject(ptr ptr ptr ptr ptr ptr)
@ stdcall NdrDllRegisterProxy(long ptr ptr) @ stdcall NdrDllRegisterProxy(long ptr ptr)
@ stdcall NdrDllUnregisterProxy(long ptr ptr) @ stdcall NdrDllUnregisterProxy(long ptr ptr)
@ stub NdrEncapsulatedUnionBufferSize @ stdcall NdrEncapsulatedUnionBufferSize(ptr ptr ptr)
@ stub NdrEncapsulatedUnionFree @ stdcall NdrEncapsulatedUnionFree(ptr ptr ptr)
@ stub NdrEncapsulatedUnionMarshall @ stdcall NdrEncapsulatedUnionMarshall(ptr ptr ptr)
@ stub NdrEncapsulatedUnionMemorySize @ stdcall NdrEncapsulatedUnionMemorySize(ptr ptr)
@ stub NdrEncapsulatedUnionUnmarshall @ stdcall NdrEncapsulatedUnionUnmarshall(ptr ptr ptr long)
@ stub NdrFixedArrayBufferSize @ stdcall NdrFixedArrayBufferSize(ptr ptr ptr)
@ stub NdrFixedArrayFree @ stdcall NdrFixedArrayFree(ptr ptr ptr)
@ stub NdrFixedArrayMarshall @ stdcall NdrFixedArrayMarshall(ptr ptr ptr)
@ stub NdrFixedArrayMemorySize @ stdcall NdrFixedArrayMemorySize(ptr ptr)
@ stub NdrFixedArrayUnmarshall @ stdcall NdrFixedArrayUnmarshall(ptr ptr ptr long)
@ stdcall NdrFreeBuffer(ptr) @ stdcall NdrFreeBuffer(ptr)
@ stub NdrFullPointerFree @ stub NdrFullPointerFree
@ stub NdrFullPointerInsertRefId @ stub NdrFullPointerInsertRefId
@ -236,11 +236,11 @@
@ stub NdrGetSimpleTypeMemorySize # wxp @ stub NdrGetSimpleTypeMemorySize # wxp
@ stub NdrGetTypeFlags # wxp @ stub NdrGetTypeFlags # wxp
@ stub NdrGetUserMarshallInfo @ stub NdrGetUserMarshallInfo
@ stub NdrHardStructBufferSize @ stub NdrHardStructBufferSize #(ptr ptr ptr)
@ stub NdrHardStructFree @ stub NdrHardStructFree #(ptr ptr ptr)
@ stub NdrHardStructMarshall @ stub NdrHardStructMarshall #(ptr ptr ptr)
@ stub NdrHardStructMemorySize @ stub NdrHardStructMemorySize #(ptr ptr)
@ stub NdrHardStructUnmarshall @ stub NdrHardStructUnmarshall #(ptr ptr ptr long)
@ stdcall NdrInterfacePointerBufferSize(ptr ptr ptr) @ stdcall NdrInterfacePointerBufferSize(ptr ptr ptr)
@ stdcall NdrInterfacePointerFree(ptr ptr ptr) @ stdcall NdrInterfacePointerFree(ptr ptr ptr)
@ stdcall NdrInterfacePointerMarshall(ptr ptr ptr) @ stdcall NdrInterfacePointerMarshall(ptr ptr ptr)
@ -261,15 +261,15 @@
@ stub NdrMesTypeEncode2 @ stub NdrMesTypeEncode2
@ stub NdrMesTypeEncode @ stub NdrMesTypeEncode
@ stub NdrMesTypeFree2 @ stub NdrMesTypeFree2
@ stub NdrNonConformantStringBufferSize @ stub NdrNonConformantStringBufferSize #(ptr ptr ptr)
@ stub NdrNonConformantStringMarshall @ stub NdrNonConformantStringMarshall #(ptr ptr ptr)
@ stub NdrNonConformantStringMemorySize @ stub NdrNonConformantStringMemorySize #(ptr ptr)
@ stub NdrNonConformantStringUnmarshall @ stub NdrNonConformantStringUnmarshall #(ptr ptr ptr long)
@ stub NdrNonEncapsulatedUnionBufferSize @ stdcall NdrNonEncapsulatedUnionBufferSize(ptr ptr ptr)
@ stub NdrNonEncapsulatedUnionFree @ stdcall NdrNonEncapsulatedUnionFree(ptr ptr ptr)
@ stub NdrNonEncapsulatedUnionMarshall @ stdcall NdrNonEncapsulatedUnionMarshall(ptr ptr ptr)
@ stub NdrNonEncapsulatedUnionMemorySize @ stdcall NdrNonEncapsulatedUnionMemorySize(ptr ptr)
@ stub NdrNonEncapsulatedUnionUnmarshall @ stdcall NdrNonEncapsulatedUnionUnmarshall(ptr ptr ptr long)
@ stub NdrNsGetBuffer @ stub NdrNsGetBuffer
@ stub NdrNsSendReceive @ stub NdrNsSendReceive
@ stdcall NdrOleAllocate(long) @ stdcall NdrOleAllocate(long)
@ -341,16 +341,16 @@
@ stdcall NdrUserMarshalMemorySize(ptr ptr) @ stdcall NdrUserMarshalMemorySize(ptr ptr)
@ stub NdrUserMarshalSimpleTypeConvert @ stub NdrUserMarshalSimpleTypeConvert
@ stdcall NdrUserMarshalUnmarshall(ptr ptr ptr long) @ stdcall NdrUserMarshalUnmarshall(ptr ptr ptr long)
@ stub NdrVaryingArrayBufferSize @ stdcall NdrVaryingArrayBufferSize(ptr ptr ptr)
@ stub NdrVaryingArrayFree @ stdcall NdrVaryingArrayFree(ptr ptr ptr)
@ stub NdrVaryingArrayMarshall @ stdcall NdrVaryingArrayMarshall(ptr ptr ptr)
@ stub NdrVaryingArrayMemorySize @ stdcall NdrVaryingArrayMemorySize(ptr ptr)
@ stub NdrVaryingArrayUnmarshall @ stdcall NdrVaryingArrayUnmarshall(ptr ptr ptr long)
@ stub NdrXmitOrRepAsBufferSize @ stdcall NdrXmitOrRepAsBufferSize(ptr ptr ptr)
@ stub NdrXmitOrRepAsFree @ stdcall NdrXmitOrRepAsFree(ptr ptr ptr)
@ stub NdrXmitOrRepAsMarshall @ stdcall NdrXmitOrRepAsMarshall(ptr ptr ptr)
@ stub NdrXmitOrRepAsMemorySize @ stdcall NdrXmitOrRepAsMemorySize(ptr ptr)
@ stub NdrXmitOrRepAsUnmarshall @ stdcall NdrXmitOrRepAsUnmarshall(ptr ptr ptr long)
@ stub NdrpCreateProxy # wxp @ stub NdrpCreateProxy # wxp
@ stub NdrpCreateStub # wxp @ stub NdrpCreateStub # wxp
@ stub NdrpGetProcFormatString # wxp @ stub NdrpGetProcFormatString # wxp

View file

@ -57,7 +57,7 @@
* *
* - ORPC is RPC for OLE; once we have a working RPC framework, we can * - ORPC is RPC for OLE; once we have a working RPC framework, we can
* use it to implement out-of-process OLE client/server communications. * use it to implement out-of-process OLE client/server communications.
* ATM there is maybe a disconnect between the marshalling in the OLE DLL's * ATM there is maybe a disconnect between the marshalling in the OLE DLLs
* and the marshalling going on here [TODO: well, is there or not?] * and the marshalling going on here [TODO: well, is there or not?]
* *
* - In-source API Documentation, at least for those functions which we have * - In-source API Documentation, at least for those functions which we have