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-defs.h | |
parent | 0a4824ddb1c8724a7032935c1e23d726666ac145 (diff) | |
download | bluez-b50f20a501bc0563a66a674bca9dba665aff4202.tar.gz |
gobex: Use GObexDataProducer type instead of (custom) GObexPacketDataFunc
Diffstat (limited to 'gobex/gobex-defs.h')
-rw-r--r-- | gobex/gobex-defs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gobex/gobex-defs.h b/gobex/gobex-defs.h index 867307749..776615ff2 100644 --- a/gobex/gobex-defs.h +++ b/gobex/gobex-defs.h @@ -39,6 +39,10 @@ typedef enum { G_OBEX_ERROR_FAILED, } GObexError; +typedef gssize (*GObexDataProducer) (void *buf, gsize len, gpointer user_data); +typedef gboolean (*GObexDataConsumer) (const void *buf, gsize len, + gpointer user_data); + #define G_OBEX_ERROR g_obex_error_quark() GQuark g_obex_error_quark(void); |