Kaydet (Commit) d448b59e authored tarafından Michael Meeks's avatar Michael Meeks

fix build against new npapi.h (some more)

üst 3f402761
...@@ -666,20 +666,20 @@ NPP_NewStream(NPP instance, ...@@ -666,20 +666,20 @@ NPP_NewStream(NPP instance,
} }
int32 STREAMBUFSIZE = 0X0FFFFFFF; int32_t STREAMBUFSIZE = 0X0FFFFFFF;
/* If we are reading from a file in NPAsFile /* If we are reading from a file in NPAsFile
* mode so we can take any size stream in our * mode so we can take any size stream in our
* write call (since we ignore it) */ * write call (since we ignore it) */
int32 int32_t
NPP_WriteReady(NPP /*instance*/, NPStream* /*stream*/) NPP_WriteReady(NPP /*instance*/, NPStream* /*stream*/)
{ {
return STREAMBUFSIZE; return STREAMBUFSIZE;
} }
int32 int32_t
NPP_Write(NPP /*instance*/, NPStream* /*stream*/, int32 /*offset*/, int32 len, void* /*buffer*/) NPP_Write(NPP /*instance*/, NPStream* /*stream*/, int32_t /*offset*/, int32_t len, void* /*buffer*/)
{ {
return len; /* The number of bytes accepted */ return len; /* The number of bytes accepted */
} }
......
...@@ -213,7 +213,7 @@ IMPL_LINK( AsynchronousGetURL, getURL, XPlugin_Impl*, pImpl ) ...@@ -213,7 +213,7 @@ IMPL_LINK( AsynchronousGetURL, getURL, XPlugin_Impl*, pImpl )
extern "C" { extern "C" {
void* SAL_CALL NP_LOADDS NPN_MemAlloc( uint32 nBytes ) void* SAL_CALL NP_LOADDS NPN_MemAlloc( uint32_t nBytes )
{ {
TRACE( "NPN_MemAlloc" ); TRACE( "NPN_MemAlloc" );
void* pMem = malloc( nBytes ); void* pMem = malloc( nBytes );
...@@ -226,7 +226,7 @@ extern "C" { ...@@ -226,7 +226,7 @@ extern "C" {
free( pMem ); free( pMem );
} }
uint32 SAL_CALL NP_LOADDS NPN_MemFlush( uint32 /*nSize*/ ) uint32_t SAL_CALL NP_LOADDS NPN_MemFlush( uint32_t /*nSize*/ )
{ {
TRACE( "NPN_MemFlush" ); TRACE( "NPN_MemFlush" );
return 0; return 0;
...@@ -334,7 +334,7 @@ extern "C" { ...@@ -334,7 +334,7 @@ extern "C" {
return NPERR_NO_ERROR; return NPERR_NO_ERROR;
} }
NPError SAL_CALL NP_LOADDS NPN_PostURLNotify( NPP instance, const char* url, const char* target, uint32 len, const char* buf, NPBool file, void* notifyData ) NPError SAL_CALL NP_LOADDS NPN_PostURLNotify( NPP instance, const char* url, const char* target, uint32_t len, const char* buf, NPBool file, void* notifyData )
{ {
TRACE( "NPN_PostURLNotify" ); TRACE( "NPN_PostURLNotify" );
XPlugin_Impl* pImpl = XPluginManager_Impl::getXPluginFromNPP( instance ); XPlugin_Impl* pImpl = XPluginManager_Impl::getXPluginFromNPP( instance );
...@@ -376,7 +376,7 @@ extern "C" { ...@@ -376,7 +376,7 @@ extern "C" {
return NPERR_NO_ERROR; return NPERR_NO_ERROR;
} }
NPError SAL_CALL NP_LOADDS NPN_PostURL( NPP instance, const char* url, const char* window, uint32 len, const char* buf, NPBool file ) NPError SAL_CALL NP_LOADDS NPN_PostURL( NPP instance, const char* url, const char* window, uint32_t len, const char* buf, NPBool file )
{ {
TRACE( "NPN_PostURL" ); TRACE( "NPN_PostURL" );
XPlugin_Impl* pImpl = XPluginManager_Impl::getXPluginFromNPP( instance ); XPlugin_Impl* pImpl = XPluginManager_Impl::getXPluginFromNPP( instance );
...@@ -526,7 +526,7 @@ void SAL_CALL NP_LOADDS NPN_Version( int* major, int* minor, int* net_major, in ...@@ -526,7 +526,7 @@ void SAL_CALL NP_LOADDS NPN_Version( int* major, int* minor, int* net_major, in
*net_minor = 5; *net_minor = 5;
} }
int32 SAL_CALL NP_LOADDS NPN_Write( NPP instance, NPStream* stream, int32 len, int32_t SAL_CALL NP_LOADDS NPN_Write( NPP instance, NPStream* stream, int32_t len,
void* buffer ) void* buffer )
{ {
TRACE( "NPN_Write" ); TRACE( "NPN_Write" );
......
...@@ -56,7 +56,7 @@ void* CreateNewShell( void**, XLIB_Window ); ...@@ -56,7 +56,7 @@ void* CreateNewShell( void**, XLIB_Window );
// begin Netscape plugin api calls // begin Netscape plugin api calls
extern "C" { extern "C" {
static void* l_NPN_MemAlloc( uint32 nBytes ) static void* l_NPN_MemAlloc( uint32_t nBytes )
{ {
void* pMem = new char[nBytes]; void* pMem = new char[nBytes];
return pMem; return pMem;
...@@ -67,7 +67,7 @@ static void l_NPN_MemFree( void* pMem ) ...@@ -67,7 +67,7 @@ static void l_NPN_MemFree( void* pMem )
delete [] (char*)pMem; delete [] (char*)pMem;
} }
static uint32 l_NPN_MemFlush( uint32 /*nSize*/ ) static uint32_t l_NPN_MemFlush( uint32_t /*nSize*/ )
{ {
return 0; return 0;
} }
...@@ -209,7 +209,7 @@ static NPError l_NPN_NewStream( NPP instance, NPMIMEType type, const char* targe ...@@ -209,7 +209,7 @@ static NPError l_NPN_NewStream( NPP instance, NPMIMEType type, const char* targe
return aRet; return aRet;
} }
static NPError l_NPN_PostURLNotify( NPP instance, const char* url, const char* target, uint32 len, const char* buf, NPBool file, void* notifyData ) static NPError l_NPN_PostURLNotify( NPP instance, const char* url, const char* target, uint32_t len, const char* buf, NPBool file, void* notifyData )
{ {
sal_uInt32 nInstance = pConnector->GetNPPID( instance ); sal_uInt32 nInstance = pConnector->GetNPPID( instance );
if( nInstance == PluginConnector::UnknownNPPID ) if( nInstance == PluginConnector::UnknownNPPID )
...@@ -234,7 +234,7 @@ static NPError l_NPN_PostURLNotify( NPP instance, const char* url, const char* t ...@@ -234,7 +234,7 @@ static NPError l_NPN_PostURLNotify( NPP instance, const char* url, const char* t
return aRet; return aRet;
} }
static NPError l_NPN_PostURL( NPP instance, const char* url, const char* window, uint32 len, const char* buf, NPBool file ) static NPError l_NPN_PostURL( NPP instance, const char* url, const char* window, uint32_t len, const char* buf, NPBool file )
{ {
sal_uInt32 nInstance = pConnector->GetNPPID( instance ); sal_uInt32 nInstance = pConnector->GetNPPID( instance );
if( nInstance == PluginConnector::UnknownNPPID ) if( nInstance == PluginConnector::UnknownNPPID )
...@@ -340,7 +340,7 @@ static const char* l_NPN_UserAgent( NPP instance ) ...@@ -340,7 +340,7 @@ static const char* l_NPN_UserAgent( NPP instance )
return pAgent; return pAgent;
} }
static int32 l_NPN_Write( NPP instance, NPStream* stream, int32 len, void* buffer ) static int32_t l_NPN_Write( NPP instance, NPStream* stream, int32_t len, void* buffer )
{ {
sal_uInt32 nFileID = pConnector->GetStreamID( stream ); sal_uInt32 nFileID = pConnector->GetStreamID( stream );
if( nFileID == PluginConnector::UnknownStreamID ) if( nFileID == PluginConnector::UnknownStreamID )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment