summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2014-01-22 10:10:44 -0600
committerDenis Kenzior <denkenz@gmail.com>2014-10-20 13:40:28 -0500
commit7166aebd5193b0d327a5a30d295fe328ed76b89b (patch)
treef587a9c1e07a12b6b526bc4175f1f8468a445ce1 /src
parentdebb0d2d3e76605f9683f401026e296ea157ef9b (diff)
downloadofono-7166aebd5193b0d327a5a30d295fe328ed76b89b.tar.bz2
emulator: Refactor data types
Diffstat (limited to 'src')
-rw-r--r--src/emulator.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/emulator.c b/src/emulator.c
index 8356a4ca..725a5d01 100644
--- a/src/emulator.c
+++ b/src/emulator.c
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <string.h>
#include <unistd.h>
+#include <stdbool.h>
#include <glib.h>
@@ -42,17 +43,17 @@ struct ofono_emulator {
enum ofono_emulator_type type;
GAtServer *server;
GAtPPP *ppp;
- gboolean slc;
int l_features;
int r_features;
- int events_mode;
- gboolean events_ind;
- unsigned char cmee_mode;
GSList *indicators;
guint callsetup_source;
- gboolean clip;
- gboolean ccwa;
int pns_id;
+ bool slc : 1;
+ unsigned int events_mode : 2;
+ bool events_ind : 1;
+ unsigned int cmee_mode : 2;
+ bool clip : 1;
+ bool ccwa : 1;
};
struct indicator {