summaryrefslogtreecommitdiff
path: root/config/config.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-08-04 14:45:46 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-08-22 15:56:53 +1000
commit05284a03f9002b03a66ae355b34790ec02b726f0 (patch)
treefba09523738e384c129d455f9af9703dafbf98a2 /config/config.c
parentfcafe825751bef99f4c0b36250ca6f15f127502f (diff)
input: make InputOption opaque, provide interface functions.
InputOptions is not switched to use struct list for a future patch to unify it with the XF86OptionRec. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Dan Nicholson <dbn.lists@gmail.com>
Diffstat (limited to 'config/config.c')
-rw-r--r--config/config.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/config/config.c b/config/config.c
index af8f4f9b2..9c28785c6 100644
--- a/config/config.c
+++ b/config/config.c
@@ -122,25 +122,3 @@ device_is_duplicate(const char *config_info)
return FALSE;
}
-/**
- * Allocate a new option and append to the list.
- *
- * @return A pointer to the newly allocated InputOption struct.
- */
-InputOption*
-add_option(InputOption **options, const char *key, const char *value)
-{
- if (!value || *value == '\0')
- return NULL;
-
- for (; *options; options = &(*options)->next)
- ;
- *options = calloc(sizeof(**options), 1);
- if (!*options) /* Yeesh. */
- return NULL;
- (*options)->key = strdup(key);
- (*options)->value = strdup(value);
- (*options)->next = NULL;
-
- return *options;
-}