diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2011-06-27 16:54:59 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-12-04 22:21:56 +0100 |
commit | b76d71e5b21ee1e6197ffd5fe14d6f098385a99b (patch) | |
tree | a14b470edc3507734349e887f9e460af484dd97f /gobex/gobex.h | |
parent | fd01c4044910bd8fa591084fd7084c4ae9a3e491 (diff) | |
download | bluez-b76d71e5b21ee1e6197ffd5fe14d6f098385a99b.tar.gz |
gobex: Refactor reading/writing to allow packet based transport
Diffstat (limited to 'gobex/gobex.h')
-rw-r--r-- | gobex/gobex.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gobex/gobex.h b/gobex/gobex.h index cc56cdf22..3d0163615 100644 --- a/gobex/gobex.h +++ b/gobex/gobex.h @@ -67,6 +67,11 @@ typedef enum { G_OBEX_DATA_REF, } GObexDataPolicy; +typedef enum { + G_OBEX_TRANSPORT_STREAM, + G_OBEX_TRANSPORT_PACKET, +} GObexTransportType; + typedef struct _GObex GObex; typedef struct _GObexPacket GObexPacket; typedef struct _GObexHeader GObexHeader; @@ -110,7 +115,7 @@ gboolean g_obex_cancel_req(GObex *obex, guint req_id); void g_obex_set_request_function(GObex *obex, GObexRequestFunc func, gpointer user_data); -GObex *g_obex_new(GIOChannel *io); +GObex *g_obex_new(GIOChannel *io, GObexTransportType transport_type); GObex *g_obex_ref(GObex *obex); void g_obex_unref(GObex *obex); |