Imported Upstream version 0.1.17
[platform/upstream/libnice.git] / agent / conncheck.h
index 70ea141..50fa0b1 100644 (file)
@@ -75,7 +75,7 @@ typedef struct _StunTransaction StunTransaction;
 
 struct _StunTransaction
 {
-  GTimeVal next_tick;       /* next tick timestamp */
+  gint64 next_tick;       /* next tick timestamp */
   StunTimer timer;
   uint8_t buffer[STUN_MAX_MESSAGE_SIZE_IPV6];
   StunMessage message;
@@ -98,7 +98,7 @@ struct _CandidateCheckPair
   CandidateCheckPair *discovered_pair;
   CandidateCheckPair *succeeded_pair;
   guint64 priority;
-  guint32 prflx_priority;
+  guint32 stun_priority;
   GSList *stun_transactions; /* a list of ongoing stun requests */
 };
 
@@ -118,8 +118,13 @@ void
 conn_check_prune_socket (NiceAgent *agent, NiceStream *stream, NiceComponent *component,
     NiceSocket *sock);
 
-guint32 ensure_unique_priority (NiceStream *stream, NiceComponent *component,
-    guint32 priority);
 void recalculate_pair_priorities (NiceAgent *agent);
+void conn_check_update_selected_pair (NiceAgent *agent,
+    NiceComponent *component, CandidateCheckPair *pair);
+void conn_check_update_check_list_state_for_ready (NiceAgent *agent,
+    NiceStream *stream, NiceComponent *component);
+void conn_check_unfreeze_related (NiceAgent *agent, CandidateCheckPair *pair);
+guint conn_check_stun_transactions_count (NiceAgent *agent);
+
 
 #endif /*_NICE_CONNCHECK_H */