summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-01-16 09:52:25 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-01-16 09:52:25 +0000
commit948ac2e8d4550d0300f8c890413634ff847b8703 (patch)
tree1e15d4370af64ebfcee20fc7dd78ae640db81fed
parent3562f542debf739d121449fad41e0a9b2e5f61a0 (diff)
Read optional service identifier
-rw-r--r--hcid/dbus-service.c3
-rw-r--r--hcid/dbus-service.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c
index 7de4d49b..4c1c488c 100644
--- a/hcid/dbus-service.c
+++ b/hcid/dbus-service.c
@@ -920,6 +920,9 @@ static struct service *create_service(const char *file)
service->descr = g_key_file_get_string(keyfile, SERVICE_GROUP,
"Description", NULL);
+ service->ident = g_key_file_get_string(keyfile, SERVICE_GROUP,
+ "Identifier", NULL);
+
g_key_file_free(keyfile);
return service;
diff --git a/hcid/dbus-service.h b/hcid/dbus-service.h
index 7aa4249d..8d513235 100644
--- a/hcid/dbus-service.h
+++ b/hcid/dbus-service.h
@@ -43,6 +43,7 @@ struct service {
char *exec; /* Location of executable */
char *name;
char *descr;
+ char *ident;
GSList *trusted_devices;
GSList *records; /* list of binary records */