-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
1,855 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
src/main/java/com/frostwire/jlibtorrent/swig/posix_stat.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
/* ---------------------------------------------------------------------------- | ||
* This file was automatically generated by SWIG (http://www.swig.org). | ||
* Version 3.0.8 | ||
* | ||
* Do not make changes to this file unless you know what you are doing--modify | ||
* the SWIG interface file instead. | ||
* ----------------------------------------------------------------------------- */ | ||
|
||
package com.frostwire.jlibtorrent.swig; | ||
|
||
public class posix_stat { | ||
private transient long swigCPtr; | ||
protected transient boolean swigCMemOwn; | ||
|
||
protected posix_stat(long cPtr, boolean cMemoryOwn) { | ||
swigCMemOwn = cMemoryOwn; | ||
swigCPtr = cPtr; | ||
} | ||
|
||
protected static long getCPtr(posix_stat obj) { | ||
return (obj == null) ? 0 : obj.swigCPtr; | ||
} | ||
|
||
protected void finalize() { | ||
delete(); | ||
} | ||
|
||
public synchronized void delete() { | ||
if (swigCPtr != 0) { | ||
if (swigCMemOwn) { | ||
swigCMemOwn = false; | ||
libtorrent_jni.delete_posix_stat(swigCPtr); | ||
} | ||
swigCPtr = 0; | ||
} | ||
} | ||
|
||
public void setSt_size(long value) { | ||
libtorrent_jni.posix_stat_st_size_set(swigCPtr, this, value); | ||
} | ||
|
||
public long getSt_size() { | ||
return libtorrent_jni.posix_stat_st_size_get(swigCPtr, this); | ||
} | ||
|
||
public void setSt_atime(long value) { | ||
libtorrent_jni.posix_stat_st_atime_set(swigCPtr, this, value); | ||
} | ||
|
||
public long getSt_atime() { | ||
return libtorrent_jni.posix_stat_st_atime_get(swigCPtr, this); | ||
} | ||
|
||
public void setSt_mtime(long value) { | ||
libtorrent_jni.posix_stat_st_mtime_set(swigCPtr, this, value); | ||
} | ||
|
||
public long getSt_mtime() { | ||
return libtorrent_jni.posix_stat_st_mtime_get(swigCPtr, this); | ||
} | ||
|
||
public void setSt_ctime(long value) { | ||
libtorrent_jni.posix_stat_st_ctime_set(swigCPtr, this, value); | ||
} | ||
|
||
public long getSt_ctime() { | ||
return libtorrent_jni.posix_stat_st_ctime_get(swigCPtr, this); | ||
} | ||
|
||
public void setSt_mode(int value) { | ||
libtorrent_jni.posix_stat_st_mode_set(swigCPtr, this, value); | ||
} | ||
|
||
public int getSt_mode() { | ||
return libtorrent_jni.posix_stat_st_mode_get(swigCPtr, this); | ||
} | ||
|
||
public posix_stat() { | ||
this(libtorrent_jni.new_posix_stat(), true); | ||
} | ||
|
||
} |
78 changes: 78 additions & 0 deletions
78
src/main/java/com/frostwire/jlibtorrent/swig/posix_wrapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/* ---------------------------------------------------------------------------- | ||
* This file was automatically generated by SWIG (http://www.swig.org). | ||
* Version 3.0.8 | ||
* | ||
* Do not make changes to this file unless you know what you are doing--modify | ||
* the SWIG interface file instead. | ||
* ----------------------------------------------------------------------------- */ | ||
|
||
package com.frostwire.jlibtorrent.swig; | ||
|
||
public class posix_wrapper { | ||
private transient long swigCPtr; | ||
protected transient boolean swigCMemOwn; | ||
|
||
protected posix_wrapper(long cPtr, boolean cMemoryOwn) { | ||
swigCMemOwn = cMemoryOwn; | ||
swigCPtr = cPtr; | ||
} | ||
|
||
protected static long getCPtr(posix_wrapper obj) { | ||
return (obj == null) ? 0 : obj.swigCPtr; | ||
} | ||
|
||
protected void finalize() { | ||
delete(); | ||
} | ||
|
||
public synchronized void delete() { | ||
if (swigCPtr != 0) { | ||
if (swigCMemOwn) { | ||
swigCMemOwn = false; | ||
libtorrent_jni.delete_posix_wrapper(swigCPtr); | ||
} | ||
swigCPtr = 0; | ||
} | ||
} | ||
|
||
protected void swigDirectorDisconnect() { | ||
swigCMemOwn = false; | ||
delete(); | ||
} | ||
|
||
public void swigReleaseOwnership() { | ||
swigCMemOwn = false; | ||
libtorrent_jni.posix_wrapper_change_ownership(this, swigCPtr, false); | ||
} | ||
|
||
public void swigTakeOwnership() { | ||
swigCMemOwn = true; | ||
libtorrent_jni.posix_wrapper_change_ownership(this, swigCPtr, true); | ||
} | ||
|
||
public int open(String path, int flags, int mode) { | ||
return (getClass() == posix_wrapper.class) ? libtorrent_jni.posix_wrapper_open(swigCPtr, this, path, flags, mode) : libtorrent_jni.posix_wrapper_openSwigExplicitposix_wrapper(swigCPtr, this, path, flags, mode); | ||
} | ||
|
||
public int stat(String path, posix_stat buf) { | ||
return (getClass() == posix_wrapper.class) ? libtorrent_jni.posix_wrapper_stat(swigCPtr, this, path, posix_stat.getCPtr(buf), buf) : libtorrent_jni.posix_wrapper_statSwigExplicitposix_wrapper(swigCPtr, this, path, posix_stat.getCPtr(buf), buf); | ||
} | ||
|
||
public int mkdir(String path, int mode) { | ||
return (getClass() == posix_wrapper.class) ? libtorrent_jni.posix_wrapper_mkdir(swigCPtr, this, path, mode) : libtorrent_jni.posix_wrapper_mkdirSwigExplicitposix_wrapper(swigCPtr, this, path, mode); | ||
} | ||
|
||
public int rename(String oldpath, String newpath) { | ||
return (getClass() == posix_wrapper.class) ? libtorrent_jni.posix_wrapper_rename(swigCPtr, this, oldpath, newpath) : libtorrent_jni.posix_wrapper_renameSwigExplicitposix_wrapper(swigCPtr, this, oldpath, newpath); | ||
} | ||
|
||
public int remove(String path) { | ||
return (getClass() == posix_wrapper.class) ? libtorrent_jni.posix_wrapper_remove(swigCPtr, this, path) : libtorrent_jni.posix_wrapper_removeSwigExplicitposix_wrapper(swigCPtr, this, path); | ||
} | ||
|
||
public posix_wrapper() { | ||
this(libtorrent_jni.new_posix_wrapper(), true); | ||
libtorrent_jni.posix_wrapper_director_connect(this, swigCPtr, swigCMemOwn, true); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
:)