diff options
author | Slawomir Bochenski <lkslawek@gmail.com> | 2011-06-27 16:20:52 +0200 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2011-07-13 11:20:30 +0300 |
commit | 0d90ff4ee2c5e93fe0d6097455ec0201c2e9d048 (patch) | |
tree | bbacbd00a2008e7e545a3131c3e7aafa5eaadf89 /plugins/irmc.c | |
parent | 656d8cdd1eac6c481162d3cc54db11662262ff2e (diff) | |
download | obexd-0d90ff4ee2c5e93fe0d6097455ec0201c2e9d048.tar.gz |
Start OpenOBEX stream automatically
This removes stream argument from service driver get() function. Now the
streaming is started automatically when first portion of data is
received.
Additionally the possibility to not send body header at all is added. This
can be achieved by returning -ENOSTR from mime plugin read() function.
Diffstat (limited to 'plugins/irmc.c')
-rw-r--r-- | plugins/irmc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/irmc.c b/plugins/irmc.c index cd7f386..cc0b9db 100644 --- a/plugins/irmc.c +++ b/plugins/irmc.c @@ -233,7 +233,7 @@ static void *irmc_connect(struct obex_session *os, int *err) } static int irmc_get(struct obex_session *os, obex_object_t *obj, - gboolean *stream, void *user_data) + void *user_data) { struct irmc_session *irmc = user_data; const char *type = obex_get_type(os); @@ -244,7 +244,6 @@ static int irmc_get(struct obex_session *os, obex_object_t *obj, DBG("name %s type %s irmc %p", name, type ? type : "NA", irmc); path = g_strdup(name); - *stream = TRUE; ret = obex_get_stream_start(os, path); |