summaryrefslogtreecommitdiff
path: root/agent
diff options
context:
space:
mode:
Diffstat (limited to 'agent')
-rw-r--r--agent/agent.c4
-rw-r--r--agent/agent.h7
2 files changed, 7 insertions, 4 deletions
diff --git a/agent/agent.c b/agent/agent.c
index 7404799..438b671 100644
--- a/agent/agent.c
+++ b/agent/agent.c
@@ -68,7 +68,7 @@ struct _Stream
guint id;
/* XXX: streams can have multiple components */
Component *component;
- NiceAgentRecvHandler handle_recv;
+ NiceAgentRecvFunc handle_recv;
gpointer handle_recv_data;
};
@@ -241,7 +241,7 @@ nice_agent_add_local_host_candidate (
guint
nice_agent_add_stream (
NiceAgent *agent,
- NiceAgentRecvHandler handle_recv,
+ NiceAgentRecvFunc handle_recv,
gpointer handle_recv_data)
{
Stream *stream;
diff --git a/agent/agent.h b/agent/agent.h
index 5ae6fa2..5a82af5 100644
--- a/agent/agent.h
+++ b/agent/agent.h
@@ -15,6 +15,9 @@ G_BEGIN_DECLS
typedef struct _NiceAgent NiceAgent;
+typedef void (*NiceAgentEventFunc) (
+ NiceAgent *agent, NiceEvent *event);
+
struct _NiceAgent
{
guint next_candidate_id;
@@ -28,7 +31,7 @@ struct _NiceAgent
};
-typedef void (*NiceAgentRecvHandler) (
+typedef void (*NiceAgentRecvFunc) (
NiceAgent *agent, guint stream_id, guint component_id, guint len,
gchar *buf, gpointer user_data);
@@ -45,7 +48,7 @@ nice_agent_add_local_address (NiceAgent *agent, NiceAddress *addr);
guint
nice_agent_add_stream (
NiceAgent *agent,
- NiceAgentRecvHandler handle_recv,
+ NiceAgentRecvFunc recv_func,
gpointer handle_recv_data);
void