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

zbar_image_data_handler_t* zbar_image_scanner_set_data_handler ( zbar_image_scanner_t scanner,
zbar_image_data_handler_t handler,
const void *  userdata 
)

setup result handler callback. the specified function will be called by the scanner whenever new results are available from a decoded image. pass a NULL value to disable callbacks.

Returns:
the previously registered handler

Definition at line 524 of file img_scanner.c.

References zbar_image_scanner_set_data_handler().

Referenced by zbar::ImageScanner::set_handler(), and zbar_image_scanner_set_data_handler().

{
    zbar_image_data_handler_t *result = iscn->handler;
    iscn->handler = handler;
    iscn->userdata = userdata;
    return(result);
}


Generated by  Doxygen 1.6.0   Back to index