aboutsummaryrefslogtreecommitdiff
path: root/include/magi/param.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/magi/param.h')
-rw-r--r--include/magi/param.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/include/magi/param.h b/include/magi/param.h
index 44ea384..b5bb27e 100644
--- a/include/magi/param.h
+++ b/include/magi/param.h
@@ -20,14 +20,15 @@ struct magi_params {
void magi_params_free(struct magi_params *params);
/* Add newitem onto top of params. */
-void magi_params_add(struct magi_params **params,
- struct magi_param *newitem);
+void magi_params_add(struct magi_params **params,
+ const struct magi_param *newitem);
/* Set newitem in params.
- * If param with name of newitem is in params it will be replaced with newitem,
+ * If param with name of newitem is in params
+ * it will be replaced with newitem,
* otherwise newitem will be added into the end of params. */
-void magi_params_set(struct magi_params **params,
- struct magi_param *newitem);
+void magi_params_set(struct magi_params **params,
+ const struct magi_param *newitem);
/* Get data of the first from top of params parameter with name,
* null if no such parameter. */