conf: _get_next_param() returns a const pointer
No writers.
This commit is contained in:
parent
68875ba600
commit
3cc12817f6
|
@ -463,7 +463,7 @@ config_read_file(const char *file, GError **error_r)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct config_param *
|
const struct config_param *
|
||||||
config_get_next_param(const char *name, const struct config_param * last)
|
config_get_next_param(const char *name, const struct config_param * last)
|
||||||
{
|
{
|
||||||
struct config_entry *entry;
|
struct config_entry *entry;
|
||||||
|
|
|
@ -133,11 +133,11 @@ config_read_file(const char *file, GError **error_r);
|
||||||
/* don't free the returned value
|
/* don't free the returned value
|
||||||
set _last_ to NULL to get first entry */
|
set _last_ to NULL to get first entry */
|
||||||
G_GNUC_PURE
|
G_GNUC_PURE
|
||||||
struct config_param *
|
const struct config_param *
|
||||||
config_get_next_param(const char *name, const struct config_param *last);
|
config_get_next_param(const char *name, const struct config_param *last);
|
||||||
|
|
||||||
G_GNUC_PURE
|
G_GNUC_PURE
|
||||||
static inline struct config_param *
|
static inline const struct config_param *
|
||||||
config_get_param(const char *name)
|
config_get_param(const char *name)
|
||||||
{
|
{
|
||||||
return config_get_next_param(name, NULL);
|
return config_get_next_param(name, NULL);
|
||||||
|
|
Loading…
Reference in New Issue