X-Git-Url: http://git.maemo.org/git/?p=opencv;a=blobdiff_plain;f=interfaces%2Fch%2Fc%2Fhandmade%2Fcvcam%2FcvcamSetProperty_chdl.c;fp=interfaces%2Fch%2Fc%2Fhandmade%2Fcvcam%2FcvcamSetProperty_chdl.c;h=0000000000000000000000000000000000000000;hp=28dab346c51915460e7e91c87b51e27799dc53fc;hb=e4c14cdbdf2fe805e79cd96ded236f57e7b89060;hpb=454138ff8a20f6edb9b65a910101403d8b520643;ds=sidebyside diff --git a/interfaces/ch/c/handmade/cvcam/cvcamSetProperty_chdl.c b/interfaces/ch/c/handmade/cvcam/cvcamSetProperty_chdl.c deleted file mode 100644 index 28dab34..0000000 --- a/interfaces/ch/c/handmade/cvcam/cvcamSetProperty_chdl.c +++ /dev/null @@ -1,45 +0,0 @@ -/* Copyright (c) 2001-2002 by SoftIntegration, Inc. All Rights Reserved */ -#include -#include -#include -#include - -typedef void (*callback)(void *); -static ChInterp_t interp; -static void cvcamSetProperty_chdl_funarg(void* arg); -static void *cvcamSetProperty_chdl_funptr; - -EXPORTCH int cvcamSetProperty_chdl(void *varg) { - va_list ap; - int camera; - const char* property; - void* value; - callback callback_ch, callback_c; - int retval; - - Ch_VaStart(interp, ap, varg); - camera = Ch_VaArg(interp, ap, int); - property = Ch_VaArg(interp, ap, const char*); - - if ( (strcmp(property, CVCAM_PROP_CALLBACK) == 0) || (strcmp(property, CVCAM_STEREO_CALLBACK) == 0) ) - { - callback_ch = Ch_VaArg(interp, ap, callback); - cvcamSetProperty_chdl_funptr = (void *)callback_ch; - if (callback_ch != NULL) { - callback_c = (callback) cvcamSetProperty_chdl_funarg; - } - retval = cvcamSetProperty(camera, property, callback_c); - } - else - { - value = Ch_VaArg(interp, ap, void*); - retval = cvcamSetProperty(camera, property, value); - } - - Ch_VaEnd(interp, ap); - return retval; -} - -static void cvcamSetProperty_chdl_funarg(void* arg) { - Ch_CallFuncByAddr(interp,cvcamSetProperty_chdl_funptr,NULL,arg); -}