Commit 3d3e5f94 authored by Dafydd Harries's avatar Dafydd Harries

make enum declarations C++-friendly

darcs-hash:20070212184043-c9803-5b9c875f38650771fe7ea18dc062a0d1a8e8d7eb.gz
parent e80fad71
......@@ -6,13 +6,11 @@
G_BEGIN_DECLS
typedef enum _NiceAddressType NiceAddressType;
enum _NiceAddressType
typedef enum
{
NICE_ADDRESS_TYPE_IPV4,
NICE_ADDRESS_TYPE_IPV6,
};
} NiceAddressType;
typedef struct _NiceAddress NiceAddress;
......
......@@ -6,15 +6,13 @@
G_BEGIN_DECLS
typedef enum _NiceCandidateType NiceCandidateType;
enum _NiceCandidateType
typedef enum
{
NICE_CANDIDATE_TYPE_HOST,
NICE_CANDIDATE_TYPE_SERVER_REFLEXIVE,
NICE_CANDIDATE_TYPE_PEER_REFLEXIVE,
NICE_CANDIDATE_TYPE_RELAYED,
};
} NiceCandidateType;
typedef struct _NiceCandidate NiceCandidate;
......
......@@ -8,13 +8,11 @@
G_BEGIN_DECLS
typedef enum _NiceEventType NiceEventType;
enum _NiceEventType
typedef enum
{
NICE_EVENT_COMPONENT_CONNECTED,
NICE_EVENT_CANDIDATE_SELECTED,
};
} NiceEventType;
typedef struct _NiceEvent NiceEvent;
......
......@@ -6,7 +6,8 @@
G_BEGIN_DECLS
typedef enum {
typedef enum
{
STUN_MESSAGE_BINDING_REQUEST = 0x001,
STUN_MESSAGE_BINDING_RESPONSE = 0x101,
STUN_MESSAGE_BINDING_ERROR_RESPONSE = 0x111,
......@@ -20,7 +21,8 @@ typedef enum {
* c = defined by draft-ietf-behave-turn-02
*/
typedef enum {
typedef enum
{
// mandatory parameters (<= 0x7fff)
STUN_ATTRIBUTE_MAPPED_ADDRESS = 0x0001, // ab
STUN_ATTRIBUTE_RESPONSE_ADDRESS = 0x0002, // a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment