summaryrefslogtreecommitdiff
path: root/agent
diff options
context:
space:
mode:
authorDafydd Harries <dafydd.harries@collabora.co.uk>2007-02-04 19:02:00 +0000
committerDafydd Harries <dafydd.harries@collabora.co.uk>2007-02-04 19:02:00 +0000
commit1497600327697b2059338b086ef02cabfe44d572 (patch)
tree64413d98f5636d8e5798bf7a7f44c1cf00bd60b1 /agent
parent605f2e19d07fc773cbde3633708f3ee4451c8f17 (diff)
downloadlibnice-1497600327697b2059338b086ef02cabfe44d572.tar.gz
rename NiceAgentRecvHandler -> NiceAgentRecvFunc
darcs-hash:20070204190234-c9803-070f17e3dccb628b32870bc35b84067e8ed52eb9.gz
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