[Opalvoip-svn] SF.net SVN: opalvoip:[20694] opal/trunk
Brought to you by:
csoutheren,
rjongbloed
From: <rjo...@us...> - 2008-08-19 04:01:52
|
Revision: 20694 http://opalvoip.svn.sourceforge.net/opalvoip/?rev=20694&view=rev Author: rjongbloed Date: 2008-08-19 04:01:57 +0000 (Tue, 19 Aug 2008) Log Message: ----------- Added Java JNI support via swig Modified Paths: -------------- opal/trunk/Makefile.in opal/trunk/configure opal/trunk/configure.ac opal/trunk/opal_inc.mak.in Added Paths: ----------- opal/trunk/src/java/ opal/trunk/src/java/OpalCallEndReason.java opal/trunk/src/java/OpalEchoCancelMode.java opal/trunk/src/java/OpalMediaDataType.java opal/trunk/src/java/OpalMediaStates.java opal/trunk/src/java/OpalMessage.java opal/trunk/src/java/OpalMessageType.java opal/trunk/src/java/OpalMessage_m_param.java opal/trunk/src/java/OpalParamCallCleared.java opal/trunk/src/java/OpalParamGeneral.java opal/trunk/src/java/OpalParamProtocol.java opal/trunk/src/java/OpalParamRegistration.java opal/trunk/src/java/OpalParamSetUpCall.java opal/trunk/src/java/OpalRegistrationStates.java opal/trunk/src/java/OpalSilenceDetectModes.java opal/trunk/src/java/OpalStatusCallCleared.java opal/trunk/src/java/OpalStatusIncomingCall.java opal/trunk/src/java/OpalStatusMediaStream.java opal/trunk/src/java/OpalStatusMessageWaiting.java opal/trunk/src/java/OpalStatusRegistration.java opal/trunk/src/java/OpalStatusUserInput.java opal/trunk/src/java/SWIGTYPE_p_OpalHandleStruct.java opal/trunk/src/java/SWIGTYPE_p_OpalMessage.java opal/trunk/src/java/SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_void_int__int.java opal/trunk/src/java/SWIGTYPE_p_f_p_q_const__struct_OpalMessage__int.java opal/trunk/src/java/SWIGTYPE_p_unsigned_int.java opal/trunk/src/java/example.java opal/trunk/src/java/exampleConstants.java opal/trunk/src/java/exampleJNI.java opal/trunk/src/java/java_swig_wrapper.c opal/trunk/src/java/opal.i Modified: opal/trunk/Makefile.in =================================================================== --- opal/trunk/Makefile.in 2008-08-19 03:58:03 UTC (rev 20693) +++ opal/trunk/Makefile.in 2008-08-19 04:01:57 UTC (rev 20694) @@ -330,6 +330,20 @@ endif +#################################################### +# Java interface + +ifeq ($(OPAL_JAVA), 1) + +JAVA_SRCDIR = $(OPAL_SRCDIR)/java +JAVA_WRAPPER = $(JAVA_SRCDIR)/java_swig_wrapper.c + +VPATH_C += $(JAVA_SRCDIR) +SOURCES += $(JAVA_WRAPPER) + +endif + + ################## # T.38 Fax @@ -463,6 +477,14 @@ @false +ifdef JAVA_WRAPPER + +$(JAVA_WRAPPER): $(JAVA_SRCDIR)/opal.i $(OPAL_INCDIR)/opal.h + swig -java -package -w451 -I$(OPAL_INCDIR) -o $@ $< + +endif + + #### Install targets install :: mkdir -p $(DESTDIR)@LIBDIR@ Modified: opal/trunk/configure =================================================================== --- opal/trunk/configure 2008-08-19 03:58:03 UTC (rev 20693) +++ opal/trunk/configure 2008-08-19 04:01:57 UTC (rev 20694) @@ -699,6 +699,7 @@ BN_LIBDIR OPAL_SRTP HAS_LIBSRTP +OPAL_JAVA subdirs OPAL_PLUGINS OPAL_SAMPLES @@ -1308,6 +1309,7 @@ --disable-g711plc disable accoustic echo cancellation support --disable-statistics disable statistics gathering support --enable-zrtp enable ZRTP protocol support + --disable-java disable Java JNI support --disable-plugins disable Plug In support --disable-samples disable Samples build @@ -3057,6 +3059,7 @@ rfc4175=yes g711plc=yes statistics=yes +java=yes plugins=yes #zrtp=yes @@ -7180,6 +7183,201 @@ + +# Check whether --enable-java was given. +if test "${enable_java+set}" = set; then + enableval=$enable_java; java=$enableval +fi + + +OPAL_JAVA= +if test "$java" = "yes" ; then + +for ac_header in jni.h +do +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + { echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +else + # Is the header compilable? +{ echo "$as_me:$LINENO: checking $ac_header usability" >&5 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +$ac_includes_default +#include <$ac_header> +_ACEOF +rm -f conftest.$ac_objext +if { (ac_try="$ac_compile" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_compile") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && { + test -z "$ac_c_werror_flag" || + test ! -s conftest.err + } && test -s conftest.$ac_objext; then + ac_header_compiler=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_compiler=no +fi + +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 +echo "${ECHO_T}$ac_header_compiler" >&6; } + +# Is the header present? +{ echo "$as_me:$LINENO: checking $ac_header presence" >&5 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include <$ac_header> +_ACEOF +if { (ac_try="$ac_cpp conftest.$ac_ext" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; +esac +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null && { + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || + test ! -s conftest.err + }; then + ac_header_preproc=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + ac_header_preproc=no +fi + +rm -f conftest.err conftest.$ac_ext +{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 +echo "${ECHO_T}$ac_header_preproc" >&6; } + +# So? What about this header? +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in + yes:no: ) + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} + ac_header_preproc=yes + ;; + no:yes:* ) + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} + + ;; +esac +{ echo "$as_me:$LINENO: checking for $ac_header" >&5 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } +if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + eval "$as_ac_Header=\$ac_header_preproc" +fi +ac_res=`eval echo '${'$as_ac_Header'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } + +fi +if test `eval echo '${'$as_ac_Header'}'` = yes; then + cat >>confdefs.h <<_ACEOF +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 +_ACEOF + OPAL_JAVA=1 +fi + +done + + if test "${OPAL_JAVA:-unset}" == "unset" ; then + if test "${JDK_ROOT}:-unset" != "unset" ; then + as_ac_File=`echo "ac_cv_file_${JDK_ROOT}/include/jni.h" | $as_tr_sh` +{ echo "$as_me:$LINENO: checking for ${JDK_ROOT}/include/jni.h" >&5 +echo $ECHO_N "checking for ${JDK_ROOT}/include/jni.h... $ECHO_C" >&6; } +if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + test "$cross_compiling" = yes && + { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5 +echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} + { (exit 1); exit 1; }; } +if test -r "${JDK_ROOT}/include/jni.h"; then + eval "$as_ac_File=yes" +else + eval "$as_ac_File=no" +fi +fi +ac_res=`eval echo '${'$as_ac_File'}'` + { echo "$as_me:$LINENO: result: $ac_res" >&5 +echo "${ECHO_T}$ac_res" >&6; } +if test `eval echo '${'$as_ac_File'}'` = yes; then + OPAL_JAVA=1 +fi + + if test "${OPAL_JAVA:-unset}" != "unset" ; then + STDCCFLAGS="$STDCCFLAGS -I${JDK_ROOT}/include -I${JDK_ROOT}/include/linux" + fi + fi + fi + + if test "${OPAL_JAVA:-unset}" != "unset" ; then + +cat >>confdefs.h <<\_ACEOF +#define OPAL_JAVA 1 +_ACEOF + + fi +else + { echo "$as_me:$LINENO: Java JNI disabled" >&5 +echo "$as_me: Java JNI disabled" >&6;} +fi + + + + # Check whether --enable-plugins was given. if test "${enable_plugins+set}" = set; then enableval=$enable_plugins; plugins=$enableval @@ -8065,6 +8263,7 @@ BN_LIBDIR!$BN_LIBDIR$ac_delim OPAL_SRTP!$OPAL_SRTP$ac_delim HAS_LIBSRTP!$HAS_LIBSRTP$ac_delim +OPAL_JAVA!$OPAL_JAVA$ac_delim subdirs!$subdirs$ac_delim OPAL_PLUGINS!$OPAL_PLUGINS$ac_delim OPAL_SAMPLES!$OPAL_SAMPLES$ac_delim @@ -8077,7 +8276,7 @@ LTLIBOBJS!$LTLIBOBJS$ac_delim _ACEOF - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 96; then + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then break elif $ac_last_try; then { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 Modified: opal/trunk/configure.ac =================================================================== --- opal/trunk/configure.ac 2008-08-19 03:58:03 UTC (rev 20693) +++ opal/trunk/configure.ac 2008-08-19 04:01:57 UTC (rev 20694) @@ -24,6 +24,7 @@ rfc4175=yes g711plc=yes statistics=yes +java=yes plugins=yes #zrtp=yes @@ -793,7 +794,42 @@ dnl ######################################################################## +dnl +dnl Java interface support +dnl +dnl MSWIN_DISPLAY java,Java interface +dnl MSWIN_CHECK_FILE java,include\jni.h,OPAL_JAVA=1 +dnl MSWIN_DIR_SYMBOL java,JAVA_DIR +dnl MSWIN_CHECK_DIR libsrtp,c:\Program Files\java\jdk* + +AC_ARG_ENABLE(java, + [ --disable-java disable Java JNI support], + java=$enableval) + +OPAL_JAVA= +if test "$java" = "yes" ; then + AC_CHECK_HEADERS(jni.h, OPAL_JAVA=1) + if test "${OPAL_JAVA:-unset}" == "unset" ; then + if test "${JDK_ROOT}:-unset" != "unset" ; then + AC_CHECK_FILE(${JDK_ROOT}/include/jni.h, OPAL_JAVA=1) + if test "${OPAL_JAVA:-unset}" != "unset" ; then + STDCCFLAGS="$STDCCFLAGS -I${JDK_ROOT}/include -I${JDK_ROOT}/include/linux" + fi + fi + fi + + if test "${OPAL_JAVA:-unset}" != "unset" ; then + AC_DEFINE(OPAL_JAVA, 1, "JDK/JNI found") + fi +else + AC_MSG_NOTICE(Java JNI disabled) +fi +AC_SUBST(OPAL_JAVA) + + +dnl ######################################################################## + AC_ARG_ENABLE(plugins, [ --disable-plugins disable Plug In support], plugins=$enableval) Modified: opal/trunk/opal_inc.mak.in =================================================================== --- opal/trunk/opal_inc.mak.in 2008-08-19 03:58:03 UTC (rev 20693) +++ opal/trunk/opal_inc.mak.in 2008-08-19 04:01:57 UTC (rev 20694) @@ -57,6 +57,7 @@ HAS_LIBSRTP = @HAS_LIBSRTP@ OPAL_T38_CAP = @OPAL_T38_CAPABILITY@ OPAL_FAX = @OPAL_FAX@ +OPAL_JAVA = @OPAL_JAVA@ H323_H460 = @H323_H460@ Added: opal/trunk/src/java/OpalCallEndReason.java =================================================================== --- opal/trunk/src/java/OpalCallEndReason.java (rev 0) +++ opal/trunk/src/java/OpalCallEndReason.java 2008-08-19 04:01:57 UTC (rev 20694) @@ -0,0 +1,83 @@ +/* ---------------------------------------------------------------------------- + * 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 -I/home/robertj/opal/include; + +public final class OpalCallEndReason { + public final static OpalCallEndReason OpalCallEndedByLocalUser = new OpalCallEndReason("OpalCallEndedByLocalUser"); + public final static OpalCallEndReason OpalCallEndedByNoAccept = new OpalCallEndReason("OpalCallEndedByNoAccept"); + public final static OpalCallEndReason OpalCallEndedByAnswerDenied = new OpalCallEndReason("OpalCallEndedByAnswerDenied"); + public final static OpalCallEndReason OpalCallEndedByRemoteUser = new OpalCallEndReason("OpalCallEndedByRemoteUser"); + public final static OpalCallEndReason OpalCallEndedByRefusal = new OpalCallEndReason("OpalCallEndedByRefusal"); + public final static OpalCallEndReason OpalCallEndedByNoAnswer = new OpalCallEndReason("OpalCallEndedByNoAnswer"); + public final static OpalCallEndReason OpalCallEndedByCallerAbort = new OpalCallEndReason("OpalCallEndedByCallerAbort"); + public final static OpalCallEndReason OpalCallEndedByTransportFail = new OpalCallEndReason("OpalCallEndedByTransportFail"); + public final static OpalCallEndReason OpalCallEndedByConnectFail = new OpalCallEndReason("OpalCallEndedByConnectFail"); + public final static OpalCallEndReason OpalCallEndedByGatekeeper = new OpalCallEndReason("OpalCallEndedByGatekeeper"); + public final static OpalCallEndReason OpalCallEndedByNoUser = new OpalCallEndReason("OpalCallEndedByNoUser"); + public final static OpalCallEndReason OpalCallEndedByNoBandwidth = new OpalCallEndReason("OpalCallEndedByNoBandwidth"); + public final static OpalCallEndReason OpalCallEndedByCapabilityExchange = new OpalCallEndReason("OpalCallEndedByCapabilityExchange"); + public final static OpalCallEndReason OpalCallEndedByCallForwarded = new OpalCallEndReason("OpalCallEndedByCallForwarded"); + public final static OpalCallEndReason OpalCallEndedBySecurityDenial = new OpalCallEndReason("OpalCallEndedBySecurityDenial"); + public final static OpalCallEndReason OpalCallEndedByLocalBusy = new OpalCallEndReason("OpalCallEndedByLocalBusy"); + public final static OpalCallEndReason OpalCallEndedByLocalCongestion = new OpalCallEndReason("OpalCallEndedByLocalCongestion"); + public final static OpalCallEndReason OpalCallEndedByRemoteBusy = new OpalCallEndReason("OpalCallEndedByRemoteBusy"); + public final static OpalCallEndReason OpalCallEndedByRemoteCongestion = new OpalCallEndReason("OpalCallEndedByRemoteCongestion"); + public final static OpalCallEndReason OpalCallEndedByUnreachable = new OpalCallEndReason("OpalCallEndedByUnreachable"); + public final static OpalCallEndReason OpalCallEndedByNoEndPoint = new OpalCallEndReason("OpalCallEndedByNoEndPoint"); + public final static OpalCallEndReason OpalCallEndedByHostOffline = new OpalCallEndReason("OpalCallEndedByHostOffline"); + public final static OpalCallEndReason OpalCallEndedByTemporaryFailure = new OpalCallEndReason("OpalCallEndedByTemporaryFailure"); + public final static OpalCallEndReason OpalCallEndedByQ931Cause = new OpalCallEndReason("OpalCallEndedByQ931Cause"); + public final static OpalCallEndReason OpalCallEndedByDurationLimit = new OpalCallEndReason("OpalCallEndedByDurationLimit"); + public final static OpalCallEndReason OpalCallEndedByInvalidConferenceID = new OpalCallEndReason("OpalCallEndedByInvalidConferenceID"); + public final static OpalCallEndReason OpalCallEndedByNoDialTone = new OpalCallEndReason("OpalCallEndedByNoDialTone"); + public final static OpalCallEndReason OpalCallEndedByNoRingBackTone = new OpalCallEndReason("OpalCallEndedByNoRingBackTone"); + public final static OpalCallEndReason OpalCallEndedByOutOfService = new OpalCallEndReason("OpalCallEndedByOutOfService"); + public final static OpalCallEndReason OpalCallEndedByAcceptingCallWaiting = new OpalCallEndReason("OpalCallEndedByAcceptingCallWaiting"); + public final static OpalCallEndReason OpalCallEndedWithQ931Code = new OpalCallEndReason("OpalCallEndedWithQ931Code", exampleJNI.OpalCallEndedWithQ931Code_get()); + + public final int swigValue() { + return swigValue; + } + + public String toString() { + return swigName; + } + + public static OpalCallEndReason swigToEnum(int swigValue) { + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (int i = 0; i < swigValues.length; i++) + if (swigValues[i].swigValue == swigValue) + return swigValues[i]; + throw new IllegalArgumentException("No enum " + OpalCallEndReason.class + " with value " + swigValue); + } + + private OpalCallEndReason(String swigName) { + this.swigName = swigName; + this.swigValue = swigNext++; + } + + private OpalCallEndReason(String swigName, int swigValue) { + this.swigName = swigName; + this.swigValue = swigValue; + swigNext = swigValue+1; + } + + private OpalCallEndReason(String swigName, OpalCallEndReason swigEnum) { + this.swigName = swigName; + this.swigValue = swigEnum.swigValue; + swigNext = this.swigValue+1; + } + + private static OpalCallEndReason[] swigValues = { OpalCallEndedByLocalUser, OpalCallEndedByNoAccept, OpalCallEndedByAnswerDenied, OpalCallEndedByRemoteUser, OpalCallEndedByRefusal, OpalCallEndedByNoAnswer, OpalCallEndedByCallerAbort, OpalCallEndedByTransportFail, OpalCallEndedByConnectFail, OpalCallEndedByGatekeeper, OpalCallEndedByNoUser, OpalCallEndedByNoBandwidth, OpalCallEndedByCapabilityExchange, OpalCallEndedByCallForwarded, OpalCallEndedBySecurityDenial, OpalCallEndedByLocalBusy, OpalCallEndedByLocalCongestion, OpalCallEndedByRemoteBusy, OpalCallEndedByRemoteCongestion, OpalCallEndedByUnreachable, OpalCallEndedByNoEndPoint, OpalCallEndedByHostOffline, OpalCallEndedByTemporaryFailure, OpalCallEndedByQ931Cause, OpalCallEndedByDurationLimit, OpalCallEndedByInvalidConferenceID, OpalCallEndedByNoDialTone, OpalCallEndedByNoRingBackTone, OpalCallEndedByOutOfService, OpalCallEndedByAcceptingCallWaiting, OpalCallEndedWithQ931Code }; + private static int swigNext = 0; + private final int swigValue; + private final String swigName; +} + Property changes on: opal/trunk/src/java/OpalCallEndReason.java ___________________________________________________________________ Added: svn:eol-style + native Added: opal/trunk/src/java/OpalEchoCancelMode.java =================================================================== --- opal/trunk/src/java/OpalEchoCancelMode.java (rev 0) +++ opal/trunk/src/java/OpalEchoCancelMode.java 2008-08-19 04:01:57 UTC (rev 20694) @@ -0,0 +1,55 @@ +/* ---------------------------------------------------------------------------- + * 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 -I/home/robertj/opal/include; + +public final class OpalEchoCancelMode { + public final static OpalEchoCancelMode OpalEchoCancelNoChange = new OpalEchoCancelMode("OpalEchoCancelNoChange"); + public final static OpalEchoCancelMode OpalEchoCancelDisabled = new OpalEchoCancelMode("OpalEchoCancelDisabled"); + public final static OpalEchoCancelMode OpalEchoCancelEnabled = new OpalEchoCancelMode("OpalEchoCancelEnabled"); + + public final int swigValue() { + return swigValue; + } + + public String toString() { + return swigName; + } + + public static OpalEchoCancelMode swigToEnum(int swigValue) { + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (int i = 0; i < swigValues.length; i++) + if (swigValues[i].swigValue == swigValue) + return swigValues[i]; + throw new IllegalArgumentException("No enum " + OpalEchoCancelMode.class + " with value " + swigValue); + } + + private OpalEchoCancelMode(String swigName) { + this.swigName = swigName; + this.swigValue = swigNext++; + } + + private OpalEchoCancelMode(String swigName, int swigValue) { + this.swigName = swigName; + this.swigValue = swigValue; + swigNext = swigValue+1; + } + + private OpalEchoCancelMode(String swigName, OpalEchoCancelMode swigEnum) { + this.swigName = swigName; + this.swigValue = swigEnum.swigValue; + swigNext = this.swigValue+1; + } + + private static OpalEchoCancelMode[] swigValues = { OpalEchoCancelNoChange, OpalEchoCancelDisabled, OpalEchoCancelEnabled }; + private static int swigNext = 0; + private final int swigValue; + private final String swigName; +} + Property changes on: opal/trunk/src/java/OpalEchoCancelMode.java ___________________________________________________________________ Added: svn:eol-style + native Added: opal/trunk/src/java/OpalMediaDataType.java =================================================================== --- opal/trunk/src/java/OpalMediaDataType.java (rev 0) +++ opal/trunk/src/java/OpalMediaDataType.java 2008-08-19 04:01:57 UTC (rev 20694) @@ -0,0 +1,55 @@ +/* ---------------------------------------------------------------------------- + * 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 -I/home/robertj/opal/include; + +public final class OpalMediaDataType { + public final static OpalMediaDataType OpalMediaDataNoChange = new OpalMediaDataType("OpalMediaDataNoChange"); + public final static OpalMediaDataType OpalMediaDataPayloadOnly = new OpalMediaDataType("OpalMediaDataPayloadOnly"); + public final static OpalMediaDataType OpalMediaDataWithHeader = new OpalMediaDataType("OpalMediaDataWithHeader"); + + public final int swigValue() { + return swigValue; + } + + public String toString() { + return swigName; + } + + public static OpalMediaDataType swigToEnum(int swigValue) { + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (int i = 0; i < swigValues.length; i++) + if (swigValues[i].swigValue == swigValue) + return swigValues[i]; + throw new IllegalArgumentException("No enum " + OpalMediaDataType.class + " with value " + swigValue); + } + + private OpalMediaDataType(String swigName) { + this.swigName = swigName; + this.swigValue = swigNext++; + } + + private OpalMediaDataType(String swigName, int swigValue) { + this.swigName = swigName; + this.swigValue = swigValue; + swigNext = swigValue+1; + } + + private OpalMediaDataType(String swigName, OpalMediaDataType swigEnum) { + this.swigName = swigName; + this.swigValue = swigEnum.swigValue; + swigNext = this.swigValue+1; + } + + private static OpalMediaDataType[] swigValues = { OpalMediaDataNoChange, OpalMediaDataPayloadOnly, OpalMediaDataWithHeader }; + private static int swigNext = 0; + private final int swigValue; + private final String swigName; +} + Property changes on: opal/trunk/src/java/OpalMediaDataType.java ___________________________________________________________________ Added: svn:eol-style + native Added: opal/trunk/src/java/OpalMediaStates.java =================================================================== --- opal/trunk/src/java/OpalMediaStates.java (rev 0) +++ opal/trunk/src/java/OpalMediaStates.java 2008-08-19 04:01:57 UTC (rev 20694) @@ -0,0 +1,57 @@ +/* ---------------------------------------------------------------------------- + * 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 -I/home/robertj/opal/include; + +public final class OpalMediaStates { + public final static OpalMediaStates OpalMediaStateNoChange = new OpalMediaStates("OpalMediaStateNoChange"); + public final static OpalMediaStates OpalMediaStateOpen = new OpalMediaStates("OpalMediaStateOpen"); + public final static OpalMediaStates OpalMediaStateClose = new OpalMediaStates("OpalMediaStateClose"); + public final static OpalMediaStates OpalMediaStatePause = new OpalMediaStates("OpalMediaStatePause"); + public final static OpalMediaStates OpalMediaStateResume = new OpalMediaStates("OpalMediaStateResume"); + + public final int swigValue() { + return swigValue; + } + + public String toString() { + return swigName; + } + + public static OpalMediaStates swigToEnum(int swigValue) { + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (int i = 0; i < swigValues.length; i++) + if (swigValues[i].swigValue == swigValue) + return swigValues[i]; + throw new IllegalArgumentException("No enum " + OpalMediaStates.class + " with value " + swigValue); + } + + private OpalMediaStates(String swigName) { + this.swigName = swigName; + this.swigValue = swigNext++; + } + + private OpalMediaStates(String swigName, int swigValue) { + this.swigName = swigName; + this.swigValue = swigValue; + swigNext = swigValue+1; + } + + private OpalMediaStates(String swigName, OpalMediaStates swigEnum) { + this.swigName = swigName; + this.swigValue = swigEnum.swigValue; + swigNext = this.swigValue+1; + } + + private static OpalMediaStates[] swigValues = { OpalMediaStateNoChange, OpalMediaStateOpen, OpalMediaStateClose, OpalMediaStatePause, OpalMediaStateResume }; + private static int swigNext = 0; + private final int swigValue; + private final String swigName; +} + Property changes on: opal/trunk/src/java/OpalMediaStates.java ___________________________________________________________________ Added: svn:eol-style + native Added: opal/trunk/src/java/OpalMessage.java =================================================================== --- opal/trunk/src/java/OpalMessage.java (rev 0) +++ opal/trunk/src/java/OpalMessage.java 2008-08-19 04:01:57 UTC (rev 20694) @@ -0,0 +1,53 @@ +/* ---------------------------------------------------------------------------- + * 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 -I/home/robertj/opal/include; + +public class OpalMessage { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected OpalMessage(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(OpalMessage obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if(swigCPtr != 0 && swigCMemOwn) { + swigCMemOwn = false; + exampleJNI.delete_OpalMessage(swigCPtr); + } + swigCPtr = 0; + } + + public void setM_type(OpalMessageType value) { + exampleJNI.OpalMessage_m_type_set(swigCPtr, value.swigValue()); + } + + public OpalMessageType getM_type() { + return OpalMessageType.swigToEnum(exampleJNI.OpalMessage_m_type_get(swigCPtr)); + } + + public OpalMessage_m_param getM_param() { + long cPtr = exampleJNI.OpalMessage_m_param_get(swigCPtr); + return (cPtr == 0) ? null : new OpalMessage_m_param(cPtr, false); + } + + public OpalMessage() { + this(exampleJNI.new_OpalMessage(), true); + } + +} Property changes on: opal/trunk/src/java/OpalMessage.java ___________________________________________________________________ Added: svn:eol-style + native Added: opal/trunk/src/java/OpalMessageType.java =================================================================== --- opal/trunk/src/java/OpalMessageType.java (rev 0) +++ opal/trunk/src/java/OpalMessageType.java 2008-08-19 04:01:57 UTC (rev 20694) @@ -0,0 +1,73 @@ +/* ---------------------------------------------------------------------------- + * 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 -I/home/robertj/opal/include; + +public final class OpalMessageType { + public final static OpalMessageType OpalIndCommandError = new OpalMessageType("OpalIndCommandError"); + public final static OpalMessageType OpalCmdSetGeneralParameters = new OpalMessageType("OpalCmdSetGeneralParameters"); + public final static OpalMessageType OpalCmdSetProtocolParameters = new OpalMessageType("OpalCmdSetProtocolParameters"); + public final static OpalMessageType OpalCmdRegistration = new OpalMessageType("OpalCmdRegistration"); + public final static OpalMessageType OpalIndRegistration = new OpalMessageType("OpalIndRegistration"); + public final static OpalMessageType OpalCmdSetUpCall = new OpalMessageType("OpalCmdSetUpCall"); + public final static OpalMessageType OpalIndIncomingCall = new OpalMessageType("OpalIndIncomingCall"); + public final static OpalMessageType OpalCmdAnswerCall = new OpalMessageType("OpalCmdAnswerCall"); + public final static OpalMessageType OpalCmdClearCall = new OpalMessageType("OpalCmdClearCall"); + public final static OpalMessageType OpalIndAlerting = new OpalMessageType("OpalIndAlerting"); + public final static OpalMessageType OpalIndEstablished = new OpalMessageType("OpalIndEstablished"); + public final static OpalMessageType OpalIndUserInput = new OpalMessageType("OpalIndUserInput"); + public final static OpalMessageType OpalIndCallCleared = new OpalMessageType("OpalIndCallCleared"); + public final static OpalMessageType OpalCmdHoldCall = new OpalMessageType("OpalCmdHoldCall"); + public final static OpalMessageType OpalCmdRetrieveCall = new OpalMessageType("OpalCmdRetrieveCall"); + public final static OpalMessageType OpalCmdTransferCall = new OpalMessageType("OpalCmdTransferCall"); + public final static OpalMessageType OpalCmdUserInput = new OpalMessageType("OpalCmdUserInput"); + public final static OpalMessageType OpalIndMessageWaiting = new OpalMessageType("OpalIndMessageWaiting"); + public final static OpalMessageType OpalIndMediaStream = new OpalMessageType("OpalIndMediaStream"); + public final static OpalMessageType OpalCmdMediaStream = new OpalMessageType("OpalCmdMediaStream"); + public final static OpalMessageType OpalMessageTypeCount = new OpalMessageType("OpalMessageTypeCount"); + + public final int swigValue() { + return swigValue; + } + + public String toString() { + return swigName; + } + + public static OpalMessageType swigToEnum(int swigValue) { + if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) + return swigValues[swigValue]; + for (int i = 0; i < swigValues.length; i++) + if (swigValues[i].swigValue == swigValue) + return swigValues[i]; + throw new IllegalArgumentException("No enum " + OpalMessageType.class + " with value " + swigValue); + } + + private OpalMessageType(String swigName) { + this.swigName = swigName; + this.swigValue = swigNext++; + } + + private OpalMessageType(String swigName, int swigValue) { + this.swigName = swigName; + this.swigValue = swigValue; + swigNext = swigValue+1; + } + + private OpalMessageType(String swigName, OpalMessageType swigEnum) { + this.swigName = swigName; + this.swigValue = swigEnum.swigValue; + swigNext = this.swigValue+1; + } + + private static OpalMessageType[] swigValues = { OpalIndCommandError, OpalCmdSetGeneralParameters, OpalCmdSetProtocolParameters, OpalCmdRegistration, OpalIndRegistration, OpalCmdSetUpCall, OpalIndIncomingCall, OpalCmdAnswerCall, OpalCmdClearCall, OpalIndAlerting, OpalIndEstablished, OpalIndUserInput, OpalIndCallCleared, OpalCmdHoldCall, OpalCmdRetrieveCall, OpalCmdTransferCall, OpalCmdUserInput, OpalIndMessageWaiting, OpalIndMediaStream, OpalCmdMediaStream, OpalMessageTypeCount }; + private static int swigNext = 0; + private final int swigValue; + private final String swigName; +} + Property changes on: opal/trunk/src/java/OpalMessageType.java ___________________________________________________________________ Added: svn:eol-style + native Added: opal/trunk/src/java/OpalMessage_m_param.java =================================================================== --- opal/trunk/src/java/OpalMessage_m_param.java (rev 0) +++ opal/trunk/src/java/OpalMessage_m_param.java 2008-08-19 04:01:57 UTC (rev 20694) @@ -0,0 +1,155 @@ +/* ---------------------------------------------------------------------------- + * 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 -I/home/robertj/opal/include; + +public class OpalMessage_m_param { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected OpalMessage_m_param(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(OpalMessage_m_param obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if(swigCPtr != 0 && swigCMemOwn) { + swigCMemOwn = false; + exampleJNI.delete_OpalMessage_m_param(swigCPtr); + } + swigCPtr = 0; + } + + public void setM_commandError(String value) { + exampleJNI.OpalMessage_m_param_m_commandError_set(swigCPtr, this, value); + } + + public String getM_commandError() { + return exampleJNI.OpalMessage_m_param_m_commandError_get(swigCPtr, this); + } + + public void setM_general(OpalParamGeneral value) { + exampleJNI.OpalMessage_m_param_m_general_set(swigCPtr, this, OpalParamGeneral.getCPtr(value), value); + } + + public OpalParamGeneral getM_general() { + long cPtr = exampleJNI.OpalMessage_m_param_m_general_get(swigCPtr, this); + return (cPtr == 0) ? null : new OpalParamGeneral(cPtr, false); + } + + public void setM_protocol(OpalParamProtocol value) { + exampleJNI.OpalMessage_m_param_m_protocol_set(swigCPtr, this, OpalParamProtocol.getCPtr(value), value); + } + + public OpalParamProtocol getM_protocol() { + long cPtr = exampleJNI.OpalMessage_m_param_m_protocol_get(swigCPtr, this); + return (cPtr == 0) ? null : new OpalParamProtocol(cPtr, false); + } + + public void setM_registrationInfo(OpalParamRegistration value) { + exampleJNI.OpalMessage_m_param_m_registrationInfo_set(swigCPtr, this, OpalParamRegistration.getCPtr(value), value); + } + + public OpalParamRegistration getM_registrationInfo() { + long cPtr = exampleJNI.OpalMessage_m_param_m_registrationInfo_get(swigCPtr, this); + return (cPtr == 0) ? null : new OpalParamRegistration(cPtr, false); + } + + public void setM_registrationStatus(OpalStatusRegistration value) { + exampleJNI.OpalMessage_m_param_m_registrationStatus_set(swigCPtr, this, OpalStatusRegistration.getCPtr(value), value); + } + + public OpalStatusRegistration getM_registrationStatus() { + long cPtr = exampleJNI.OpalMessage_m_param_m_registrationStatus_get(swigCPtr, this); + return (cPtr == 0) ? null : new OpalStatusRegistration(cPtr, false); + } + + public void setM_callSetUp(OpalParamSetUpCall value) { + exampleJNI.OpalMessage_m_param_m_callSetUp_set(swigCPtr, this, OpalParamSetUpCall.getCPtr(value), value); + } + + public OpalParamSetUpCall getM_callSetUp() { + long cPtr = exampleJNI.OpalMessage_m_param_m_callSetUp_get(swigCPtr, this); + return (cPtr == 0) ? null : new OpalParamSetUpCall(cPtr, false); + } + + public void setM_callToken(String value) { + exampleJNI.OpalMessage_m_param_m_callToken_set(swigCPtr, this, value); + } + + public String getM_callToken() { + return exampleJNI.OpalMessage_m_param_m_callToken_get(swigCPtr, this); + } + + public void setM_incomingCall(OpalStatusIncomingCall value) { + exampleJNI.OpalMessage_m_param_m_incomingCall_set(swigCPtr, this, OpalStatusIncomingCall.getCPtr(value), value); + } + + public OpalStatusIncomingCall getM_incomingCall() { + long cPtr = exampleJNI.OpalMessage_m_param_m_incomingCall_get(swigCPtr, this); + return (cPtr == 0) ? null : new OpalStatusIncomingCall(cPtr, false); + } + + public void setM_userInput(OpalStatusUserInput value) { + exampleJNI.OpalMessage_m_param_m_userInput_set(swigCPtr, this, OpalStatusUserInput.getCPtr(value), value); + } + + public OpalStatusUserInput getM_userInput() { + long cPtr = exampleJNI.OpalMessage_m_param_m_userInput_get(swigCPtr, this); + return (cPtr == 0) ? null : new OpalStatusUserInput(cPtr, false); + } + + public void setM_messageWaiting(OpalStatusMessageWaiting value) { + exampleJNI.OpalMessage_m_param_m_messageWaiting_set(swigCPtr, this, OpalStatusMessageWaiting.getCPtr(value), value); + } + + public OpalStatusMessageWaiting getM_messageWaiting() { + long cPtr = exampleJNI.OpalMessage_m_param_m_messageWaiting_get(swigCPtr, this); + return (cPtr == 0) ? null : new OpalStatusMessageWaiting(cPtr, false); + } + + public void setM_callCleared(OpalStatusCallCleared value) { + exampleJNI.OpalMessage_m_param_m_callCleared_set(swigCPtr, this, OpalStatusCallCleared.getCPtr(value), value); + } + + public OpalStatusCallCleared getM_callCleared() { + long cPtr = exampleJNI.OpalMessage_m_param_m_callCleared_get(swigCPtr, this); + return (cPtr == 0) ? null : new OpalStatusCallCleared(cPtr, false); + } + + public void setM_clearCall(OpalParamCallCleared value) { + exampleJNI.OpalMessage_m_param_m_clearCall_set(swigCPtr, this, OpalParamCallCleared.getCPtr(value), value); + } + + public OpalParamCallCleared getM_clearCall() { + long cPtr = exampleJNI.OpalMessage_m_param_m_clearCall_get(swigCPtr, this); + return (cPtr == 0) ? null : new OpalParamCallCleared(cPtr, false); + } + + public void setM_mediaStream(OpalStatusMediaStream value) { + exampleJNI.OpalMessage_m_param_m_mediaStream_set(swigCPtr, this, OpalStatusMediaStream.getCPtr(value), value); + } + + public OpalStatusMediaStream getM_mediaStream() { + long cPtr = exampleJNI.OpalMessage_m_param_m_mediaStream_get(swigCPtr, this); + return (cPtr == 0) ? null : new OpalStatusMediaStream(cPtr, false); + } + + public OpalMessage_m_param() { + this(exampleJNI.new_OpalMessage_m_param(), true); + } + +} Property changes on: opal/trunk/src/java/OpalMessage_m_param.java ___________________________________________________________________ Added: svn:eol-style + native Added: opal/trunk/src/java/OpalParamCallCleared.java =================================================================== --- opal/trunk/src/java/OpalParamCallCleared.java (rev 0) +++ opal/trunk/src/java/OpalParamCallCleared.java 2008-08-19 04:01:57 UTC (rev 20694) @@ -0,0 +1,56 @@ +/* ---------------------------------------------------------------------------- + * 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 -I/home/robertj/opal/include; + +public class OpalParamCallCleared { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected OpalParamCallCleared(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(OpalParamCallCleared obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if(swigCPtr != 0 && swigCMemOwn) { + swigCMemOwn = false; + exampleJNI.delete_OpalParamCallCleared(swigCPtr); + } + swigCPtr = 0; + } + + public void setM_callToken(String value) { + exampleJNI.OpalParamCallCleared_m_callToken_set(swigCPtr, this, value); + } + + public String getM_callToken() { + return exampleJNI.OpalParamCallCleared_m_callToken_get(swigCPtr, this); + } + + public void setM_reason(OpalCallEndReason value) { + exampleJNI.OpalParamCallCleared_m_reason_set(swigCPtr, this, value.swigValue()); + } + + public OpalCallEndReason getM_reason() { + return OpalCallEndReason.swigToEnum(exampleJNI.OpalParamCallCleared_m_reason_get(swigCPtr, this)); + } + + public OpalParamCallCleared() { + this(exampleJNI.new_OpalParamCallCleared(), true); + } + +} Property changes on: opal/trunk/src/java/OpalParamCallCleared.java ___________________________________________________________________ Added: svn:eol-style + native Added: opal/trunk/src/java/OpalParamGeneral.java =================================================================== --- opal/trunk/src/java/OpalParamGeneral.java (rev 0) +++ opal/trunk/src/java/OpalParamGeneral.java 2008-08-19 04:01:57 UTC (rev 20694) @@ -0,0 +1,299 @@ +/* ---------------------------------------------------------------------------- + * 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 -I/home/robertj/opal/include; + +public class OpalParamGeneral { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected OpalParamGeneral(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(OpalParamGeneral obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if(swigCPtr != 0 && swigCMemOwn) { + swigCMemOwn = false; + exampleJNI.delete_OpalParamGeneral(swigCPtr); + } + swigCPtr = 0; + } + + public void setM_audioRecordDevice(String value) { + exampleJNI.OpalParamGeneral_m_audioRecordDevice_set(swigCPtr, this, value); + } + + public String getM_audioRecordDevice() { + return exampleJNI.OpalParamGeneral_m_audioRecordDevice_get(swigCPtr, this); + } + + public void setM_audioPlayerDevice(String value) { + exampleJNI.OpalParamGeneral_m_audioPlayerDevice_set(swigCPtr, this, value); + } + + public String getM_audioPlayerDevice() { + return exampleJNI.OpalParamGeneral_m_audioPlayerDevice_get(swigCPtr, this); + } + + public void setM_videoInputDevice(String value) { + exampleJNI.OpalParamGeneral_m_videoInputDevice_set(swigCPtr, this, value); + } + + public String getM_videoInputDevice() { + return exampleJNI.OpalParamGeneral_m_videoInputDevice_get(swigCPtr, this); + } + + public void setM_videoOutputDevice(String value) { + exampleJNI.OpalParamGeneral_m_videoOutputDevice_set(swigCPtr, this, value); + } + + public String getM_videoOutputDevice() { + return exampleJNI.OpalParamGeneral_m_videoOutputDevice_get(swigCPtr, this); + } + + public void setM_videoPreviewDevice(String value) { + exampleJNI.OpalParamGeneral_m_videoPreviewDevice_set(swigCPtr, this, value); + } + + public String getM_videoPreviewDevice() { + return exampleJNI.OpalParamGeneral_m_videoPreviewDevice_get(swigCPtr, this); + } + + public void setM_mediaOrder(String value) { + exampleJNI.OpalParamGeneral_m_mediaOrder_set(swigCPtr, this, value); + } + + public String getM_mediaOrder() { + return exampleJNI.OpalParamGeneral_m_mediaOrder_get(swigCPtr, this); + } + + public void setM_mediaMask(String value) { + exampleJNI.OpalParamGeneral_m_mediaMask_set(swigCPtr, this, value); + } + + public String getM_mediaMask() { + return exampleJNI.OpalParamGeneral_m_mediaMask_get(swigCPtr, this); + } + + public void setM_autoRxMedia(String value) { + exampleJNI.OpalParamGeneral_m_autoRxMedia_set(swigCPtr, this, value); + } + + public String getM_autoRxMedia() { + return exampleJNI.OpalParamGeneral_m_autoRxMedia_get(swigCPtr, this); + } + + public void setM_autoTxMedia(String value) { + exampleJNI.OpalParamGeneral_m_autoTxMedia_set(swigCPtr, this, value); + } + + public String getM_autoTxMedia() { + return exampleJNI.OpalParamGeneral_m_autoTxMedia_get(swigCPtr, this); + } + + public void setM_natRouter(String value) { + exampleJNI.OpalParamGeneral_m_natRouter_set(swigCPtr, this, value); + } + + public String getM_natRouter() { + return exampleJNI.OpalParamGeneral_m_natRouter_get(swigCPtr, this); + } + + public void setM_stunServer(String value) { + exampleJNI.OpalParamGeneral_m_stunServer_set(swigCPtr, this, value); + } + + public String getM_stunServer() { + return exampleJNI.OpalParamGeneral_m_stunServer_get(swigCPtr, this); + } + + public void setM_tcpPortBase(long value) { + exampleJNI.OpalParamGeneral_m_tcpPortBase_set(swigCPtr, this, value); + } + + public long getM_tcpPortBase() { + return exampleJNI.OpalParamGeneral_m_tcpPortBase_get(swigCPtr, this); + } + + public void setM_tcpPortMax(long value) { + exampleJNI.OpalParamGeneral_m_tcpPortMax_set(swigCPtr, this, value); + } + + public long getM_tcpPortMax() { + return exampleJNI.OpalParamGeneral_m_tcpPortMax_get(swigCPtr, this); + } + + public void setM_udpPortBase(long value) { + exampleJNI.OpalParamGeneral_m_udpPortBase_set(swigCPtr, this, value); + } + + public long getM_udpPortBase() { + return exampleJNI.OpalParamGeneral_m_udpPortBase_get(swigCPtr, this); + } + + public void setM_udpPortMax(long value) { + exampleJNI.OpalParamGeneral_m_udpPortMax_set(swigCPtr, this, value); + } + + public long getM_udpPortMax() { + return exampleJNI.OpalParamGeneral_m_udpPortMax_get(swigCPtr, this); + } + + public void setM_rtpPortBase(long value) { + exampleJNI.OpalParamGeneral_m_rtpPortBase_set(swigCPtr, this, value); + } + + public long getM_rtpPortBase() { + return exampleJNI.OpalParamGeneral_m_rtpPortBase_get(swigCPtr, this); + } + + public void setM_rtpPortMax(long value) { + exampleJNI.OpalParamGeneral_m_rtpPortMax_set(swigCPtr, this, value); + } + + public long getM_rtpPortMax() { + return exampleJNI.OpalParamGeneral_m_rtpPortMax_get(swigCPtr, this); + } + + public void setM_rtpTypeOfService(long value) { + exampleJNI.OpalParamGeneral_m_rtpTypeOfService_set(swigCPtr, this, value); + } + + public long getM_rtpTypeOfService() { + return exampleJNI.OpalParamGeneral_m_rtpTypeOfService_get(swigCPtr, this); + } + + public void setM_rtpMaxPayloadSize(long value) { + exampleJNI.OpalParamGeneral_m_rtpMaxPayloadSize_set(swigCPtr, this, value); + } + + public long getM_rtpMaxPayloadSize() { + return exampleJNI.OpalParamGeneral_m_rtpMaxPayloadSize_get(swigCPtr, this); + } + + public void setM_minAudioJitter(long value) { + exampleJNI.OpalParamGeneral_m_minAudioJitter_set(swigCPtr, this, value); + } + + public long getM_minAudioJitter() { + return exampleJNI.OpalParamGeneral_m_minAudioJitter_get(swigCPtr, this); + } + + public void setM_maxAudioJitter(long value) { + exampleJNI.OpalParamGeneral_m_maxAudioJitter_set(swigCPtr, this, value); + } + + public long getM_maxAudioJitter() { + return exampleJNI.OpalParamGeneral_m_maxAudioJitter_get(swigCPtr, this); + } + + public void setM_silenceDetectMode(OpalSilenceDetectModes value) { + exampleJNI.OpalParamGeneral_m_silenceDetectMode_set(swigCPtr, this, value.swigValue()); + } + + public OpalSilenceDetectModes getM_silenceDetectMode() { + return OpalSilenceDetectModes.swigToEnum(exampleJNI.OpalParamGeneral_m_silenceDetectMode_get(swigCPtr, this)); + } + + public void setM_silenceThreshold(long value) { + exampleJNI.OpalParamGeneral_m_silenceThreshold_set(swigCPtr, this, value); + } + + public long getM_silenceThreshold() { + return exampleJNI.OpalParamGeneral_m_silenceThreshold_get(swigCPtr, this); + } + + public void setM_signalDeadband(long value) { + exampleJNI.OpalParamGeneral_m_signalDeadband_set(swigCPtr, this, value); + } + + public long getM_signalDeadband() { + return exampleJNI.OpalParamGeneral_m_signalDeadband_get(swigCPtr, this); + } + + public void setM_silenceDeadband(long value) { + exampleJNI.OpalParamGeneral_m_silenceDeadband_set(swigCPtr, this, value); + } + + public long getM_silenceDeadband() { + return exampleJNI.OpalParamGeneral_m_silenceDeadband_get(swigCPtr, this); + } + + public void setM_silenceAdaptPeriod(long value) { + exampleJNI.OpalParamGeneral_m_silenceAdaptPeriod_set(swigCPtr, this, value); + } + + public long getM_silenceAdaptPeriod() { + return exampleJNI.OpalParamGeneral_m_silenceAdaptPeriod_get(swigCPtr, this); + } + + public void setM_echoCancellation(OpalEchoCancelMode value) { + exampleJNI.OpalParamGeneral_m_echoCancellation_set(swigCPtr, this, value.swigValue()); + } + + public OpalEchoCancelMode getM_echoCancellation() { + return OpalEchoCancelMode.swigToEnum(exampleJNI.OpalParamGeneral_m_echoCancellation_get(swigCPtr, this)); + } + + public void setM_audioBuffers(long value) { + exampleJNI.OpalParamGeneral_m_audioBuffers_set(swigCPtr, this, value); + } + + public long getM_audioBuffers() { + return exampleJNI.OpalParamGeneral_m_audioBuffers_get(swigCPtr, this); + } + + public void setM_mediaReadData(SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_void_int__int value) { + exampleJNI.OpalParamGeneral_m_mediaReadData_set(swigCPtr, this, SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_void_int__int.getCPtr(value)); + } + + public SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_void_int__int getM_mediaReadData() { + long cPtr = exampleJNI.OpalParamGeneral_m_mediaReadData_get(swigCPtr, this); + return (cPtr == 0) ? null : new SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_void_int__int(cPtr, false); + } + + public void setM_mediaWriteData(SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_void_int__int value) { + exampleJNI.OpalParamGeneral_m_mediaWriteData_set(swigCPtr, this, SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_void_int__int.getCPtr(value)); + } + + public SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_void_int__int getM_mediaWriteData() { + long cPtr = exampleJNI.OpalParamGeneral_m_mediaWriteData_get(swigCPtr, this); + return (cPtr == 0) ? null : new SWIGTYPE_p_f_p_q_const__char_p_q_const__char_p_q_const__char_p_void_int__int(cPtr, false); + } + + public void setM_mediaDataHeader(OpalMediaDataType value) { + exampleJNI.OpalParamGeneral_m_mediaDataHeader_set(swigCPtr, this, value.swigValue()); + } + + public OpalMediaDataType getM_mediaDataHeader() { + return OpalMediaDataType.swigToEnum(exampleJNI.OpalParamGeneral_m_mediaDataHeader_get(swigCPtr, this)); + } + + public void setM_messageAvailable(SWIGTYPE_p_f_p_q_const__struct_OpalMessage__int value) { + exampleJNI.OpalParamGeneral_m_messageAvailable_set(swigCPtr, this, SWIGTYPE_p_f_p_q_const__struct_OpalMessage__int.getCPtr(value)); + } + + public SWIGTYPE_p_f_p_q_const__struct_OpalMessage__int getM_messageAvailable() { + long cPtr = exampleJNI.OpalParamGeneral_m_messageAvailable_get(swigCPtr, this); + return (cPtr == 0) ? null : new SWIGTYPE_p_f_p_q_const__struct_OpalMessage__int(cPtr, false); + } + + public OpalParamGeneral() { + this(exampleJNI.new_OpalParamGeneral(), true); + } + +} Property changes on: opal/trunk/src/java/OpalParamGeneral.java ___________________________________________________________________ Added: svn:eol-style + native Added: opal/trunk/src/java/OpalParamProtocol.java =================================================================== --- opal/trunk/src/java/OpalParamProtocol.java (rev 0) +++ opal/trunk/src/java/OpalParamProtocol.java 2008-08-19 04:01:57 UTC (rev 20694) @@ -0,0 +1,120 @@ +/* ---------------------------------------------------------------------------- + * 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 -I/home/robertj/opal/include; + +public class OpalParamProtocol { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected OpalParamProtocol(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(OpalParamProtocol obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if(swigCPtr != 0 && swigCMemOwn) { + swigCMemOwn = false; + exampleJNI.delete_OpalParamProtocol(swigCPtr); + } + swigCPtr = 0; + } + + public void setM_prefix(String value) { + exampleJNI.OpalParamProtocol_m_prefix_set(swigCPtr, this, value); + } + + public String getM_prefix() { + return exampleJNI.OpalParamProtocol_m_prefix_get(swigCPtr, this); + } + + public void setM_userName(String value) { + exampleJNI.OpalParamProtocol_m_userName_set(swigCPtr, this, value); + } + + public String getM_userName() { + return exampleJNI.OpalParamProtocol_m_userName_get(swigCPtr, this); + } + + public void setM_displayName(String value) { + exampleJNI.OpalParamProtocol_m_displayName_set(swigCPtr, this, value); + } + + public String getM_displayName() { + return exampleJNI.OpalParamProtocol_m_displayName_get(swigCPtr, this); + } + + public void setM_vendor(String value) { + exampleJNI.OpalParamProtocol_m_vendor_set(swigCPtr, this, value); + } + + public String getM_vendor() { + return exampleJNI.OpalParamProtocol_m_vendor_get(swigCPtr, this); + } + + public void setM_name(String value) { + exampleJNI.OpalParamProtocol_m_name_set(swigCPtr, this, value); + } + + public String getM_name() { + return exampleJNI.OpalParamProtocol_m_name_get(swigCPtr, this); + } + + public void setM_version(String value) { + exampleJNI.OpalParamProtocol_m_version_set(swigCPtr, this, value); + } + + public String getM_version() { + return exampleJNI.OpalParamProtocol_m_version_get(swigCPtr, this); + } + + public void setM_t35CountryCode(long value) { + exampleJNI.OpalParamProtocol_m_t35CountryCode_set(swigCPtr, this, value); + } + + public long getM_t35CountryCode() { + return exampleJNI.OpalParamProtocol_m_t35CountryCode_get(swigCPtr, this); + } + + public void setM_t35Extension(long value) { + exampleJNI.OpalParamProtocol_m_t35Extension_set(swigCPtr, this, value); + } + + public long getM_t35Extension() { + return exampleJNI.OpalParamProtocol_m_t35Extension_get(swigCPtr, this); + } + + public void setM_manufacturerCode(long value) { + exampleJNI.OpalParamProtocol_m_manufacturerCode_set(swigCPtr, this, value); + } + + public long getM_manufacturerCode() { + return exampleJNI.OpalParamProtocol_m_manufacturerCode_get(swigCPtr, this); + } + + public void setM_interfaceAddresses(String value) { + exampleJNI.OpalParamProtocol_m_interfaceAddresses_set(swigCPtr, this, value); + } + + public String getM_interfaceAddresses() { + return exampleJNI.OpalParamProtocol_m_interfaceAddresses_get(swigCPtr, this); + } + + public OpalParamProtocol() { + this(exampleJNI.new_OpalParamProtocol(), true); + } + +} Property changes on: opal/trunk/src/java/OpalParamProtocol.java ___________________________________________________________________ Added: svn:eol-style + native Added: opal/trunk/src/java/OpalParamRegistration.java =================================================================== --- opal/trunk/src/java/OpalParamRegistration.java (rev 0) +++ opal/trunk/src/java/OpalParamRegistration.java 2008-08-19 04:01:57 UTC (rev 20694) @@ -0,0 +1,112 @@ +/* ---------------------------------------------------------------------------- + * 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 -I/home/robertj/opal/include; + +public class OpalParamRegistration { + private long swigCPtr; + protected boolean swigCMemOwn; + + protected OpalParamRegistration(long cPtr, boolean cMemoryOwn) { + swigCMemOwn = cMemoryOwn; + swigCPtr = cPtr; + } + + protected static long getCPtr(OpalParamRegistration obj) { + return (obj == null) ? 0 : obj.swigCPtr; + } + + protected void finalize() { + delete(); + } + + public synchronized void delete() { + if(swigCPtr != 0 && swigCMemOwn) { + swigCMemOwn = false; + exampleJNI.delete_OpalParamRegistration(swigCPtr); + } + swigCPtr = 0; + } + + public void setM_protocol(String value) { + exampleJNI.OpalParamRegistration_m_protocol_set(swigCPtr, this, value); + } + + public String getM_protocol() { + return exampleJNI.OpalParamRegistration_m_protocol_get(swigCPtr, this); + } + + public void setM_identifier(String value) { + exampleJNI.OpalParamRegistration_m_identifier_set(swigCPtr, this, value); + } + + public String getM_identifier() { + return exampleJNI.OpalParamRegistration_m_identifier_get(swigCPtr, this); + } + + public void setM_hostName(String value) { + exampleJNI.OpalParamRegistration_m_hostName_set(swigCPtr, this, value); + } + + public String getM_hostName() { + return exampleJNI.OpalParamRegistration_m_hostName_get(swigCPtr, this); + } + + public void setM_authUserName(String value) { + exampleJNI.OpalParamRegistration_m_authUserName_set(swigCPtr, this, value); + } + + public String getM_authUserName() { + return exampleJNI.OpalParamRegistration_m_authUserName_get(swigCPtr, this); + } + + public void setM_password(String value) { + exampleJNI.OpalParamRegistration_m_password_set(swigCPtr, this, value); + } + + public String getM_password() { + return exampleJNI.OpalParamRegistration_m_password_get(swigCPtr, t... [truncated message content] |