summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2013-01-04 16:10:23 +0100
committerSamuel Ortiz <sameo@linux.intel.com>2013-01-31 01:23:04 +0100
commit8c8121cc6fb80e464af1c56a31a14e624022b8fe (patch)
treedaf8a9bebe386b91e94179b802579e01846b7bb6 /include
parentcdbd0d192467b7d7e4c5ee26d883cd1ec4020ec9 (diff)
downloadneard-8c8121cc6fb80e464af1c56a31a14e624022b8fe.tar.gz
neard-8c8121cc6fb80e464af1c56a31a14e624022b8fe.tar.bz2
neard-8c8121cc6fb80e464af1c56a31a14e624022b8fe.zip
ndef: Move carrier_power_state definition to header file
It will be also used by handover agent implementation
Diffstat (limited to 'include')
-rw-r--r--include/ndef.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ndef.h b/include/ndef.h
index d35dcfe..061877b 100644
--- a/include/ndef.h
+++ b/include/ndef.h
@@ -39,6 +39,13 @@ struct near_ndef_message {
#define NEAR_CARRIER_WIFI 0x02 /* bit 1 */
#define NEAR_CARRIER_UNKNOWN 0x80 /* Bit 7 */
+enum carrier_power_state {
+ CPS_INACTIVE = 0x00,
+ CPS_ACTIVE = 0x01,
+ CPS_ACTIVATING = 0x02,
+ CPS_UNKNOWN = 0x03,
+};
+
int near_ndef_count_records(uint8_t *ndef_in, size_t ndef_in_length,
uint8_t record_type);