share some utils

This commit is contained in:
Doug MacEachern 2004-11-20 21:02:39 +00:00
parent 0be694fca5
commit a77a94454f
2 changed files with 13 additions and 12 deletions

View File

@ -14,23 +14,12 @@
#endif
#include "javasigar_generated.h"
#include "javasigar.h"
#if defined(__osf__)
#define SIGAR_POINTER_LONG
#endif
#define JENV (*env)
#define SIGAR_PACKAGE "net/hyperic/sigar/"
#define SIGAR_JNI(m) JNICALL Java_net_hyperic_sigar_##m
#define SIGAR_FIND_CLASS(name) \
JENV->FindClass(env, SIGAR_PACKAGE name)
#define SIGAR_CLASS_SIG(name) \
"L" SIGAR_PACKAGE name ";"
typedef struct {
jclass classref;
jfieldID *ids;

View File

@ -0,0 +1,12 @@
#define JENV (*env)
#define SIGAR_PACKAGE "net/hyperic/sigar/"
#define SIGAR_JNI(m) JNICALL Java_net_hyperic_sigar_##m
#define SIGAR_FIND_CLASS(name) \
JENV->FindClass(env, SIGAR_PACKAGE name)
#define SIGAR_CLASS_SIG(name) \
"L" SIGAR_PACKAGE name ";"