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

int zbar_video_request_interface ( zbar_video_t video,
int  version 
)

request a preferred driver interface version for debug/testing.

Note:
must be called before zbar_video_open()
Since:
0.6

Definition at line 189 of file video.c.

References ZBAR_ERR_INVALID, and zbar_video_request_interface().

Referenced by zbar::Video::request_interface(), zbar_processor_init(), and zbar_video_request_interface().

{
    if(vdo->intf != VIDEO_INVALID)
        return(err_capture(vdo, SEV_ERROR, ZBAR_ERR_INVALID, __func__,
                         "device already opened, unable to change interface"));
    vdo->intf = (video_interface_t)ver;
    zprintf(1, "request interface version %d\n", vdo->intf);
    return(0);
}


Generated by  Doxygen 1.6.0   Back to index