aboutsummaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common.h b/src/common.h
index 3eaf697..83b15e8 100644
--- a/src/common.h
+++ b/src/common.h
@@ -159,7 +159,7 @@ struct options {
typedef struct gamma_state GAMMA_STATE;
struct gamma_method {
- char *name;
+ const char *name;
/* If true, this method will be tried if none is explicitly chosen. */
int autostart;
@@ -187,7 +187,7 @@ struct gamma_method {
typedef struct location_state LOCATION_STATE;
struct location_provider {
- char *name;
+ const char *name;
/* Initialize state. Options can be set between init and start. */
int (*init)(LOCATION_STATE **state);
@@ -225,6 +225,9 @@ LIST_RAMPS_STOP_VALUE_TYPES(X, ;);
int config_ini_init(struct config_ini_state *state, const char *filepath);
void config_ini_free(struct config_ini_state *state);
+#if defined(__GNUC__)
+__attribute__((__pure__))
+#endif
struct config_ini_section *config_ini_get_section(struct config_ini_state *state, const char *name);