| … | |
… | |
| 332 | char **rc_config_load (const char *file); |
332 | char **rc_config_load (const char *file); |
| 333 | |
333 | |
| 334 | /*! Return the value of the entry from a key=value list. */ |
334 | /*! Return the value of the entry from a key=value list. */ |
| 335 | char *rc_config_value (char **list, const char *entry); |
335 | char *rc_config_value (char **list, const char *entry); |
| 336 | |
336 | |
| 337 | /*! Return a NULL terminated string list of variables allowed through |
|
|
| 338 | * from the current environemnt. */ |
|
|
| 339 | char **rc_env_filter (void); |
|
|
| 340 | |
|
|
| 341 | /*! Return a NULL terminated string list of enviroment variables made from |
|
|
| 342 | * our configuration files. */ |
|
|
| 343 | char **rc_env_config (void); |
|
|
| 344 | |
|
|
| 345 | /*! Check if an environment variable is a boolean and return it's value. |
337 | /*! Check if an environment variable is a boolean and return it's value. |
| 346 | * If variable is not a boolean then we set errno to be ENOENT when it does |
338 | * If variable is not a boolean then we set errno to be ENOENT when it does |
| 347 | * not exist or EINVAL if it's not a boolean. |
339 | * not exist or EINVAL if it's not a boolean. |
| 348 | * @param variable to check |
340 | * @param variable to check |
| 349 | * @return true if it matches true, yes or 1, false if otherwise. */ |
341 | * @return true if it matches true, yes or 1, false if otherwise. */ |