---
src/main.c | 11 +++++++++++
src/ofono.h | 1 +
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/main.c b/src/main.c
index 129d36c..e55b6e7 100644
--- a/src/main.c
+++ b/src/main.c
@@ -116,6 +116,7 @@ static void parse_config(GKeyFile *config)
{
GError *err = NULL;
char *str;
+ gboolean val;
if (!config)
return;
@@ -130,6 +131,16 @@ static void parse_config(GKeyFile *config)
main_opts.flags |= OFONO_SET_NOPLUGIN;
g_free(str);
}
+
+ val = g_key_file_get_boolean(config, "MessageManager",
+ "Use16bitReference", &err);
+ if (err) {
+ DBG("%s", err->message);
+ g_clear_error(&err);
+ } else {
+ DBG("Use16bitReference=%s", val ? "true" : "false");
+ main_opts.use_16bit_ref = val;
+ }
}
static void init_defaults(void)
diff --git a/src/ofono.h b/src/ofono.h
index 54de5a6..0c0f2a8 100644
--- a/src/ofono.h
+++ b/src/ofono.h
@@ -27,6 +27,7 @@
struct main_opts {
char *noplugin;
+ gboolean use_16bit_ref;
unsigned long flags;
};
--
1.7.1
_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono