mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-02 12:07:52 +00:00
added trace facility
This commit is contained in:
parent
4d3b8a3643
commit
19e0c84dbf
@ -197,5 +197,6 @@ void SizeofRASNT40(); // ini WinNT RAS sizes
|
||||
#endif // WIN32
|
||||
|
||||
void SizeofRAS(); // init Win95 & Win3.1 RAS sizes
|
||||
void trace( const char* traceStatement );
|
||||
|
||||
#endif // _INC_PLUGIN_H_
|
||||
|
@ -88,7 +88,6 @@ HINSTANCE DLLinstance = NULL;
|
||||
JRIGlobalRef g_globalRefReg = NULL;
|
||||
|
||||
|
||||
|
||||
//********************************************************************************
|
||||
//
|
||||
// NPP_Initialize
|
||||
@ -106,7 +105,8 @@ NPError NPP_Initialize(void)
|
||||
//register_java_lang_String(env); //Not necessary?
|
||||
}
|
||||
|
||||
|
||||
trace( "initialized plug-in" );
|
||||
|
||||
#ifdef WIN32 // ******************* WIN32 ***********************
|
||||
// gets the OS version
|
||||
// note: we need another way to check for win31
|
||||
@ -627,6 +627,22 @@ native_netscape_npasw_SetupPlugin_SECURE_0005fCheckEnvironment(JRIEnv* env,
|
||||
return (TRUE);
|
||||
}
|
||||
|
||||
void trace( const char* traceStatement )
|
||||
{
|
||||
if ( !env )
|
||||
return;
|
||||
|
||||
java_lang_Class* self = (java_lang_Class*)NPP_GetJavaClass();
|
||||
if ( !self )
|
||||
return;
|
||||
|
||||
java_lang_String* traceString = JRI_NewStringPlatform( env, traceStatement,
|
||||
strlen( traceStatement), NULL, 0 );
|
||||
|
||||
netscape_npasw_SetupPlugin_debug( env, self, traceString );
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
* Native Methods:
|
||||
* These are the signatures of the native methods which you must implement.
|
||||
|
Loading…
x
Reference in New Issue
Block a user