Пример #1
0
int config_setting_lookup_int (const config_setting_t * setting, const char *name, int *value)
{
    config_setting_t *member = config_setting_get_member (setting, name);
    if (!member)
        return (CONFIG_FALSE);

    return (__config_setting_get_int (member, value));
}
Пример #2
0
int config_lookup_int (const config_t * config, const char *path, int *value)
{
    const config_setting_t *s = config_lookup (config, path);
    if (!s)
        return (CONFIG_FALSE);

    return (__config_setting_get_int (s, value));
}
Пример #3
0
int config_setting_get_int(const config_setting_t *setting)
{
  int value = 0;
  __config_setting_get_int(setting, &value);
  return(value);
}