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

static int zbar_decoder_parse_config ( zbar_decoder_t decoder,
const char *  config_string 
) [inline, static]

parse configuration string using zbar_parse_config() and apply to decoder using zbar_decoder_set_config().

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

zbar_decoder_set_config()

Since:
0.4

Definition at line 1141 of file zbar.h.

References zbar_decoder_set_config(), and zbar_parse_config().

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

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


Generated by  Doxygen 1.6.0   Back to index