diff --git a/data/Splasher.interface b/data/Splasher.interface index 77d1847..4a69f0b 100644 --- a/data/Splasher.interface +++ b/data/Splasher.interface @@ -1,6 +1,5 @@ #$Id$ service=Splasher -port=4249 [call::enable] ret=INT32 diff --git a/src/main.c b/src/main.c index cb30759..9a952c2 100644 --- a/src/main.c +++ b/src/main.c @@ -1,5 +1,5 @@ /* $Id$ */ -/* Copyright (c) 2010 Pierre Pronchery */ +/* Copyright (c) 2010-2014 Pierre Pronchery */ /* This file is part of DeforaOS System Splasher */ /* This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -24,7 +24,7 @@ /* usage */ static int _usage(void) { - fputs("Usage: " PACKAGE " [-L|-R]\n", stderr); + fputs("Usage: " PACKAGE " [-R]\n", stderr); return 1; } @@ -33,11 +33,14 @@ static int _usage(void) int main(int argc, char * argv[]) { int o; - AppServerOptions options = ASO_LOCAL; + AppServerOptions options = 0; - while((o = getopt(argc, argv, "LR")) != -1) + while((o = getopt(argc, argv, "R")) != -1) switch(o) { + case 'R': + options |= ASO_REGISTER; + break; default: return _usage(); } diff --git a/src/splasher.c b/src/splasher.c index d09e7bc..8a771ee 100644 --- a/src/splasher.c +++ b/src/splasher.c @@ -1,5 +1,5 @@ /* $Id$ */ -/* Copyright (c) 2011 Pierre Pronchery */ +/* Copyright (c) 2010-2014 Pierre Pronchery */ /* This file is part of DeforaOS System Splasher */ /* This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -38,7 +38,7 @@ static AppServer * _appserver; /* splasher */ int splasher(AppServerOptions options) { - if((_appserver = appserver_new(PACKAGE, options)) == NULL) + if((_appserver = appserver_new(options, PACKAGE, NULL)) == NULL) { error_print(PACKAGE); return 1; @@ -75,7 +75,8 @@ int32_t Splasher_enable(int32_t enabled) /* Splasher_progress */ -int32_t Splasher_progress(uint32_t progress, char const * text) +int32_t Splasher_progress(AppServerClient * client, uint32_t progress, + char const * text) { int ret = 0;