search for: jobject

Displaying 20 results from an estimated 22 matches for "jobject".

Did you mean: object
2010 Nov 21
1
reference classes: question on inheritance
...;t result in collation issues (virtual def sourced before superclass def sourced before subclass). Yet, this results in the following error: Warnmeldung: unable to find a consistent ordering of superclasses for class "Shabubu": order chosen is inconsistent with the superclasses of "JObject" ###### CLASS DEFS ##### setClass("JObjectVirtual") setRefClass( Class="JObject", fields=list( # GENERIC FIELDS (DON'T CHANGE !!!) .BUFFER="environment", .GENESIS="environment", .HISTORY="environment", .IMAGES="environment...
2011 Feb 07
1
rjava does not install
...irst use in this function) Rglue.c:79: error: (Each undeclared identifier is reported only once Rglue.c:79: error: for each function it appears in.) Rglue.c:79: error: ?env? undeclared (first use in this function) Rglue.c:79: warning: implicit declaration of function ?getJNIEnv? Rglue.c:80: error: ?jobject? undeclared (first use in this function) Rglue.c:80: error: expected ?;? before ?o? Rglue.c:95: error: ?o? undeclared (first use in this function) Rglue.c:98: warning: implicit declaration of function ?releaseGlobal? Rglue.c: At top level: Rglue.c:104: error: expected ?)? before ?*? token Rglue.c:...
2012 Mar 14
0
Audio file is corrupted after decoding
...is near. But i am not able to play the decoded audio file, the mediaplayer says that the file has been corrupted. ENCODING: #include <jni.h> #include <stdio.h> #include "speex/speex.h" #define FRAME_SIZE 320 void Java_com_m2_iSmartDm_ISmartDMActivity_spxEnc(JNIEnv * env, jobject jobj,jstring dir1,jstring dir2) { const char *inFile= (*env)->GetStringUTFChars(env,dir1,0); const char *outFile= (*env)->GetStringUTFChars(env,dir2,0); FILE *fin; FILE *fout; short in[FRAME_SIZE]; float input[FRAME_SIZE]; char cbits[360]; int nbBytes; void *state; Spee...
2009 Jul 15
2
rJava fails compilation on R-2.9.1 but not R-2.7.1 on Debian Lenny
...irst use in this function) Rglue.c:79: error: (Each undeclared identifier is reported only once Rglue.c:79: error: for each function it appears in.) Rglue.c:79: error: ?env? undeclared (first use in this function) Rglue.c:79: warning: implicit declaration of function ?getJNIEnv? Rglue.c:80: error: ?jobject? undeclared (first use in this function) Rglue.c:80: error: expected ?;? before ?o? Rglue.c:95: error: ?o? undeclared (first use in this function) Rglue.c:98: warning: implicit declaration of function ?releaseGlobal? Rglue.c: At top level: Rglue.c:104: error: expected ?)? before ?*? token Rglue.c:...
2017 Mar 06
7
[PATCH 0/6] Various Coverity fixes #2
Hi, this patch series fixes few more issues discovered by Coverity. Thanks, Pino Toscano (6): tail: check the return value pf guestfs_set_pgroup daemon: btrfs: check end_stringsbuf return values everywhere java: use cleanup handlers for structs (lists) as return values lib: qemu: improve handling of FILE* p2v: check more return values p2v: fix possible close(-1) issue cat/tail.c
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.
2012 Mar 07
1
Error while decoding the audio file.
I have successfully encoded a wav file in android using speex(ndk). But when i try to decode it back, the file size keep on increasing to a very large size. The recorded audio file consists of sample rate - 8000 , 16 BIT, MONO. Why the decoder gives such a large size wav file? -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Oct 12
0
Jmeeting & Wine .22
...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 - or is it just that function that's not implemented? Anyone planning on anymore avicap work? Rick
2008 Dec 15
1
WineLib and Java Native Interface (JNI) - UNIX
...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(jEvn, sText); return retmess; } Crashed at: HELLOIMPL_global...
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 testR(){ Rcpp::NumericVector vec(1);...
2000 Dec 13
2
ov_clear segfaults?
...lt;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( ov_open(fp, &vf, NULL, 0) < 0 ) { fprintf(stderr,"File does not appea...
2017 Mar 03
5
[PATCH v2 0/4] Avoid 0-bytes malloc in bindings
Hi, some of the bindings may try to malloc with 0 bytes as size when closing an handle, because there were no event handlers registered. Since this can have different behaviours in POSIX, avoid that situation altogether by just skipping allocating anything when there were no event handlers. Thanks, Pino Toscano (4): ocaml: do not try to malloc 0 elements in get_all_event_callbacks python:
2012 Aug 14
7
[PATCH 0/7] Add tar compress, numericowner, excludes flags.
https://bugzilla.redhat.com/show_bug.cgi?id=847880 https://bugzilla.redhat.com/show_bug.cgi?id=847881 This patch series adds various optional arguments to the tar-in and tar-out commands. Firstly (1/7) an optional "compress" flag is added to select compression. This makes the calls tgz-in/tgz-out/txz-in/txz-out deprecated, and expands the range of compression types available.
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...public float %s;\n" name ) cols; pr "}\n" @@ -8210,9 +8210,9 @@ Java_com_redhat_et_libguestfs_GuestFS__1close | RConstString _ | RConstOptString _ | RString _ | RBufferOut _ -> pr "jstring "; | RStruct _ | RHashtable _ -> - pr "jobject "; + pr "jobject "; | RStringList _ | RStructList _ -> - pr "jobjectArray "; + pr "jobjectArray "; ); pr "JNICALL\n"; pr "Java_com_redhat_et_libguestfs_GuestFS_"; @@ -8220,107 +8220,107 @@...
2015 Oct 20
3
[PATCH 1/2] generator: add a RelativePathnameList parameter type
...callbacks (guestfs_h *g, size_t *len_rtn) pr ", jstring j%s" n | BufferIn n -> pr ", jbyteArray j%s" n - | StringList n | DeviceList n -> + | StringList n | DeviceList n | RelativePathnameList n -> pr ", jobjectArray j%s" n | Bool n -> pr ", jboolean j%s" n @@ -917,7 +917,7 @@ get_all_event_callbacks (guestfs_h *g, size_t *len_rtn) | BufferIn n -> pr " char *%s;\n" n; pr " size_t %s_size;\n" n - | Str...
2015 Oct 21
2
[PATCH 1/2] generator: add a FilenameList parameter type
...l_event_callbacks (guestfs_h *g, size_t *len_rtn) pr ", jstring j%s" n | BufferIn n -> pr ", jbyteArray j%s" n - | StringList n | DeviceList n -> + | StringList n | DeviceList n | FilenameList n -> pr ", jobjectArray j%s" n | Bool n -> pr ", jboolean j%s" n @@ -917,7 +917,7 @@ get_all_event_callbacks (guestfs_h *g, size_t *len_rtn) | BufferIn n -> pr " char *%s;\n" n; pr " size_t %s_size;\n" n - | Str...
2009 Aug 17
13
total warning-removal for daemon/
The warnings in daemon were aggravating and risky for development (too easy to miss new ones) so I spent some time last week and today working on removing them. The first patch gets us down to almost no warnings with the original -Wall setting. That was by far the hardest part. Once I'd done that, I enabled nearly all of gcc's warnings via gnulib's warnings and manywarnings modules
2016 Dec 08
4
[PATCH] generator: Share Common_utils code.
...t;JNICALL\n"; pr "Java_com_redhat_et_libguestfs_GuestFS_"; - pr "%s" (replace_str ("_" ^ name) "_" "_1"); + pr "%s" (String.replace ("_" ^ name) "_" "_1"); pr " (JNIEnv *env, jobject obj, jlong jg"; List.iter ( function diff --git a/generator/lua.ml b/generator/lua.ml index d3b0b27..e48bb3e 100644 --- a/generator/lua.ml +++ b/generator/lua.ml @@ -20,6 +20,7 @@ open Printf +open Common_utils open Types open Utils open Pr @@ -529,7 +530,7 @@ guestfs_i...
2009 Aug 12
23
[PATCH 0/23] factor and const-correctness
This started as a simple warning-elimination change. I'll get back to that series shortly ;-) It turned into a factorization and constification exercise during which I got a taste of ocaml. Thanks to Rich Jones for help with a few snippets in generator.ml. The overall result is that many previously-manually-maintained bits from daemon/*.c functions are now hoisted into the automatically-
2017 Apr 21
0
[PATCH 1/2] generator: Simplify the handling of string parameters.
...- | StringList n | DeviceList n | FilenameList n -> + | StringList (_, n) -> pr "String[] %s" n | Bool n -> pr "boolean %s" n @@ -641,18 +635,12 @@ throw_out_of_memory (JNIEnv *env, const char *msg) pr " (JNIEnv *env, jobject obj, jlong jg"; List.iter ( function - | Pathname n - | Device n | Mountable n | Dev_or_Path n | Mountable_or_Path n - | String n - | OptString n - | FileIn n - | FileOut n - | Key n - | GUID n -> + | String (_,...