summaryrefslogtreecommitdiffstats
path: root/src/stkutil.h
diff options
context:
space:
mode:
authorAndrzej Zaborowski <andrew.zaborowski@intel.com>2010-06-11 12:39:48 +0200
committerDenis Kenzior <denkenz@gmail.com>2010-06-15 12:06:47 -0500
commit6e4277eef879079ba6e5d2042924fc31a8cea650 (patch)
tree622c2d7af654571f5df566249591ff68d0c6fe49 /src/stkutil.h
parentdda6692d7d4b455f59a15c4fb1c0bf139c9a1520 (diff)
downloadofono-6e4277eef879079ba6e5d2042924fc31a8cea650.tar.bz2
stkutil: Refactor struct stk_other_address
Diffstat (limited to 'src/stkutil.h')
-rw-r--r--src/stkutil.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/stkutil.h b/src/stkutil.h
index 86c0e207..d5b3c029 100644
--- a/src/stkutil.h
+++ b/src/stkutil.h
@@ -404,6 +404,7 @@ enum stk_bearer_type {
};
enum stk_address_type {
+ STK_ADDRESS_AUTO = -1,
STK_ADDRESS_IPV4 = 0x21,
STK_ADDRESS_IPV6 = 0x57
};
@@ -692,10 +693,10 @@ struct stk_card_reader_id {
struct stk_other_address {
union {
/* Network Byte Order */
- unsigned int ipv4;
+ uint32_t ipv4;
unsigned char ipv6[16];
} addr;
- unsigned char type;
+ enum stk_address_type type;
};
/* Defined in TS 102.223 Section 8.59 */