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.

Parameters:
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().
Returns:
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;
    proc_enter(proc);

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

    proc_leave(proc);
    return(result);
}


Generated by  Doxygen 1.6.0   Back to index