---
 include/openobex/obex_const.h |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/include/openobex/obex_const.h b/include/openobex/obex_const.h
index 18d698a..cdcd823 100644
--- a/include/openobex/obex_const.h
+++ b/include/openobex/obex_const.h
@@ -193,14 +193,16 @@ enum obex_event {
 #define OBEX_FL_STREAM_DATAEND 0x08    /* Body stream last data */
 #define OBEX_FL_SUSPEND                0x10    /* Suspend after sending this 
header */
 
-/* Transports */
-#define OBEX_TRANS_IRDA                1
-#define OBEX_TRANS_INET                2
-#define OBEX_TRANS_CUSTOM      3
-#define OBEX_TRANS_BLUETOOTH   4 /* Bluetooth RFCOMM */
-#define OBEX_TRANS_FD          5
-#define OBEX_TRANS_USB         6
-#define OBEX_TRANS_BT_L2CAP    7 /* Bluetooth L2CAP */
+/** Possible transports */
+enum obex_transport_type {
+       OBEX_TRANS_IRDA = 1,      /**< Infrared */
+       OBEX_TRANS_INET = 2,      /**< TCP over IPv4/v6 */
+       OBEX_TRANS_CUSTOM = 3,    /**< Custom transport with callbacks */
+       OBEX_TRANS_BLUETOOTH = 4, /**< Bluetooth RFCOMM */
+       OBEX_TRANS_FD = 5,        /**< file descriptors */
+       OBEX_TRANS_USB = 6,       /**< USB CDC OBEX */
+       OBEX_TRANS_BT_L2CAP = 7,  /**< Bluetooth L2CAP */
+};
 
 /* Standard headers */
 #define OBEX_HDR_TYPE_UNICODE  (0 << 6)  /* zero terminated unicode string 
(network byte order) */
-- 
1.7.5.4


------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Openobex-users mailing list
Openobex-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/openobex-users

Reply via email to