diff options
author | Kai Vehmanen <first.surname@nokia.com> | 2007-05-02 14:24:00 +0000 |
---|---|---|
committer | Kai Vehmanen <first.surname@nokia.com> | 2007-05-02 14:24:00 +0000 |
commit | b9ba0195da3ffb1838fc207c11de624234033846 (patch) | |
tree | 2b408f4f3862748ceaffd1499af1d11d02eec552 /agent/candidate.h | |
parent | cde5ed64438486e56af40562e8740be1b479a137 (diff) | |
download | libnice-b9ba0195da3ffb1838fc207c11de624234033846.tar.gz |
Added initial full-mode extensions to the API. Added support for gathering candidates using STUN binding discovery API.
darcs-hash:20070502142419-77cd4-6e295bdf89c80a6cdab778fe25e26c9e780ce2b5.gz
Diffstat (limited to 'agent/candidate.h')
-rw-r--r-- | agent/candidate.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/agent/candidate.h b/agent/candidate.h index 736c175..8aaefff 100644 --- a/agent/candidate.h +++ b/agent/candidate.h @@ -50,23 +50,28 @@ typedef enum NICE_CANDIDATE_TYPE_RELAYED, } NiceCandidateType; +typedef enum +{ + NICE_CANDIDATE_TRANSPORT_UDP, +} NiceCandidateTransport; typedef struct _NiceCandidate NiceCandidate; struct _NiceCandidate { NiceCandidateType type; - guint id; + NiceCandidateTransport transport; + guint id; NiceAddress addr; NiceAddress base_addr; guint32 priority; guint stream_id; guint component_id; // guint generation; - // gchar *foundation; + gchar *foundation; /* note: if NULL, derive foundation from 'id' */ NiceUDPSocket sock; - gchar username[128]; - gchar password[128]; + gchar username[128]; /* XXX: why 128 chars? */ + gchar password[128]; /* XXX: why 128 chars? */ GSource *source; }; |