diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2011-07-01 11:25:20 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-12-04 22:21:58 +0100 |
commit | 680e9abc4b78c755f8c0347f9ff26921c1c42da1 (patch) | |
tree | a99c9f50458b31c2a69b090187063f37f0a8cbd8 /gobex/gobex.h | |
parent | ad811dd51eaee735446d7b53a37cdc1c3d029717 (diff) | |
download | bluez-680e9abc4b78c755f8c0347f9ff26921c1c42da1.tar.gz |
gobex: Split ev_func into req_func and disconn_func
Diffstat (limited to 'gobex/gobex.h')
-rw-r--r-- | gobex/gobex.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gobex/gobex.h b/gobex/gobex.h index 4bf7b1df5..19a0fb75e 100644 --- a/gobex/gobex.h +++ b/gobex/gobex.h @@ -33,7 +33,9 @@ typedef enum { typedef struct _GObex GObex; -typedef void (*GObexEventFunc) (GObex *obex, GError *err, GObexPacket *req, +typedef void (*GObexRequestFunc) (GObex *obex, GObexPacket *req, + gpointer user_data); +typedef void (*GObexDisconnectFunc) (GObex *obex, GError *err, gpointer user_data); typedef void (*GObexResponseFunc) (GObex *obex, GError *err, GObexPacket *rsp, gpointer user_data); @@ -46,7 +48,9 @@ guint g_obex_send_req(GObex *obex, GObexPacket *req, gint timeout, gboolean g_obex_cancel_req(GObex *obex, guint req_id, gboolean remove_callback); -void g_obex_set_event_function(GObex *obex, GObexEventFunc func, +void g_obex_set_request_function(GObex *obex, GObexRequestFunc func, + gpointer user_data); +void g_obex_set_disconnect_function(GObex *obex, GObexDisconnectFunc func, gpointer user_data); GObex *g_obex_new(GIOChannel *io, GObexTransportType transport_type); |