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

static int zebra_decoder_parse_config ( zebra_decoder_t decoder,
const char *  config_string 
) [inline, static]

parse configuration string using zebra_parse_config() and apply to decoder using zebra_decoder_set_config().

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

zebra_decoder_set_config()

Since:
0.4

Definition at line 880 of file zebra.h.

References zebra_decoder_set_config(), and zebra_parse_config().

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

{
    zebra_symbol_type_t sym;
    zebra_config_t cfg;
    int val;
    return(zebra_parse_config(config_string, &sym, &cfg, &val) ||
           zebra_decoder_set_config(decoder, sym, cfg, val));
}


Generated by  Doxygen 1.6.0   Back to index