Commit 26262bb7 authored by Youness Alaoui's avatar Youness Alaoui

Callback now takes a GSocket * as argument

parent bf30b2e9
...@@ -2586,13 +2586,10 @@ io_ctx_free (IOCtx *ctx) ...@@ -2586,13 +2586,10 @@ io_ctx_free (IOCtx *ctx)
static gboolean static gboolean
nice_agent_g_source_cb ( nice_agent_g_source_cb (
GIOChannel *io, GSocket *gsocket,
G_GNUC_UNUSED
GIOCondition condition, GIOCondition condition,
gpointer data) gpointer data)
{ {
/* return value is whether to keep the source */
IOCtx *ctx = data; IOCtx *ctx = data;
NiceAgent *agent = ctx->agent; NiceAgent *agent = ctx->agent;
Stream *stream = ctx->stream; Stream *stream = ctx->stream;
...@@ -2607,9 +2604,6 @@ nice_agent_g_source_cb ( ...@@ -2607,9 +2604,6 @@ nice_agent_g_source_cb (
return FALSE; return FALSE;
} }
/* note: dear compiler, these are for you: */
(void)io;
len = _nice_agent_recv (agent, stream, component, ctx->socket, len = _nice_agent_recv (agent, stream, component, ctx->socket,
MAX_BUFFER_SIZE, buf); MAX_BUFFER_SIZE, buf);
......
...@@ -80,7 +80,7 @@ static gboolean socket_is_reliable (NiceSocket *sock); ...@@ -80,7 +80,7 @@ static gboolean socket_is_reliable (NiceSocket *sock);
static void add_to_be_sent (NiceSocket *sock, const gchar *buf, guint len, static void add_to_be_sent (NiceSocket *sock, const gchar *buf, guint len,
gboolean head); gboolean head);
static void free_to_be_sent (struct to_be_sent *tbs); static void free_to_be_sent (struct to_be_sent *tbs);
static gboolean socket_send_more (GIOChannel *source, GIOCondition condition, static gboolean socket_send_more (GSocket *gsocket, GIOCondition condition,
gpointer data); gpointer data);
NiceSocket * NiceSocket *
...@@ -313,7 +313,7 @@ socket_is_reliable (NiceSocket *sock) ...@@ -313,7 +313,7 @@ socket_is_reliable (NiceSocket *sock)
static gboolean static gboolean
socket_send_more ( socket_send_more (
GIOChannel *source, GSocket *gsocket,
GIOCondition condition, GIOCondition condition,
gpointer data) gpointer data)
{ {
......
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