From 948ac2e8d4550d0300f8c890413634ff847b8703 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Tue, 16 Jan 2007 09:52:25 +0000 Subject: Read optional service identifier --- hcid/dbus-service.c | 3 +++ hcid/dbus-service.h | 1 + 2 files changed, 4 insertions(+) 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 */ -- cgit