@Test public void testNew() throws IOException { String volname = getProperties().getProperty("glusterfs.volume"); vol = glfs_new(volname); System.out.println("NEW: " + vol); assertTrue(0 < vol); }
@JniMethod(cast = "glfs_t *") public static final native long glfs_new( @JniArg(cast = "const char*") String volname );
GLFS { @JniMethod(cast = "glfs_t *") public static final native long glfs_new( @JniArg(cast = "const char*") String volname ); }
GLFS { @JniMethod(cast = "glfs_t *") public static final native long glfs_new( @JniArg(cast = "const char*") String volname );  }
GLFS { @JniMethod(cast = "glfs_t *") public static final native long glfs_new( @JniArg(cast = "const char*") String volname );  @JniMethod(cast = "glfs_t *") static final native long glfs_new(
            @JniArg(cast = "const char*") String volname
    ); @JniMethod static final native int glfs_set_volfile_server(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char*") String transport,
            @JniArg(cast = "const char*") String host,
            int port
    ); @JniMethod static final native int glfs_set_logging(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char*") String logfile,
            int loglevel); @JniMethod static final native int glfs_init(
            @JniArg(cast = "glfs_t *") long fs
    ); @JniMethod static final native int glfs_fini(
            @JniArg(cast = "glfs_t *") long fs
    ); @JniMethod(cast = "glfs_fd_t *") static final native long glfs_open(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char*") String path,
            int flags); @JniMethod(cast = "glfs_fd_t *") static final native long glfs_creat(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char*") String path,
            int flags,
            int mode); @JniMethod static final native int glfs_close(
            @JniArg(cast = "glfs_fd_t *") long fd); @JniMethod static final native int glfs_fsync(
            @JniArg(cast = "glfs_fd_t *") long fd); @JniMethod(cast = "glfs_t *") static final native long glfs_from_glfd(
            @JniArg(cast = "glfs_fd_t *") long fd); @JniMethod static final native int glfs_write(
            @JniArg(cast = "glfs_fd_t *") long fd,
            @JniArg(cast = "const char*", flags = NO_OUT) byte[] buf,
            int count,
            int flags); @JniMethod(cast = "ssize_t") static final native long glfs_read(
            @JniArg(cast = "glfs_fd_t *") long fd,
            @JniArg(cast = "void *", flags = NO_IN) byte[] buf,
            @JniArg(cast = "size_t") long count,
            int flags
    ); @JniMethod(cast = "off_t") static final native int glfs_lseek(
            @JniArg(cast = "glfs_fd_t *") long fd,
            @JniArg(cast = "off_t") long offset,
            int whence
    ); @JniMethod static final native int glfs_unlink(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String path); @JniMethod static final native int glfs_statvfs(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String path,
            @JniArg(flags = NO_IN) statvfs buf); @JniMethod static final native int glfs_stat(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String path,
            @JniArg(flags = NO_IN) stat buf); @JniMethod static final native int glfs_lstat(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String path,
            @JniArg(flags = NO_IN) stat buf); @JniMethod static final native int glfs_fstat(
            @JniArg(cast = "glfs_fd_t *") long fd,
            @JniArg(flags = NO_IN) stat buf); @JniMethod static final native int glfs_access(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String path,
            int mode
    ); @JniMethod static final native int glfs_mkdir(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String path,
            int mode
    ); @JniMethod(cast = "glfs_fd_t *") static final native long glfs_opendir(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String path
    ); @JniMethod static final native int glfs_readdir_r(
            @JniArg(cast = "glfs_fd_t *") long fd,
            @JniArg(flags = NO_IN) dirent dirent,
            @JniArg(cast = "struct dirent **") long result
    ); @JniMethod static final native long glfs_telldir(
            @JniArg(cast = "glfs_fd_t *") long fd
    ); @JniMethod static final native void glfs_seekdir(
            @JniArg(cast = "glfs_fd_t *") long fd,
            long offset
    ); @JniMethod static final native int glfs_closedir(
            @JniArg(cast = "glfs_fd_t *") long fd
    ); @JniMethod static final native int glfs_rmdir(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String path
    ); @JniMethod static final native int glfs_rename(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String oldpath,
            @JniArg(cast = "const char *") String newpath
    ); static final native int glfs_chmod(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String path,
            int mode
    ); @JniMethod static final native int glfs_symlink(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String oldpath,
            @JniArg(cast = "const char *") String newpath
    ); @JniMethod static final native int glfs_readlink(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String path,
            @JniArg(cast = "char *", flags = NO_IN) byte[] buf,
            @JniArg(cast = "size_t") long bufsiz
    ); }
