X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fdiscover-server.c;h=68065895f4dc52b85ccb04633f87e7201398c950;hp=80919fdf3da68088f20f7bca696efa1a5c39e6aa;hb=7460bbb60ff7070c6884b700fc6370cd58703c4b;hpb=85bd33ca9777c386359b9b3899888316354a4e1f diff --git a/discover/discover-server.c b/discover/discover-server.c index 80919fd..6806589 100644 --- a/discover/discover-server.c +++ b/discover/discover-server.c @@ -216,6 +216,7 @@ static int discover_server_process_message(void *arg) struct boot_command *boot_command; struct client *client = arg; struct config *config; + char *url; int rc; message = pb_protocol_read_message(client, client->fd); @@ -262,6 +263,13 @@ static int discover_server_process_message(void *arg) config); break; + case PB_PROTOCOL_ACTION_ADD_URL: + url = pb_protocol_deserialise_string((void *) client, message); + + device_handler_process_url(client->server->device_handler, + url, NULL, NULL); + break; + default: pb_log("%s: invalid action %d\n", __func__, message->action); return 0;