зеркало из https://github.com/mozilla/pjs.git
fix npapi types bustage, b=453883
This commit is contained in:
Родитель
4f3b1179d7
Коммит
b71ad2aca7
|
@ -554,7 +554,7 @@ void CPlugin::URLNotify(const char * szURL)
|
|||
NPN_DestroyStream(m_pNPInstance, pStream, NPRES_DONE);
|
||||
}
|
||||
|
||||
NPError CPlugin::newStream(NPMIMEType type, NPStream *stream, NPBool seekable, uint16 *stype)
|
||||
NPError CPlugin::newStream(NPMIMEType type, NPStream *stream, NPBool seekable, uint16_t *stype)
|
||||
{
|
||||
if (!m_bWaitingStreamFromPFS)
|
||||
return NPERR_NO_ERROR;
|
||||
|
|
|
@ -96,7 +96,7 @@ public:
|
|||
// NP API handlers
|
||||
void print(NPPrint * pNPPrint);
|
||||
void URLNotify(const char * szURL);
|
||||
NPError newStream(NPMIMEType type, NPStream *stream, NPBool seekable, uint16 *stype);
|
||||
NPError newStream(NPMIMEType type, NPStream *stream, NPBool seekable, uint16_t *stype);
|
||||
NPError destroyStream(NPStream *stream, NPError reason);
|
||||
|
||||
// Windows message handlers
|
||||
|
|
|
@ -130,14 +130,14 @@ NPN_GetURLNotify(NPP instance, const char* url, const char* window, void* notify
|
|||
|
||||
NPError
|
||||
NPN_PostURL(NPP instance, const char* url, const char* window,
|
||||
uint32 len, const char* buf, NPBool file)
|
||||
uint32_t len, const char* buf, NPBool file)
|
||||
{
|
||||
return CallNPN_PostURLProc(gNetscapeFuncs.posturl, instance,
|
||||
url, window, len, buf, file);
|
||||
}
|
||||
|
||||
NPError
|
||||
NPN_PostURLNotify(NPP instance, const char* url, const char* window, uint32 len,
|
||||
NPN_PostURLNotify(NPP instance, const char* url, const char* window, uint32_t len,
|
||||
const char* buf, NPBool file, void* notifyData)
|
||||
{
|
||||
return CallNPN_PostURLNotifyProc(gNetscapeFuncs.posturlnotify,
|
||||
|
@ -159,8 +159,8 @@ NPN_NewStream(NPP instance, NPMIMEType type, const char *window,
|
|||
type, window, stream_ptr);
|
||||
}
|
||||
|
||||
int32
|
||||
NPN_Write(NPP instance, NPStream* stream, int32 len, void* buffer)
|
||||
int32_t
|
||||
NPN_Write(NPP instance, NPStream* stream, int32_t len, void* buffer)
|
||||
{
|
||||
return CallNPN_WriteProc(gNetscapeFuncs.write, instance,
|
||||
stream, len, buffer);
|
||||
|
@ -186,7 +186,7 @@ NPN_UserAgent(NPP instance)
|
|||
}
|
||||
|
||||
void*
|
||||
NPN_MemAlloc(uint32 size)
|
||||
NPN_MemAlloc(uint32_t size)
|
||||
{
|
||||
return CallNPN_MemAllocProc(gNetscapeFuncs.memalloc, size);
|
||||
}
|
||||
|
@ -196,7 +196,7 @@ void NPN_MemFree(void* ptr)
|
|||
CallNPN_MemFreeProc(gNetscapeFuncs.memfree, ptr);
|
||||
}
|
||||
|
||||
uint32 NPN_MemFlush(uint32 size)
|
||||
uint32_t NPN_MemFlush(uint32_t size)
|
||||
{
|
||||
return CallNPN_MemFlushProc(gNetscapeFuncs.memflush, size);
|
||||
}
|
||||
|
@ -252,8 +252,8 @@ void NPN_PopPopupsEnabledState(NPP instance)
|
|||
***********************************************************************/
|
||||
|
||||
NPError
|
||||
Private_New(NPMIMEType pluginType, NPP instance, uint16 mode,
|
||||
int16 argc, char* argn[], char* argv[], NPSavedData* saved)
|
||||
Private_New(NPMIMEType pluginType, NPP instance, uint16_t mode,
|
||||
int16_t argc, char* argn[], char* argv[], NPSavedData* saved)
|
||||
{
|
||||
NPError ret;
|
||||
PLUGINDEBUGSTR("New");
|
||||
|
@ -279,7 +279,7 @@ Private_SetWindow(NPP instance, NPWindow* window)
|
|||
|
||||
NPError
|
||||
Private_NewStream(NPP instance, NPMIMEType type, NPStream* stream,
|
||||
NPBool seekable, uint16* stype)
|
||||
NPBool seekable, uint16_t* stype)
|
||||
{
|
||||
NPError err;
|
||||
PLUGINDEBUGSTR("NewStream");
|
||||
|
@ -287,7 +287,7 @@ Private_NewStream(NPP instance, NPMIMEType type, NPStream* stream,
|
|||
return err;
|
||||
}
|
||||
|
||||
int32
|
||||
int32_t
|
||||
Private_WriteReady(NPP instance, NPStream* stream)
|
||||
{
|
||||
unsigned int result;
|
||||
|
@ -296,8 +296,8 @@ Private_WriteReady(NPP instance, NPStream* stream)
|
|||
return result;
|
||||
}
|
||||
|
||||
int32
|
||||
Private_Write(NPP instance, NPStream* stream, int32 offset, int32 len,
|
||||
int32_t
|
||||
Private_Write(NPP instance, NPStream* stream, int32_t offset, int32_t len,
|
||||
void* buffer)
|
||||
{
|
||||
unsigned int result;
|
||||
|
|
Загрузка…
Ссылка в новой задаче