-
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Needed to bring aux::session_settings.
- Loading branch information
Showing
8 changed files
with
355 additions
and
2 deletions.
There are no files selected for viewing
Binary file not shown.
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
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
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,66 @@ | ||
/* ---------------------------------------------------------------------------- | ||
* This file was automatically generated by SWIG (http://www.swig.org). | ||
* Version 3.0.5 | ||
* | ||
* 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 session_settings { | ||
private long swigCPtr; | ||
protected boolean swigCMemOwn; | ||
|
||
protected session_settings(long cPtr, boolean cMemoryOwn) { | ||
swigCMemOwn = cMemoryOwn; | ||
swigCPtr = cPtr; | ||
} | ||
|
||
protected static long getCPtr(session_settings 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_session_settings(swigCPtr); | ||
} | ||
swigCPtr = 0; | ||
} | ||
} | ||
|
||
public void set_str(int name, String value) { | ||
libtorrent_jni.session_settings_set_str(swigCPtr, this, name, value); | ||
} | ||
|
||
public String get_str(int name) { | ||
return libtorrent_jni.session_settings_get_str(swigCPtr, this, name); | ||
} | ||
|
||
public void set_int(int name, int value) { | ||
libtorrent_jni.session_settings_set_int(swigCPtr, this, name, value); | ||
} | ||
|
||
public int get_int(int name) { | ||
return libtorrent_jni.session_settings_get_int(swigCPtr, this, name); | ||
} | ||
|
||
public void set_bool(int name, boolean value) { | ||
libtorrent_jni.session_settings_set_bool(swigCPtr, this, name, value); | ||
} | ||
|
||
public boolean get_bool(int name) { | ||
return libtorrent_jni.session_settings_get_bool(swigCPtr, this, name); | ||
} | ||
|
||
public session_settings() { | ||
this(libtorrent_jni.new_session_settings(), 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
Oops, something went wrong.