Fix some missing-declarations warnings.

This commit is contained in:
Stefan Huehner 2005-07-24 17:11:59 +00:00 committed by Alexandre Julliard
parent cc8762a91e
commit 4f82e547d7
4 changed files with 15 additions and 17 deletions

View File

@ -6404,7 +6404,7 @@ static DWORD GetCreationModeFromSTGM(DWORD stgm)
* *
* Memory allocated for pData must be freed by the caller * Memory allocated for pData must be freed by the caller
*/ */
HRESULT OLECONVERT_LoadOLE10(LPOLESTREAM pOleStream, OLECONVERT_OLESTREAM_DATA *pData, BOOL bStrem1) static HRESULT OLECONVERT_LoadOLE10(LPOLESTREAM pOleStream, OLECONVERT_OLESTREAM_DATA *pData, BOOL bStrem1)
{ {
DWORD dwSize; DWORD dwSize;
HRESULT hRes = S_OK; HRESULT hRes = S_OK;
@ -6572,7 +6572,7 @@ HRESULT OLECONVERT_LoadOLE10(LPOLESTREAM pOleStream, OLECONVERT_OLESTREAM_DATA *
* This function is used by OleConvertIStorageToOLESTREAM only. * This function is used by OleConvertIStorageToOLESTREAM only.
* *
*/ */
HRESULT OLECONVERT_SaveOLE10(OLECONVERT_OLESTREAM_DATA *pData, LPOLESTREAM pOleStream) static HRESULT OLECONVERT_SaveOLE10(OLECONVERT_OLESTREAM_DATA *pData, LPOLESTREAM pOleStream)
{ {
DWORD dwSize; DWORD dwSize;
HRESULT hRes = S_OK; HRESULT hRes = S_OK;
@ -6683,7 +6683,7 @@ HRESULT OLECONVERT_SaveOLE10(OLECONVERT_OLESTREAM_DATA *pData, LPOLESTREAM pOleS
* *
* *
*/ */
void OLECONVERT_GetOLE20FromOLE10(LPSTORAGE pDestStorage, BYTE *pBuffer, DWORD nBufferLength) static void OLECONVERT_GetOLE20FromOLE10(LPSTORAGE pDestStorage, BYTE *pBuffer, DWORD nBufferLength)
{ {
HRESULT hRes; HRESULT hRes;
HANDLE hFile; HANDLE hFile;
@ -6733,7 +6733,7 @@ void OLECONVERT_GetOLE20FromOLE10(LPSTORAGE pDestStorage, BYTE *pBuffer, DWORD n
* Used by OleConvertIStorageToOLESTREAM only. * Used by OleConvertIStorageToOLESTREAM only.
* *
*/ */
DWORD OLECONVERT_WriteOLE20ToBuffer(LPSTORAGE pStorage, BYTE **pData) static DWORD OLECONVERT_WriteOLE20ToBuffer(LPSTORAGE pStorage, BYTE **pData)
{ {
HANDLE hFile; HANDLE hFile;
HRESULT hRes; HRESULT hRes;
@ -7149,7 +7149,7 @@ HRESULT OLECONVERT_CreateCompObjStream(LPSTORAGE pStorage, LPCSTR strOleTypeName
* This function is used by OleConvertOLESTREAMToIStorage only. * This function is used by OleConvertOLESTREAMToIStorage only.
* *
*/ */
void OLECONVERT_CreateOlePresStream(LPSTORAGE pStorage, DWORD dwExtentX, DWORD dwExtentY , BYTE *pData, DWORD dwDataLength) static void OLECONVERT_CreateOlePresStream(LPSTORAGE pStorage, DWORD dwExtentX, DWORD dwExtentY , BYTE *pData, DWORD dwDataLength)
{ {
HRESULT hRes; HRESULT hRes;
IStream *pStream; IStream *pStream;
@ -7233,7 +7233,7 @@ void OLECONVERT_CreateOlePresStream(LPSTORAGE pStorage, DWORD dwExtentX, DWORD d
* Might need to verify the data and return appropriate error message * Might need to verify the data and return appropriate error message
* *
*/ */
void OLECONVERT_CreateOle10NativeStream(LPSTORAGE pStorage, BYTE *pData, DWORD dwDataLength) static void OLECONVERT_CreateOle10NativeStream(LPSTORAGE pStorage, BYTE *pData, DWORD dwDataLength)
{ {
HRESULT hRes; HRESULT hRes;
IStream *pStream; IStream *pStream;
@ -7272,7 +7272,7 @@ void OLECONVERT_CreateOle10NativeStream(LPSTORAGE pStorage, BYTE *pData, DWORD d
* *
* *
*/ */
HRESULT OLECONVERT_GetOLE10ProgID(LPSTORAGE pStorage, char *strProgID, DWORD *dwSize) static HRESULT OLECONVERT_GetOLE10ProgID(LPSTORAGE pStorage, char *strProgID, DWORD *dwSize)
{ {
HRESULT hRes; HRESULT hRes;
IStream *pStream; IStream *pStream;
@ -7342,7 +7342,7 @@ HRESULT OLECONVERT_GetOLE10ProgID(LPSTORAGE pStorage, char *strProgID, DWORD *dw
* *
* *
*/ */
void OLECONVERT_GetOle10PresData(LPSTORAGE pStorage, OLECONVERT_OLESTREAM_DATA *pOleStreamData) static void OLECONVERT_GetOle10PresData(LPSTORAGE pStorage, OLECONVERT_OLESTREAM_DATA *pOleStreamData)
{ {
HRESULT hRes; HRESULT hRes;
@ -7395,7 +7395,7 @@ void OLECONVERT_GetOle10PresData(LPSTORAGE pStorage, OLECONVERT_OLESTREAM_DATA *
* *
* Memory allocated for pData must be freed by the caller * Memory allocated for pData must be freed by the caller
*/ */
void OLECONVERT_GetOle20PresData(LPSTORAGE pStorage, OLECONVERT_OLESTREAM_DATA *pOleStreamData) static void OLECONVERT_GetOle20PresData(LPSTORAGE pStorage, OLECONVERT_OLESTREAM_DATA *pOleStreamData)
{ {
HRESULT hRes; HRESULT hRes;
IStream *pStream; IStream *pStream;

View File

@ -303,7 +303,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,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);