(file) Return to JMPIImpl.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / ProviderManager2 / JMPI

Diff for /pegasus/src/Pegasus/ProviderManager2/JMPI/JMPIImpl.h between version 1.17.2.2 and 1.24

version 1.17.2.2, 2006/03/07 18:45:59 version 1.24, 2006/09/06 20:31:42
Line 29 
Line 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // Author:      Adrian Schuur, schuur@de.ibm.com  
 //  
 // Modified By:  
 //  
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
   
 #ifndef _Provider_JMPIImpl_h #ifndef _Provider_JMPIImpl_h
 #define _Provider_JMPIImpl_h #define _Provider_JMPIImpl_h
  
   #include <Pegasus/Common/Config.h>
   
 #include <jni.h> #include <jni.h>
   
   #ifdef PEGASUS_PLATFORM_LINUX_GENERIC_GNU
   #if defined (__GNUC__) && GCC_VERSION >= 40000
   // If gcc is compiled with -fvisibility=hidden then JMPI is broken.  This is because
   // the JNI h file defines JNIEXPORT as empty since the default is visible.
   #undef  JNIEXPORT
   #define JNIEXPORT __attribute__ ((visibility("default")))
   #endif
   #endif
   
 #include <stdio.h> #include <stdio.h>
 #include <stdlib.h> #include <stdlib.h>
 #include <string.h> #include <string.h>
  
 #include <Pegasus/Common/Config.h>  
 #include <Pegasus/Common/String.h> #include <Pegasus/Common/String.h>
 #include <Pegasus/Common/System.h> #include <Pegasus/Common/System.h>
 #include <Pegasus/Common/HashTable.h> #include <Pegasus/Common/HashTable.h>
Line 69 
Line 75 
    } \    } \
    catch(...)  { \    catch(...)  { \
       JMPIjvm::cacheIDs(jEnv); \       JMPIjvm::cacheIDs(jEnv); \
       jobject ev=jEnv->NewObject(JMPIjvm::jv.CIMExceptionClassRef,JMPIjvm::jv.CIMExceptionNewISt,(jint)1,"Exception: Unknown"); \        jobject ev=jEnv->NewObject(JMPIjvm::jv.CIMExceptionClassRef,JMPIjvm::jv.CIMExceptionNewISt,(jint)1,jEnv->NewStringUTF("Exception: Unknown")); \
       jEnv->Throw((jthrowable)ev); \       jEnv->Throw((jthrowable)ev); \
    }    }
  
Line 364 
Line 370 
 #define CIMInstanceExceptionClassRef classRefs[30] #define CIMInstanceExceptionClassRef classRefs[30]
 #define CIMObjectClassRef            classRefs[31] #define CIMObjectClassRef            classRefs[31]
 #define CharacterClassRef            classRefs[32] #define CharacterClassRef            classRefs[32]
   #define OperationContextClassRef     classRefs[33]
   #define ClassClassRef                classRefs[34]
   #define JarClassLoaderRef            classRefs[35]
  
 #define BigIntegerValueOf            staticMethodIDs[0] #define BigIntegerValueOf            staticMethodIDs[0]
 #define JarClassLoaderLoad           staticMethodIDs[1] #define JarClassLoaderLoad           staticMethodIDs[1]
Line 416 
Line 425 
 #define ThrowableGetMessage          instMethodIDs[25] #define ThrowableGetMessage          instMethodIDs[25]
 #define CIMObjectNewIZ               instMethodIDs[46] #define CIMObjectNewIZ               instMethodIDs[46]
 #define CharacterNewC                instMethodIDs[47] #define CharacterNewC                instMethodIDs[47]
   #define OperationContextNewI         instMethodIDs[48]
   #define OperationContextUnassociate  instMethodIDs[49]
   #define ClassGetInterfaces           instMethodIDs[50]
   #define ClassGetName                 instMethodIDs[51]
   #define UnsignedInt64NewStr          instMethodIDs[52]
  
 //extern "C" JNIEnv* attachThread(JvmVector**); //extern "C" JNIEnv* attachThread(JvmVector**);
 //extern "C" void detachThread(); //extern "C" void detachThread();


Legend:
Removed from v.1.17.2.2  
changed lines
  Added in v.1.24

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2