GLFS { @JniMethod(cast = "glfs_t *") public static final native long glfs_new( @JniArg(cast = "const char*") String volname );  @JniMethod(cast = "glfs_t *") static final native long glfs_new(
            @JniArg(cast = "const char*") String volname
    ); @JniMethod static final native int glfs_set_volfile_server(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char*") String transport,
            @JniArg(cast = "const char*") String host,
            int port
    ); @JniMethod static final native int glfs_set_logging(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char*") String logfile,
            int loglevel); @JniMethod static final native int glfs_init(
            @JniArg(cast = "glfs_t *") long fs
    ); @JniMethod static final native int glfs_fini(
            @JniArg(cast = "glfs_t *") long fs
    ); @JniMethod(cast = "glfs_fd_t *") static final native long glfs_open(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char*") String path,
            int flags); @JniMethod(cast = "glfs_fd_t *") static final native long glfs_creat(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char*") String path,
            int flags,
            int mode); @JniMethod static final native int glfs_close(
            @JniArg(cast = "glfs_fd_t *") long fd); @JniMethod static final native int glfs_fsync(
            @JniArg(cast = "glfs_fd_t *") long fd); @JniMethod(cast = "glfs_t *") static final native long glfs_from_glfd(
            @JniArg(cast = "glfs_fd_t *") long fd); @JniMethod static final native int glfs_write(
            @JniArg(cast = "glfs_fd_t *") long fd,
            @JniArg(cast = "const char*", flags = NO_OUT) byte[] buf,
            int count,
            int flags); @JniMethod(cast = "ssize_t") static final native long glfs_read(
            @JniArg(cast = "glfs_fd_t *") long fd,
            @JniArg(cast = "void *", flags = NO_IN) byte[] buf,
            @JniArg(cast = "size_t") long count,
            int flags
    ); @JniMethod(cast = "off_t") static final native int glfs_lseek(
            @JniArg(cast = "glfs_fd_t *") long fd,
            @JniArg(cast = "off_t") long offset,
            int whence
    ); @JniMethod static final native int glfs_unlink(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String path); @JniMethod static final native int glfs_statvfs(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String path,
            @JniArg(flags = NO_IN) statvfs buf); @JniMethod static final native int glfs_stat(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String path,
            @JniArg(flags = NO_IN) stat buf); @JniMethod static final native int glfs_lstat(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String path,
            @JniArg(flags = NO_IN) stat buf); @JniMethod static final native int glfs_fstat(
            @JniArg(cast = "glfs_fd_t *") long fd,
            @JniArg(flags = NO_IN) stat buf); @JniMethod static final native int glfs_access(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String path,
            int mode
    ); @JniMethod static final native int glfs_mkdir(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String path,
            int mode
    ); @JniMethod(cast = "glfs_fd_t *") static final native long glfs_opendir(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String path
    ); @JniMethod static final native int glfs_readdir_r(
            @JniArg(cast = "glfs_fd_t *") long fd,
            @JniArg(flags = NO_IN) dirent dirent,
            @JniArg(cast = "struct dirent **") long result
    ); @JniMethod static final native long glfs_telldir(
            @JniArg(cast = "glfs_fd_t *") long fd
    ); @JniMethod static final native void glfs_seekdir(
            @JniArg(cast = "glfs_fd_t *") long fd,
            long offset
    ); @JniMethod static final native int glfs_closedir(
            @JniArg(cast = "glfs_fd_t *") long fd
    ); @JniMethod static final native int glfs_rmdir(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String path
    ); @JniMethod static final native int glfs_rename(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String oldpath,
            @JniArg(cast = "const char *") String newpath
    ); static final native int glfs_chmod(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String path,
            int mode
    ); @JniMethod static final native int glfs_symlink(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String oldpath,
            @JniArg(cast = "const char *") String newpath
    ); @JniMethod static final native int glfs_readlink(
            @JniArg(cast = "glfs_t *") long fs,
            @JniArg(cast = "const char *") String path,
            @JniArg(cast = "char *", flags = NO_IN) byte[] buf,
            @JniArg(cast = "size_t") long bufsiz
    ); static final Library LIBRARY; }