diff options
author | Sharvil Nanavati <sharvil@google.com> | 2014-11-06 18:34:06 -0800 |
---|---|---|
committer | Andre Eisenbach <eisenbach@google.com> | 2015-03-16 16:51:40 -0700 |
commit | 06ef205ebcb0d3f0fe2b88ddcea73e646981940e (patch) | |
tree | 061c8ad184f4153e9f8a8e746209b66737db69cf /btcore/include | |
parent | 305c15954d69b1a5e15817f6939b907e89100c04 (diff) | |
download | android_system_bt-06ef205ebcb0d3f0fe2b88ddcea73e646981940e.tar.gz android_system_bt-06ef205ebcb0d3f0fe2b88ddcea73e646981940e.tar.bz2 android_system_bt-06ef205ebcb0d3f0fe2b88ddcea73e646981940e.zip |
Update module names to not use C preprocessor and to be at top of headers.
Diffstat (limited to 'btcore/include')
-rw-r--r-- | btcore/include/counter.h | 2 | ||||
-rw-r--r-- | btcore/include/module.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/btcore/include/counter.h b/btcore/include/counter.h index d8295176d..10e384f79 100644 --- a/btcore/include/counter.h +++ b/btcore/include/counter.h @@ -21,7 +21,7 @@ #include <stdbool.h> #include <stdint.h> -#define COUNTER_MODULE "counter_module" +static const char COUNTER_MODULE[] = "counter_module"; typedef int64_t counter_data_t; diff --git a/btcore/include/module.h b/btcore/include/module.h index 1d5bea99d..d88f5f327 100644 --- a/btcore/include/module.h +++ b/btcore/include/module.h @@ -26,7 +26,7 @@ typedef future_t *(*module_lifecycle_fn)(void); typedef struct { - char *name; + const char *name; module_lifecycle_fn init; module_lifecycle_fn start_up; module_lifecycle_fn shut_down; |