summaryrefslogtreecommitdiff
path: root/gobex/gobex.h
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2012-02-18 17:18:57 +0200
committerMarcel Holtmann <marcel@holtmann.org>2012-12-04 22:22:05 +0100
commitfaac92a4cb2ac06ea998987fb3ce53882b9e1970 (patch)
tree882afc22d50e6ba318bddfe5588947c005ad293e /gobex/gobex.h
parent9e1e47425e1eea7f6300a653fae62ce8ca435eca (diff)
downloadbluez-faac92a4cb2ac06ea998987fb3ce53882b9e1970.tar.gz
gobex: Translate posix error code to proper OBEX response opcode
This patch create a map between posix errors code and OBEX response opcode and use it to generate a proper response in case a transfer failed instead of always responding with internal error.
Diffstat (limited to 'gobex/gobex.h')
-rw-r--r--gobex/gobex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gobex/gobex.h b/gobex/gobex.h
index 1c47c68cf..aacdb5337 100644
--- a/gobex/gobex.h
+++ b/gobex/gobex.h
@@ -125,5 +125,6 @@ guint g_obex_get_rsp_pkt(GObex *obex, GObexPacket *rsp,
gboolean g_obex_cancel_transfer(guint id);
const char *g_obex_strerror(guint8 err_code);
+guint8 g_obex_errno_to_rsp(int err);
#endif /* __GOBEX_H */