diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2011-07-05 19:36:41 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-12-04 22:21:59 +0100 |
commit | b50f20a501bc0563a66a674bca9dba665aff4202 (patch) | |
tree | 7d9eb31a4c0d96108d2ea5d06f8cf106d2a8a0b9 /gobex/gobex-packet.h | |
parent | 0a4824ddb1c8724a7032935c1e23d726666ac145 (diff) | |
download | bluez-b50f20a501bc0563a66a674bca9dba665aff4202.tar.gz |
gobex: Use GObexDataProducer type instead of (custom) GObexPacketDataFunc
Diffstat (limited to 'gobex/gobex-packet.h')
-rw-r--r-- | gobex/gobex-packet.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gobex/gobex-packet.h b/gobex/gobex-packet.h index ce7844771..669cabf27 100644 --- a/gobex/gobex-packet.h +++ b/gobex/gobex-packet.h @@ -80,15 +80,12 @@ typedef struct _GObexPacket GObexPacket; -typedef gssize (*GObexPacketDataFunc) (GObexPacket *header, void *buf, - gsize len, gpointer user_data); - GObexHeader *g_obex_packet_get_header(GObexPacket *pkt, guint8 id); guint8 g_obex_packet_get_operation(GObexPacket *pkt, gboolean *final); GObexHeader *g_obex_packet_find_header(GObexPacket *pkt, guint8 id); gboolean g_obex_packet_prepend_header(GObexPacket *pkt, GObexHeader *header); gboolean g_obex_packet_add_header(GObexPacket *pkt, GObexHeader *header); -gboolean g_obex_packet_add_body(GObexPacket *pkt, GObexPacketDataFunc func, +gboolean g_obex_packet_add_body(GObexPacket *pkt, GObexDataProducer func, gpointer user_data); gboolean g_obex_packet_set_data(GObexPacket *pkt, const void *data, gsize len, GObexDataPolicy data_policy); |