making the native method public and renaming to gather
This commit is contained in:
1 parent
9616fb7f39
commit
14f2e8811f
5 files changed
+15
-15
No files matched your search
@@ -1062,7 +1062,7 @@ while (my($name, $fields) = each %classes) {
|
||||
$sigar_function = $func_alias{$sigar_function} || $sigar_function;
|
||||
my $sigar_type = join '_', $sigar_prefix, 't';
|
||||
|
||||
my $nativefunc = join '_', $jni_prefix, 'nativeGet';
|
||||
my $nativefunc = join '_', $jni_prefix, 'gather';
|
||||
|
||||
my $proto = join "\n",
|
||||
"JNIEXPORT void JNICALL $nativefunc",
|
||||
@@ -1121,9 +1121,9 @@ package net.hyperic.sigar;
|
||||
*/
|
||||
public class $name {
|
||||
|
||||
$name() { }
|
||||
public $name() { }
|
||||
|
||||
native void nativeGet($jargs_proto) throws SigarException;
|
||||
public native void gather($jargs_proto) throws SigarException;
|
||||
|
||||
/**
|
||||
* This method is not intended to be called directly.
|
||||
@@ -1133,7 +1133,7 @@ public class $name {
|
||||
*/
|
||||
static $name fetch($jargs_proto) throws SigarException {
|
||||
$name $jname = new $name();
|
||||
$jname.nativeGet($jargs);
|
||||
$jname.gather($jargs);
|
||||
return $jname;
|
||||
}
|
||||
|
||||
|
||||
@@ -746,10 +746,10 @@ JNIEXPORT jint SIGAR_JNI(FileInfo_getMode)
|
||||
|
||||
|
||||
/*
|
||||
* copy of the generated FileAttrs_nativeGet function
|
||||
* copy of the generated FileAttrs_gather function
|
||||
* but we call the lstat wrapper instead.
|
||||
*/
|
||||
JNIEXPORT void SIGAR_JNI(FileInfo_nativeGetLink)
|
||||
JNIEXPORT void SIGAR_JNI(FileInfo_gatherLink)
|
||||
(JNIEnv *env, jobject obj, jobject sigar_obj, jstring name)
|
||||
{
|
||||
sigar_file_attrs_t s;
|
||||
|
||||
Reference in new issue
Block a user