Re: [openobex-users] [PATCH] Reuse nice as response for server in OBEX_CancelRequest

2010-10-11 Thread Luiz Augusto von Dentz
Hi, On Mon, Oct 11, 2010 at 1:59 PM, Hendrik Sattler wrote: > Zitat von "Luiz Augusto von Dentz" : >> >> You mean OBEX_ResumeRequest take the response, > > That's not what I meant. With OBEX_SuspendRequest(), you can choose the > object to use, with OBEX_ResumeRequest(), it always is the current

Re: [openobex-users] [PATCH] Reuse nice as response for server in OBEX_CancelRequest

2010-10-11 Thread Hendrik Sattler
Zitat von "Luiz Augusto von Dentz" : > You mean OBEX_ResumeRequest take the response, That's not what I meant. With OBEX_SuspendRequest(), you can choose the object to use, with OBEX_ResumeRequest(), it always is the current one. > that could work but of > course we will need to change the lo

Re: [openobex-users] [PATCH] Reuse nice as response for server in OBEX_CancelRequest

2010-10-11 Thread Luiz Augusto von Dentz
Hi, On Mon, Oct 11, 2010 at 10:24 AM, Hendrik Sattler wrote: > Zitat von "Luiz Augusto von Dentz" : >> >> From: Luiz Augusto von Dentz >> >> This make possible to cancel pending operation with a proper error >> instead of always respond using OBEX_RSP_UNAUTHORIZED. > > Ok, I get your point, now

Re: [openobex-users] [PATCH] Reuse nice as response for server in OBEX_CancelRequest

2010-10-11 Thread Hendrik Sattler
Zitat von "Luiz Augusto von Dentz" : > From: Luiz Augusto von Dentz > > This make possible to cancel pending operation with a proper error > instead of always respond using OBEX_RSP_UNAUTHORIZED. Ok, I get your point, now :) OTOH, what if 'nice' is not a negative response? Then, the function na

Re: [openobex-users] [PATCH] Reuse nice as response for server in OBEX_CancelRequest

2010-10-10 Thread Luiz Augusto von Dentz
Hi, On Sat, Oct 9, 2010 at 11:35 PM, Hendrik Sattler wrote: > Am Samstag 09 Oktober 2010, 16:20:03 schrieb Luiz Augusto von Dentz: >> On Fri, Oct 8, 2010 at 7:38 PM, Hendrik Sattler > wrote: >> > Am Freitag 08 Oktober 2010, 14:58:31 schrieb Luiz Augusto von Dentz: >> >> From: Luiz Augusto von De

Re: [openobex-users] [PATCH] Reuse nice as response for server in OBEX_CancelRequest

2010-10-09 Thread Hendrik Sattler
Am Samstag 09 Oktober 2010, 16:20:03 schrieb Luiz Augusto von Dentz: > On Fri, Oct 8, 2010 at 7:38 PM, Hendrik Sattler wrote: > > Am Freitag 08 Oktober 2010, 14:58:31 schrieb Luiz Augusto von Dentz: > >> From: Luiz Augusto von Dentz > >> > >> This make possible to cancel pending operation with

Re: [openobex-users] [PATCH] Reuse nice as response for server in OBEX_CancelRequest

2010-10-09 Thread Luiz Augusto von Dentz
Hi, On Fri, Oct 8, 2010 at 7:38 PM, Hendrik Sattler wrote: > Am Freitag 08 Oktober 2010, 14:58:31 schrieb Luiz Augusto von Dentz: >> From: Luiz Augusto von Dentz >> >> This make possible to cancel pending operation with a proper error >> instead of always respond using OBEX_RSP_UNAUTHORIZED. > >

Re: [openobex-users] [PATCH] Reuse nice as response for server in OBEX_CancelRequest

2010-10-09 Thread Hendrik Sattler
Am Freitag 08 Oktober 2010, 18:38:51 schrieb Hendrik Sattler: > Am Freitag 08 Oktober 2010, 14:58:31 schrieb Luiz Augusto von Dentz: > > From: Luiz Augusto von Dentz > > > > This make possible to cancel pending operation with a proper error > > instead of always respond using OBEX_RSP_UNAUTHORIZE

Re: [openobex-users] [PATCH] Reuse nice as response for server in OBEX_CancelRequest

2010-10-08 Thread Hendrik Sattler
Am Freitag 08 Oktober 2010, 14:58:31 schrieb Luiz Augusto von Dentz: > From: Luiz Augusto von Dentz > > This make possible to cancel pending operation with a proper error > instead of always respond using OBEX_RSP_UNAUTHORIZED. Changing obex_cancelrequest() is not the right aproach for that. OB

[openobex-users] [PATCH] Reuse nice as response for server in OBEX_CancelRequest

2010-10-08 Thread Luiz Augusto von Dentz
From: Luiz Augusto von Dentz This make possible to cancel pending operation with a proper error instead of always respond using OBEX_RSP_UNAUTHORIZED. --- lib/obex.c |4 ++-- lib/obex_main.c |6 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/obex.c b/lib/o