diff options
Diffstat (limited to 'agent/candidate.h')
-rw-r--r-- | agent/candidate.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/agent/candidate.h b/agent/candidate.h index ac5c21e..c939d77 100644 --- a/agent/candidate.h +++ b/agent/candidate.h @@ -48,6 +48,8 @@ G_BEGIN_DECLS #define NICE_CANDIDATE_TYPE_PREF_SERVER_REFLEXIVE 100 #define NICE_CANDIDATE_TYPE_PREF_RELAYED 60 +#define NICE_CANDIDATE_MAX_FOUNDATION 16 + typedef enum { NICE_CANDIDATE_TYPE_HOST, @@ -72,11 +74,10 @@ struct _NiceCandidate guint32 priority; guint stream_id; guint component_id; - gchar *foundation; - NiceUDPSocket *sockptr; /* XXX: to replace 'sock', see comment above */ + gchar foundation[NICE_CANDIDATE_MAX_FOUNDATION]; + NiceUDPSocket *sockptr; gchar *username; /* pointer to a NULL-terminated username string */ gchar *password; /* pointer to a NULL-terminated password string */ - GSource *source; }; |