summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2008-02-20 12:14:49 +0000
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2008-02-20 12:14:49 +0000
commit025d957ccd802565d10813e0a17ba0ff4c1e128f (patch)
tree232da47069232bcd3922aa73bbe61327e7b53e55 /lib
parent9800b361da430e7d6023ec4c21946bada41a6240 (diff)
downloadtelepathy-salut-025d957ccd802565d10813e0a17ba0ff4c1e128f.tar.gz
gibber-transport: add gibber_transport_buffer_is_empty abstract method
20080220121449-7fe3f-f71a67795f683190eb1cdb8bdd187858472be20e.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/gibber/gibber-transport.c9
-rw-r--r--lib/gibber/gibber-transport.h4
2 files changed, 13 insertions, 0 deletions
diff --git a/lib/gibber/gibber-transport.c b/lib/gibber/gibber-transport.c
index 45ac46b9..7a47d130 100644
--- a/lib/gibber/gibber-transport.c
+++ b/lib/gibber/gibber-transport.c
@@ -244,3 +244,12 @@ gibber_transport_get_sockaddr (GibberTransport *transport,
return FALSE;
}
+
+gboolean
+gibber_transport_buffer_is_empty (GibberTransport *transport)
+{
+ GibberTransportClass *cls = GIBBER_TRANSPORT_GET_CLASS (transport);
+
+ return cls->buffer_is_empty (transport);
+}
+
diff --git a/lib/gibber/gibber-transport.h b/lib/gibber/gibber-transport.h
index 82f40908..a21ca8c1 100644
--- a/lib/gibber/gibber-transport.h
+++ b/lib/gibber/gibber-transport.h
@@ -54,6 +54,7 @@ struct _GibberTransportClass {
void (*disconnect) (GibberTransport *transport);
gboolean (*get_sockaddr) (GibberTransport *transport,
struct sockaddr_storage *addr, socklen_t *len);
+ gboolean (*buffer_is_empty) (GibberTransport *transport);
};
struct _GibberTransport {
@@ -113,6 +114,9 @@ void gibber_transport_set_handler(GibberTransport *transport,
gboolean gibber_transport_get_sockaddr (GibberTransport *transport,
struct sockaddr_storage *addr, socklen_t *len);
+gboolean
+gibber_transport_buffer_is_empty (GibberTransport *transport);
+
G_END_DECLS
#endif /* #ifndef __GIBBER_TRANSPORT_H__*/