diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/API.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/API.java new file mode 100644 index 0000000000..580b8e91b9 --- /dev/null +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/API.java @@ -0,0 +1,48 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.35 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.freeswitch.swig; + +public class API { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected API(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(API obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if(swigCPtr != 0 && swigCMemOwn) { + swigCMemOwn = false; + freeswitchJNI.delete_API(swigCPtr); + } + swigCPtr = 0; + } + + public API() { + this(freeswitchJNI.new_API(), true); + } + + public String execute(String command, String data) { + return freeswitchJNI.API_execute(swigCPtr, this, command, data); + } + + public String executeString(String command) { + return freeswitchJNI.API_executeString(swigCPtr, this, command); + } + +} diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/Event.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/Event.java new file mode 100644 index 0000000000..9f93860274 --- /dev/null +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/Event.java @@ -0,0 +1,121 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.35 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.freeswitch.swig; + +public class Event { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected Event(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(Event obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if(swigCPtr != 0 && swigCMemOwn) { + swigCMemOwn = false; + freeswitchJNI.delete_Event(swigCPtr); + } + swigCPtr = 0; + } + + public void setEvent(SWIGTYPE_p_switch_event_t value) { + freeswitchJNI.Event_event_set(swigCPtr, this, SWIGTYPE_p_switch_event_t.getCPtr(value)); + } + + public SWIGTYPE_p_switch_event_t getEvent() { + long cPtr = freeswitchJNI.Event_event_get(swigCPtr, this); + return (cPtr == 0) ? null : new SWIGTYPE_p_switch_event_t(cPtr, false); + } + + public void setSerialized_string(String value) { + freeswitchJNI.Event_serialized_string_set(swigCPtr, this, value); + } + + public String getSerialized_string() { + return freeswitchJNI.Event_serialized_string_get(swigCPtr, this); + } + + public void setMine(int value) { + freeswitchJNI.Event_mine_set(swigCPtr, this, value); + } + + public int getMine() { + return freeswitchJNI.Event_mine_get(swigCPtr, this); + } + + public Event(String type, String subclass_name) { + this(freeswitchJNI.new_Event__SWIG_0(type, subclass_name), true); + } + + public Event(String type) { + this(freeswitchJNI.new_Event__SWIG_1(type), true); + } + + public Event(SWIGTYPE_p_switch_event_t wrap_me, int free_me) { + this(freeswitchJNI.new_Event__SWIG_2(SWIGTYPE_p_switch_event_t.getCPtr(wrap_me), free_me), true); + } + + public Event(SWIGTYPE_p_switch_event_t wrap_me) { + this(freeswitchJNI.new_Event__SWIG_3(SWIGTYPE_p_switch_event_t.getCPtr(wrap_me)), true); + } + + public String serialize(String format) { + return freeswitchJNI.Event_serialize__SWIG_0(swigCPtr, this, format); + } + + public String serialize() { + return freeswitchJNI.Event_serialize__SWIG_1(swigCPtr, this); + } + + public boolean setPriority(SWIGTYPE_p_switch_priority_t priority) { + return freeswitchJNI.Event_setPriority__SWIG_0(swigCPtr, this, SWIGTYPE_p_switch_priority_t.getCPtr(priority)); + } + + public boolean setPriority() { + return freeswitchJNI.Event_setPriority__SWIG_1(swigCPtr, this); + } + + public String getHeader(String header_name) { + return freeswitchJNI.Event_getHeader(swigCPtr, this, header_name); + } + + public String getBody() { + return freeswitchJNI.Event_getBody(swigCPtr, this); + } + + public String getType() { + return freeswitchJNI.Event_getType(swigCPtr, this); + } + + public boolean addBody(String value) { + return freeswitchJNI.Event_addBody(swigCPtr, this, value); + } + + public boolean addHeader(String header_name, String value) { + return freeswitchJNI.Event_addHeader(swigCPtr, this, header_name, value); + } + + public boolean delHeader(String header_name) { + return freeswitchJNI.Event_delHeader(swigCPtr, this, header_name); + } + + public boolean fire() { + return freeswitchJNI.Event_fire(swigCPtr, this); + } + +} diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/IVRMenu.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/IVRMenu.java new file mode 100644 index 0000000000..e4909b96bf --- /dev/null +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/IVRMenu.java @@ -0,0 +1,48 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.35 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.freeswitch.swig; + +public class IVRMenu { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected IVRMenu(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(IVRMenu obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if(swigCPtr != 0 && swigCMemOwn) { + swigCMemOwn = false; + freeswitchJNI.delete_IVRMenu(swigCPtr); + } + swigCPtr = 0; + } + + public IVRMenu(IVRMenu main, String name, String greeting_sound, String short_greeting_sound, String invalid_sound, String exit_sound, String confirm_macro, String confirm_key, int confirm_attempts, int inter_timeout, int digit_len, int timeout, int max_failures) { + this(freeswitchJNI.new_IVRMenu(IVRMenu.getCPtr(main), main, name, greeting_sound, short_greeting_sound, invalid_sound, exit_sound, confirm_macro, confirm_key, confirm_attempts, inter_timeout, digit_len, timeout, max_failures), true); + } + + public void bindAction(String action, String arg, String bind) { + freeswitchJNI.IVRMenu_bindAction(swigCPtr, this, action, arg, bind); + } + + public void execute(CoreSession session, String name) { + freeswitchJNI.IVRMenu_execute(swigCPtr, this, CoreSession.getCPtr(session), session, name); + } + +} diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_event_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_event_t.java new file mode 100644 index 0000000000..e122b7616d --- /dev/null +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_event_t.java @@ -0,0 +1,26 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.35 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.freeswitch.swig; + +public class SWIGTYPE_p_switch_event_t { + private long swigCPtr; + + protected SWIGTYPE_p_switch_event_t(long cPtr, boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_switch_event_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_switch_event_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_priority_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_priority_t.java new file mode 100644 index 0000000000..1c8ae112c3 --- /dev/null +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_priority_t.java @@ -0,0 +1,26 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.35 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.freeswitch.swig; + +public class SWIGTYPE_p_switch_priority_t { + private long swigCPtr; + + protected SWIGTYPE_p_switch_priority_t(long cPtr, boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_switch_priority_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_switch_priority_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_size_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_size_t.java new file mode 100644 index 0000000000..97d084dce2 --- /dev/null +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_size_t.java @@ -0,0 +1,26 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.35 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.freeswitch.swig; + +public class SWIGTYPE_p_switch_size_t { + private long swigCPtr; + + protected SWIGTYPE_p_switch_size_t(long cPtr, boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_switch_size_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_switch_size_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_stream_handle_t.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_stream_handle_t.java new file mode 100644 index 0000000000..656bdcf7ec --- /dev/null +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/SWIGTYPE_p_switch_stream_handle_t.java @@ -0,0 +1,26 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.35 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.freeswitch.swig; + +public class SWIGTYPE_p_switch_stream_handle_t { + private long swigCPtr; + + protected SWIGTYPE_p_switch_stream_handle_t(long cPtr, boolean futureUse) { + swigCPtr = cPtr; + } + + protected SWIGTYPE_p_switch_stream_handle_t() { + swigCPtr = 0; + } + + protected static long getCPtr(SWIGTYPE_p_switch_stream_handle_t obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } +} + diff --git a/src/mod/languages/mod_java/src/org/freeswitch/swig/Stream.java b/src/mod/languages/mod_java/src/org/freeswitch/swig/Stream.java new file mode 100644 index 0000000000..63f8da2647 --- /dev/null +++ b/src/mod/languages/mod_java/src/org/freeswitch/swig/Stream.java @@ -0,0 +1,52 @@ +/* ---------------------------------------------------------------------------- + * This file was automatically generated by SWIG (http://www.swig.org). + * Version 1.3.35 + * + * Do not make changes to this file unless you know what you are doing--modify + * the SWIG interface file instead. + * ----------------------------------------------------------------------------- */ + +package org.freeswitch.swig; + +public class Stream { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected Stream(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(Stream obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if(swigCPtr != 0 && swigCMemOwn) { + swigCMemOwn = false; + freeswitchJNI.delete_Stream(swigCPtr); + } + swigCPtr = 0; + } + + public Stream() { + this(freeswitchJNI.new_Stream__SWIG_0(), true); + } + + public Stream(SWIGTYPE_p_switch_stream_handle_t arg0) { + this(freeswitchJNI.new_Stream__SWIG_1(SWIGTYPE_p_switch_stream_handle_t.getCPtr(arg0)), true); + } + + public void write(String data) { + freeswitchJNI.Stream_write(swigCPtr, this, data); + } + + public String get_data() { + return freeswitchJNI.Stream_get_data(swigCPtr, this); + } + +}