8 Oct 2010 14:58
[PATCH] Reuse nice as response for server in OBEX_CancelRequest
Luiz Augusto von Dentz <luiz.dentz <at> gmail.com>
2010-10-08 12:58:31 GMT
2010-10-08 12:58:31 GMT
From: Luiz Augusto von Dentz <luiz.dentz-von <at> nokia.com> 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/obex.c index 00f90d7..270b3ee 100644 --- a/lib/obex.c +++ b/lib/obex.c <at> <at> -520,8 +520,8 <at> <at> int CALLAPI OBEX_Request(obex_t *self, obex_object_t *object) /** Cancel an ongoing operation. \param self OBEX handle - \param nice If true an OBEX Abort will be sent if beeing client - or OBEX_RSP_UNAUTHORIZED as reponse if beeing server. + \param nice If true or > 0 an OBEX Abort will be sent if beeing client + or it will be used as reponse if beeing server. \return -1 on error */ LIB_SYMBOL diff --git a/lib/obex_main.c b/lib/obex_main.c index d38a711..c58b1be 100644 --- a/lib/obex_main.c +++ b/lib/obex_main.c <at> <at> -358,7 +358,11 <at> <at> int obex_cancelrequest(obex_t *self, int nice) if (object == NULL)(Continue reading)
RSS Feed