mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 04:31:50 +00:00
add api.getTime()
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12149 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -45,4 +45,8 @@ public class API {
|
||||
return freeswitchJNI.API_executeString(swigCPtr, this, command);
|
||||
}
|
||||
|
||||
public String getTime() {
|
||||
return freeswitchJNI.API_getTime(swigCPtr, this);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ class freeswitchJNI {
|
||||
public final static native void delete_API(long jarg1);
|
||||
public final static native String API_execute(long jarg1, API jarg1_, String jarg2, String jarg3);
|
||||
public final static native String API_executeString(long jarg1, API jarg1_, String jarg2);
|
||||
public final static native String API_getTime(long jarg1, API jarg1_);
|
||||
public final static native void input_callback_state_t_function_set(long jarg1, input_callback_state_t jarg1_, long jarg2);
|
||||
public final static native long input_callback_state_t_function_get(long jarg1, input_callback_state_t jarg1_);
|
||||
public final static native void input_callback_state_t_threadState_set(long jarg1, input_callback_state_t jarg1_, long jarg2);
|
||||
|
||||
@@ -458,6 +458,21 @@ SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1executeSt
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT jstring JNICALL Java_org_freeswitch_swig_freeswitchJNI_API_1getTime(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_) {
|
||||
jstring jresult = 0 ;
|
||||
API *arg1 = (API *) 0 ;
|
||||
char *result = 0 ;
|
||||
|
||||
(void)jenv;
|
||||
(void)jcls;
|
||||
(void)jarg1_;
|
||||
arg1 = *(API **)&jarg1;
|
||||
result = (char *)(arg1)->getTime();
|
||||
if(result) jresult = jenv->NewStringUTF((const char *)result);
|
||||
return jresult;
|
||||
}
|
||||
|
||||
|
||||
SWIGEXPORT void JNICALL Java_org_freeswitch_swig_freeswitchJNI_input_1callback_1state_1t_1function_1set(JNIEnv *jenv, jclass jcls, jlong jarg1, jobject jarg1_, jlong jarg2) {
|
||||
input_callback_state_t *arg1 = (input_callback_state_t *) 0 ;
|
||||
void *arg2 = (void *) 0 ;
|
||||
|
||||
Reference in New Issue
Block a user