blob: 43ff90c8e28bb609439076be18c4aa115c09c52d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#ifndef _CANDIDATE_H
#define _CANDIDATE_H
G_BEGIN_DECLS
typedef enum _NiceCandidateType NiceCandidateType;
enum _NiceCandidateType
{
NICE_CANDIDATE_TYPE_HOST,
NICE_CANDIDATE_TYPE_SERVER_REFLEXIVE,
NICE_CANDIDATE_TYPE_PEER_REFLEXIVE,
NICE_CANDIDATE_TYPE_RELAYED,
};
typedef struct _NiceCandidate NiceCandidate;
struct _NiceCandidate
{
NiceCandidateType type;
guint id;
NiceAddress addr;
NiceAddress base_addr;
guint16 port;
guint32 priority;
guint stream_id;
guint component_id;
// guint generation;
// gchar *foundation;
NiceUDPSocket sock;
gchar username[128];
gchar password[128];
};
NiceCandidate *
nice_candidate_new (NiceCandidateType type);
void
nice_candidate_free (NiceCandidate *candidate);
gfloat
nice_candidate_jingle_priority (NiceCandidate *candidate);
guint32
nice_candidate_ice_priority (NiceCandidate *candidate);
G_END_DECLS
#endif /* _CANDIDATE_H */
|