Logo Search packages:      
Sourcecode: zbar version File versions  Download package

zbar_image_data_handler_t* zbar_processor_set_data_handler ( zbar_processor_t processor,
zbar_image_data_handler_t handler,
const void *  userdata 

setup result handler callback. the specified function will be called by the processor whenever new results are available from the video stream or a static image. pass a NULL value to disable callbacks.

processor the object on which to set the handler.
handler the function to call when new results are available.
userdata is set as with zbar_processor_set_userdata().
the previously registered handler

Definition at line 433 of file processor.c.

References zbar_processor_set_data_handler().

Referenced by zbar::Processor::set_handler(), and zbar_processor_set_data_handler().

    zbar_image_data_handler_t *result = NULL;

    result = proc->handler;
    proc->handler = handler;
    proc->userdata = userdata;


Generated by  Doxygen 1.6.0   Back to index