search for: jniexport

Displaying 8 results from an estimated 8 matches for "jniexport".

2008 May 29
0
Again, teach me speex AEC please!
...omeone has already made AEC to work?! But beware, this will be used in my Voip program, so it should be async by nature. /** * com_peterhi_Speex.h */ #include <jni.h> #ifndef _Included_com_peterhi_Speex #define _Included_com_peterhi_Speex #ifdef __cplusplus extern "C" { #endif JNIEXPORT jint JNICALL Java_com_peterhi_Speex_encoder__(JNIEnv *, jclass); JNIEXPORT jint JNICALL Java_com_peterhi_Speex_decoder__(JNIEnv *, jclass); JNIEXPORT void JNICALL Java_com_peterhi_Speex_encoder__I(JNIEnv *, jclass, jint); JNIEXPORT void JNICALL Java_com_peterhi_Speex_decoder__I(JNIEnv *, jclass, ji...
2006 Oct 12
0
Jmeeting & Wine .22
...e:imm:ImmSetConversionStatus (0x1dd208, 1, 0): stub fixme:imm:ImmGetDefaultIMEWnd (0x2003e - 0x1002c 0xb41e748 ): semi-stub fixme:avicap:capCreateCaptureWindowW L"VfwCamDetect", 50000000, 00000000, 00000000, 00000140, 000000f0, 0x10040, 00022100 VFW Driver +Could not create capture window JNIEXPORT void JNICALL Java_com_jsyntax_directshow_CaptureDeviceManager_detect0(JNIEnv * pEnv, jclass jCaptureDeviceManagerClass, jobject jDevicesList) fixme:imm:ImmGetOpenStatus (0xb491f40): semi-stub There are more similar errors, but that's the jist of it. I'm sure avicap had been attended to -...
2008 Dec 15
1
WineLib and Java Native Interface (JNI) - UNIX
...Impl.spec -o libhelloimpl.so HelloImpl_main.c -shared -fpic -I/usr/java/jdk1.5.0_12/include -I/usr/java/jdk1.5.0_12/include/linux 3. From JAVA call to load so lib (I can load and link to the function) 4.Load so and call the function It can call BUT it will have crashed at the wine lib functions. JNIEXPORT jstring JNICALL Java_HelloImpl_sayHello (JNIEnv *jEvn, jobject jObj){ printf("sayHello [BEGIN]\n"); char sText[255]; HELLOIMPL_global_sayHello_2(sText); printf("sayHello [END CALL]\n"); jstring retmess; retmess = (*jEvn)->NewStringUTF(j...
2013 Jan 04
1
Integrating Java, C++ and R
Hi, I am able to integrate C++ and R through RInside library. However when I use a jni call as my UI is through java it crashes at C++ side. My files are ------------------------------------------------ JNICallingClass.C: JNIEXPORT void JNICALL Java_CallR_run (JNIEnv* env, jobject callr){ std::cout << "Inside JNICALL" << std::endl; testR(); std::cout << "ENd of JNICALL" << std::endl; } ------------------------------------------------- CppCall2R.C void...
2000 Dec 13
2
ov_clear segfaults?
...f]: #include <jni.h> #include "com_vorbis_ogg_HelloWorld.h" #include <stdio.h> #include <stdlib.h> #include <math.h> #include "vorbis/codec.h" #include "vorbis/vorbisfile.h" #ifdef _WIN32 #include <io.h> #include <fcntl.h> #endif JNIEXPORT void JNICALL Java_com_vorbis_ogg_HelloWorld_displayHelloWorld (JNIEnv *env, jobject obj) { OggVorbis_File vf; FILE *fp; char **ptr; vorbis_info *vi; fp = fopen("test.ogg", "r"); if (!fp) { fprintf(stderr, "File not found.\n"); return; } if(...
2016 Feb 05
7
[PATCH 0/7] lib: Stop exporting the safe_malloc, etc. functions.
The safe_malloc (etc) functions call g->abort_fn on failure. That's not appropriate for language bindings, and we never intended that these internal functions be used from language bindings, that was just a historical accident. This patch series removes any external use of the safe_* functions. Rich.
2017 Oct 04
0
[PATCH 2/9] ocaml: Replace pattern matching { field = field } with { field }.
...@ -614,7 +614,7 @@ throw_out_of_memory (JNIEnv *env, const char *msg) "; List.iter ( - fun { name = name; style = (ret, args, optargs as style); + fun { name; style = (ret, args, optargs as style); c_function = c_function } -> pr "\n"; pr "JNIEXPORT "; diff --git a/generator/lua.ml b/generator/lua.ml index c47938c8a..f544ce07a 100644 --- a/generator/lua.ml +++ b/generator/lua.ml @@ -431,8 +431,8 @@ guestfs_int_lua_delete_event_callback (lua_State *L) (* Actions. *) List.iter ( - fun { name = name; style = (ret, args, optargs as...
2017 Oct 04
11
[PATCH 0/9] build: Require OCaml >= 4.02.
Per my previous email: https://www.redhat.com/archives/libguestfs/2017-September/msg00203.html I'd like to talk about requiring a more modern version of the OCaml compiler. These commits show some of the code changes which would be possible with OCaml >= 3.12 [which it turns out we already require by accident] and also with OCaml >= 4.02. The latter is my favoured option. Rich.