Fixed signature of Write method.
git-svn-id: svn://10.0.0.236/trunk@8913 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -23,7 +23,7 @@ LIBRARY_NAME = npsimple
|
||||
|
||||
DEPTH = ..\..\..
|
||||
|
||||
REQUIRES = java plug xpcom
|
||||
REQUIRES = java plug xpcom raptor
|
||||
|
||||
OBJS = .\$(OBJDIR)\npsimple.obj \
|
||||
.\$(OBJDIR)\stubs.obj \
|
||||
@@ -76,7 +76,7 @@ GARBAGE = $(GARBAGE) _gen
|
||||
#//------------------------------------------------------------------------
|
||||
include <$(DEPTH)/config/rules.mak>
|
||||
|
||||
LINCS=$(LINCS) -I$(PUBLIC)\plugin -I$(PUBLIC)\xpcom -I$(PUBLIC)\java -I$(PUBLIC)\plugimpl
|
||||
LINCS=$(LINCS) -I$(PUBLIC)\plugin -I$(PUBLIC)\xpcom -I$(PUBLIC)\java -I$(PUBLIC)\plugimpl -I$(PUBLIC)\raptor
|
||||
|
||||
install:: $(DLL)
|
||||
$(MAKE_INSTALL) $(XPDIST)\classes11\Simple.class $(DEPTH)\cmd\winfe\mkfiles32\x86dbg\plugins\simple
|
||||
|
||||
@@ -324,7 +324,7 @@ public:
|
||||
* @return number of bytes read or -1 if error
|
||||
*/
|
||||
NS_IMETHOD
|
||||
Write(const char* aBuf, PRInt32 aOffset, PRInt32 aCount);
|
||||
Write(const char* aBuf, PRInt32 aOffset, PRInt32 aCount, PRInt32 *aWriteCount);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
// from nsIPluginStream:
|
||||
@@ -840,11 +840,12 @@ SimplePluginStream::Close(void)
|
||||
+++++++++++++++++++++++++++++++++++++++++++++++++*/
|
||||
|
||||
NS_METHOD
|
||||
SimplePluginStream::Write(const char* aBuf, PRInt32 aOffset, PRInt32 aCount)
|
||||
SimplePluginStream::Write(const char* aBuf, PRInt32 aOffset, PRInt32 aCount, PRInt32 *aWriteCount)
|
||||
{
|
||||
PR_ASSERT(aOffset == 0); // XXX need to handle the non-sequential write case
|
||||
fInst->DisplayJavaMessage((char*)aBuf, aCount);
|
||||
return aCount; /* The number of bytes accepted */
|
||||
*aWriteCount = aCount; /* The number of bytes accepted */
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
/*******************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user