Commit 178fef32 authored by Dafydd Harries's avatar Dafydd Harries

add typedef for data recv callback

darcs-hash:20070125172402-c9803-fe08ec8c69970bac5a7568e857df399b45a70d7d.gz
parent e6b4f9cf
...@@ -95,8 +95,7 @@ struct _stream ...@@ -95,8 +95,7 @@ struct _stream
guint id; guint id;
/* XXX: streams can have multiple components */ /* XXX: streams can have multiple components */
Component *component; Component *component;
void (*handle_recv) ( AgentRecvHandler handle_recv;
Agent *agent, guint stream_id, guint component_id, guint len, gchar *buf);
}; };
...@@ -282,8 +281,7 @@ guint ...@@ -282,8 +281,7 @@ guint
ice_agent_add_stream ( ice_agent_add_stream (
Agent *agent, Agent *agent,
MediaType type, MediaType type,
void (*handle_recv) ( AgentRecvHandler handle_recv)
Agent *agent, guint stream_id, guint component_id, guint len, gchar *buf))
{ {
Stream *stream; Stream *stream;
GSList *i; GSList *i;
......
...@@ -106,6 +106,10 @@ struct _agent ...@@ -106,6 +106,10 @@ struct _agent
}; };
typedef void (*AgentRecvHandler) (
Agent *agent, guint stream_id, guint component_id, guint len, gchar *buf);
Agent * Agent *
ice_agent_new (UDPSocketManager *mgr); ice_agent_new (UDPSocketManager *mgr);
Event * Event *
...@@ -116,8 +120,7 @@ guint ...@@ -116,8 +120,7 @@ guint
ice_agent_add_stream ( ice_agent_add_stream (
Agent *agent, Agent *agent,
MediaType type, MediaType type,
void (*handle_recv) ( AgentRecvHandler handle_recv);
Agent *agent, guint stream_id, guint component_id, guint len, gchar *buf));
void void
ice_agent_free (Agent *agent); ice_agent_free (Agent *agent);
void void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment