ndef: Move carrier_power_state definition to header file
authorSzymon Janc <szymon.janc@tieto.com>
Fri, 4 Jan 2013 15:10:23 +0000 (16:10 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 31 Jan 2013 00:23:04 +0000 (01:23 +0100)
It will be also used by handover agent implementation

include/ndef.h
src/ndef.c

index d35dcfe..061877b 100644 (file)
@@ -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);
 
index 1183280..9582d2d 100644 (file)
@@ -147,13 +147,6 @@ struct near_ndef_mime_payload {
        } handover;
 };
 
-enum carrier_power_state {
-       CPS_INACTIVE                    =   0x00,
-       CPS_ACTIVE                      =   0x01,
-       CPS_ACTIVATING                  =   0x02,
-       CPS_UNKNOWN                     =   0x03,
-};
-
 /* Handover record definitions */
 
 /* alternative record (AC) */