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

zebra_image_data_handler_t* zebra_image_scanner_set_data_handler ( zebra_image_scanner_t scanner,
zebra_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 267 of file img_scanner.c.

References zebra_image_scanner_set_data_handler().

Referenced by zebra::ImageScanner::set_handler(), and zebra_image_scanner_set_data_handler().

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


Generated by  Doxygen 1.6.0   Back to index