summaryrefslogtreecommitdiff
path: root/src/daemon/dlt-daemon.c
diff options
context:
space:
mode:
authorAlexander.AW.Wenzel@bmw.de <Alexander.AW.Wenzel@bmw.de>2011-08-09 10:43:02 +0200
committerAlexander.AW.Wenzel@bmw.de <Alexander.AW.Wenzel@bmw.de>2011-08-09 10:43:02 +0200
commit885a1474729164f3f049a38c27c6f8c148fee95f (patch)
tree6790f26ac12cb19e1a311e2a5d622c36827bc4ab /src/daemon/dlt-daemon.c
parent11702b620d2ec8896af210168db81ee58923d9da (diff)
downloadDLT-daemon-885a1474729164f3f049a38c27c6f8c148fee95f.tar.gz
[GSW-28] Directory where persistent data is stored is not configurable. Fixed.
Diffstat (limited to 'src/daemon/dlt-daemon.c')
-rwxr-xr-xsrc/daemon/dlt-daemon.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c
index ad2aa9d..2438368 100755
--- a/src/daemon/dlt-daemon.c
+++ b/src/daemon/dlt-daemon.c
@@ -154,6 +154,7 @@ void usage()
printf(" -o filename Store DLT messages to local log file\n");
printf(" -f filename Enable filtering of messages\n");
printf(" -u size Size of the ringbuffer in bytes (Default: 10024)\n");
+ printf(" -i directory Directory where to store the persistant configuration (Default: /tmp)\n");
} /* usage() */
/**
@@ -174,7 +175,7 @@ int option_handling(DltDaemonLocal *daemon_local,int argc, char* argv[])
opterr = 0;
- while ((c = getopt (argc, argv, "hvasxdlrmnf:o:e:b:y:u:")) != -1)
+ while ((c = getopt (argc, argv, "hvasxdlrmnf:o:e:b:y:u:i:")) != -1)
{
switch (c)
{
@@ -253,6 +254,11 @@ int option_handling(DltDaemonLocal *daemon_local,int argc, char* argv[])
daemon_local->flags.uvalue = optarg;
break;
}
+ case 'i':
+ {
+ daemon_local->flags.ivalue = optarg;
+ break;
+ }
case 'h':
{
usage();
@@ -488,7 +494,7 @@ int dlt_daemon_local_init_p2(DltDaemon *daemon, DltDaemonLocal *daemon_local, in
}
/* Daemon data */
- if (dlt_daemon_init(daemon,daemon_local->flags.vflag)==-1)
+ if (dlt_daemon_init(daemon,daemon_local->flags.ivalue,daemon_local->flags.vflag)==-1)
{
dlt_log(LOG_ERR,"Could not initialize daemon data\n");
return -1;