X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-config.c;h=b06f01dbd6666c9403728afe4757400755ca85d6;hb=8d322ebdd04d6de2d5649626bbc23aae0d0ed556;hp=de02547393b68bdbfe60ee53487d7d1f19ef536c;hpb=0686ada403014fa7a27ca3e01a6b025a27fe8c16;p=src%2Fapp-framework-binder.git diff --git a/src/afb-config.c b/src/afb-config.c index de025473..b06f01db 100644 --- a/src/afb-config.c +++ b/src/afb-config.c @@ -71,7 +71,6 @@ #define SET_MODE 18 -#define SET_READYFD 19 #define DBUS_CLIENT 20 #define DBUS_SERVICE 21 @@ -117,10 +116,10 @@ static AFB_options cliOptions[] = { {SET_BACKGROUND, 0, "daemon", "Get all in background mode"}, {SET_TCP_PORT, 1, "port", "HTTP listening TCP port [default 1234]"}, - {SET_ROOT_HTTP, 1, "roothttp", "HTTP Root Directory [default rootdir]"}, + {SET_ROOT_HTTP, 1, "roothttp", "HTTP Root Directory [default no root http (files not served but apis still available)]"}, {SET_ROOT_BASE, 1, "rootbase", "Angular Base Root URL [default /opa]"}, {SET_ROOT_API, 1, "rootapi", "HTML Root API URL [default /api]"}, - {SET_ALIAS, 1, "alias", "Muliple url map outside of rootdir [eg: --alias=/icons:/usr/share/icons]"}, + {SET_ALIAS, 1, "alias", "Multiple url map outside of rootdir [eg: --alias=/icons:/usr/share/icons]"}, {SET_APITIMEOUT, 1, "apitimeout", "Binding API timeout in seconds [default 10]"}, {SET_CNTXTIMEOUT, 1, "cntxtimeout", "Client Session Context Timeout [default 900]"}, @@ -141,7 +140,6 @@ static AFB_options cliOptions[] = { {DISPLAY_HELP, 0, "help", "Display this help"}, {SET_MODE, 1, "mode", "Set the mode: either local, remote or global"}, - {SET_READYFD, 1, "readyfd", "Set the #fd to signal when ready"}, {DBUS_CLIENT, 1, "dbus-client", "Bind to an afb service through dbus"}, {DBUS_SERVICE, 1, "dbus-server", "Provides an afb service through dbus"}, @@ -240,7 +238,7 @@ static void list_add(struct afb_config_list **head, char *value) struct afb_config_list *item; /* - * search tail + * search tail */ item = *head; while (item != NULL) { @@ -249,7 +247,7 @@ static void list_add(struct afb_config_list **head, char *value) } /* - * alloc the item + * alloc the item */ item = malloc(sizeof *item); if (item == NULL) { @@ -258,7 +256,7 @@ static void list_add(struct afb_config_list **head, char *value) } /* - * init the item + * init the item */ *head = item; item->value = value; @@ -464,10 +462,6 @@ static void parse_arguments(int argc, char **argv, struct afb_config *config) config->mode = argvalenum(optc, mode_desc); break; - case SET_READYFD: - config->readyfd = argvalintdec(optc, 0, INT_MAX); - break; - case DBUS_CLIENT: list_add(&config->dbus_clients, argvalstr(optc)); break; @@ -617,7 +611,6 @@ void afb_config_dump(struct afb_config *config) D(httpdPort) B(background) - D(readyfd) D(cacheTimeout) D(apiTimeout) D(cntxTimeout)