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

add typedef for data recv callback

darcs-hash:20070125172402-c9803-fe08ec8c69970bac5a7568e857df399b45a70d7d.gz
parent e6b4f9cf
......@@ -95,8 +95,7 @@ struct _stream
guint id;
/* XXX: streams can have multiple components */
Component *component;
void (*handle_recv) (
Agent *agent, guint stream_id, guint component_id, guint len, gchar *buf);
AgentRecvHandler handle_recv;
};
......@@ -282,8 +281,7 @@ guint
ice_agent_add_stream (
Agent *agent,
MediaType type,
void (*handle_recv) (
Agent *agent, guint stream_id, guint component_id, guint len, gchar *buf))
AgentRecvHandler handle_recv)
{
Stream *stream;
GSList *i;
......
......@@ -106,6 +106,10 @@ struct _agent
};
typedef void (*AgentRecvHandler) (
Agent *agent, guint stream_id, guint component_id, guint len, gchar *buf);
Agent *
ice_agent_new (UDPSocketManager *mgr);
Event *
......@@ -116,8 +120,7 @@ guint
ice_agent_add_stream (
Agent *agent,
MediaType type,
void (*handle_recv) (
Agent *agent, guint stream_id, guint component_id, guint len, gchar *buf));
AgentRecvHandler handle_recv);
void
ice_agent_free (Agent *agent);
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