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

static int zbar_image_scanner_parse_config ( zbar_image_scanner_t scanner,
const char *  config_string 
) [inline, static]

parse configuration string using zbar_parse_config() and apply to image scanner using zbar_image_scanner_set_config().

Returns:
0 for success, non-0 for failure
See also:
zbar_parse_config()

zbar_image_scanner_set_config()

Since:
0.4

Definition at line 1050 of file zbar.h.

References zbar_image_scanner_set_config(), and zbar_parse_config().

Referenced by zbar::ImageScanner::set_config().

{
    zbar_symbol_type_t sym;
    zbar_config_t cfg;
    int val;
    return(zbar_parse_config(config_string, &sym, &cfg, &val) ||
           zbar_image_scanner_set_config(scanner, sym, cfg, val));
}


Generated by  Doxygen 1.6.0   Back to index