diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-09-05 14:18:18 +1000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2016-09-08 13:43:24 +1000 |
commit | e2c92865481a5fb043c03c0cde625a96ca608699 (patch) | |
tree | 6ff1b4f3a2ca32ccfb7969fff77f252468220b0d /discover/user-event.c | |
parent | a50d5fe279db71cf85fabeb675c99b167ec63dcb (diff) | |
download | talos-petitboot-e2c92865481a5fb043c03c0cde625a96ca608699.tar.gz talos-petitboot-e2c92865481a5fb043c03c0cde625a96ca608699.zip |
discover: Deprecate 'conf' user event
The 'conf' user event is functionally very similar to the 'url' event,
in that both events result in downloading a specified configuration file
and passing it to iterate_parsers().
The 'url' event additionally allows downloading files from a directory
path and is also accessed by the UI via pb-protocol, so remove the
'conf' event and associated functions in favour of 'url' and
device_handler_process_url().
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/user-event.c')
-rw-r--r-- | discover/user-event.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/discover/user-event.c b/discover/user-event.c index 3ccac90..7ceddb1 100644 --- a/discover/user-event.c +++ b/discover/user-event.c @@ -392,28 +392,6 @@ static int user_event_dhcp(struct user_event *uev, struct event *event) return 0; } -static int user_event_conf(struct user_event *uev, struct event *event) -{ - struct device_handler *handler = uev->handler; - struct discover_device *dev; - struct pb_url *url; - const char *val; - - val = event_get_param(event, "url"); - if (!val) - return 0; - - url = pb_url_parse(event, val); - if (!url) - return 0; - - dev = discover_device_create(handler, event->device); - - device_handler_conf(handler, dev, url); - - return 0; -} - static int user_event_add(struct user_event *uev, struct event *event) { struct device_handler *handler = uev->handler; @@ -514,9 +492,6 @@ static void user_event_handle_message(struct user_event *uev, char *buf, case EVENT_ACTION_URL: result = user_event_url(uev, event); goto out; - case EVENT_ACTION_CONF: - result = user_event_conf(uev, event); - break; case EVENT_ACTION_DHCP: result = user_event_dhcp(uev, event); goto out; |