summaryrefslogtreecommitdiffstats
path: root/tinyNET/src/ice/tnet_ice_event.h
diff options
context:
space:
mode:
Diffstat (limited to 'tinyNET/src/ice/tnet_ice_event.h')
-rwxr-xr-xtinyNET/src/ice/tnet_ice_event.h58
1 files changed, 28 insertions, 30 deletions
diff --git a/tinyNET/src/ice/tnet_ice_event.h b/tinyNET/src/ice/tnet_ice_event.h
index 8f2f72e..404f765 100755
--- a/tinyNET/src/ice/tnet_ice_event.h
+++ b/tinyNET/src/ice/tnet_ice_event.h
@@ -8,12 +8,12 @@
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
-*
+*
* DOUBANGO is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
-*
+*
* You should have received a copy of the GNU General Public License
* along with DOUBANGO.
*
@@ -28,40 +28,38 @@
TNET_BEGIN_DECLS
-typedef enum tnet_ice_event_type_e
-{
- // Public events
- tnet_ice_event_type_started,
- tnet_ice_event_type_start_failed,
- tnet_ice_event_type_stopped,
- tnet_ice_event_type_stop_failed,
- tnet_ice_event_type_gathering_host_candidates_failed,
- tnet_ice_event_type_gathering_host_candidates_succeed,
- tnet_ice_event_type_gathering_reflexive_candidates_failed,
- tnet_ice_event_type_gathering_reflexive_candidates_succeed,
- tnet_ice_event_type_gathering_relay_candidates_failed,
- tnet_ice_event_type_gathering_relay_candidates_succeed,
- tnet_ice_event_type_gathering_completed,
- tnet_ice_event_type_conncheck_succeed,
- tnet_ice_event_type_conncheck_failed,
- tnet_ice_event_type_cancelled,
- tnet_ice_event_type_turn_connection_broken,
+typedef enum tnet_ice_event_type_e {
+ // Public events
+ tnet_ice_event_type_started,
+ tnet_ice_event_type_start_failed,
+ tnet_ice_event_type_stopped,
+ tnet_ice_event_type_stop_failed,
+ tnet_ice_event_type_gathering_host_candidates_failed,
+ tnet_ice_event_type_gathering_host_candidates_succeed,
+ tnet_ice_event_type_gathering_reflexive_candidates_failed,
+ tnet_ice_event_type_gathering_reflexive_candidates_succeed,
+ tnet_ice_event_type_gathering_relay_candidates_failed,
+ tnet_ice_event_type_gathering_relay_candidates_succeed,
+ tnet_ice_event_type_gathering_completed,
+ tnet_ice_event_type_conncheck_succeed,
+ tnet_ice_event_type_conncheck_failed,
+ tnet_ice_event_type_cancelled,
+ tnet_ice_event_type_turn_connection_broken,
- // Private events
- tnet_ice_event_type_action
+ // Private events
+ tnet_ice_event_type_action
}
tnet_ice_event_type_t;
-typedef struct tnet_ice_event_s
-{
- TSK_DECLARE_OBJECT;
+typedef struct tnet_ice_event_s {
+ TSK_DECLARE_OBJECT;
- tnet_ice_event_type_t type;
- char* phrase;
- struct tnet_ice_action_s* action;
- const struct tnet_ice_ctx_s* ctx;
+ tnet_ice_event_type_t type;
+ char* phrase;
+ struct tnet_ice_action_s* action;
+ const struct tnet_ice_ctx_s* ctx;
- const void* userdata;
+ const void* userdata;
}
tnet_ice_event_t;
OpenPOWER on IntegriCloud