diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2011-07-03 12:21:58 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-12-04 22:21:58 +0100 |
commit | 0107b8f7980348b41484350706d2df000c1622c2 (patch) | |
tree | c46da59ec33548924bcabea9db289ea2dd75ab30 /gobex/gobex-packet.h | |
parent | 57478308afc225278aef2a18e9123fcf44bd01ca (diff) | |
download | bluez-0107b8f7980348b41484350706d2df000c1622c2.tar.gz |
gobex: Add common response codes to gobex-packet.h
Diffstat (limited to 'gobex/gobex-packet.h')
-rw-r--r-- | gobex/gobex-packet.h | 58 |
1 files changed, 50 insertions, 8 deletions
diff --git a/gobex/gobex-packet.h b/gobex/gobex-packet.h index 40580cb9f..299e7f029 100644 --- a/gobex/gobex-packet.h +++ b/gobex/gobex-packet.h @@ -27,14 +27,56 @@ #include <gobex/gobex-defs.h> #include <gobex/gobex-header.h> -/* Opcodes */ -#define G_OBEX_OP_CONNECT 0x00 -#define G_OBEX_OP_DISCONNECT 0x01 -#define G_OBEX_OP_PUT 0x02 -#define G_OBEX_OP_GET 0x03 -#define G_OBEX_OP_SETPATH 0x05 -#define G_OBEX_OP_SESSION 0x07 -#define G_OBEX_OP_ABORT 0x7f +/* Request opcodes */ +#define G_OBEX_OP_CONNECT 0x00 +#define G_OBEX_OP_DISCONNECT 0x01 +#define G_OBEX_OP_PUT 0x02 +#define G_OBEX_OP_GET 0x03 +#define G_OBEX_OP_SETPATH 0x05 +#define G_OBEX_OP_ACTION 0x06 +#define G_OBEX_OP_SESSION 0x07 +#define G_OBEX_OP_ABORT 0x7f + +/* Response codes */ +#define G_OBEX_RSP_CONTINUE 0x10 +#define G_OBEX_RSP_SUCCESS 0x20 +#define G_OBEX_RSP_SUCCESS 0x20 +#define G_OBEX_RSP_CREATED 0x21 +#define G_OBEX_RSP_ACCEPTED 0x22 +#define G_OBEX_RSP_NON_AUTHORITATIVE 0x23 +#define G_OBEX_RSP_NO_CONTENT 0x24 +#define G_OBEX_RSP_RESET_CONTENT 0x25 +#define G_OBEX_RSP_PARTIAL_CONTENT 0x26 +#define G_OBEX_RSP_MULTIPLE_CHOICES 0x30 +#define G_OBEX_RSP_MOVED_PERMANENTLY 0x31 +#define G_OBEX_RSP_MOVED_TEMPORARILY 0x32 +#define G_OBEX_RSP_SEE_OTHER 0x33 +#define G_OBEX_RSP_NOT_MODIFIED 0x34 +#define G_OBEX_RSP_USE_PROXY 0x35 +#define G_OBEX_RSP_BAD_REQUEST 0x40 +#define G_OBEX_RSP_UNAUTHORIZED 0x41 +#define G_OBEX_RSP_PAYMENT_REQUIRED 0x42 +#define G_OBEX_RSP_FORBIDDEN 0x43 +#define G_OBEX_RSP_NOT_FOUND 0x44 +#define G_OBEX_RSP_METHOD_NOT_ALLOWED 0x45 +#define G_OBEX_RSP_NOT_ACCEPTABLE 0x46 +#define G_OBEX_RSP_PROXY_AUTH_REQUIRED 0x47 +#define G_OBEX_RSP_REQUEST_TIME_OUT 0x48 +#define G_OBEX_RSP_CONFLICT 0x49 +#define G_OBEX_RSP_GONE 0x4a +#define G_OBEX_RSP_LENGTH_REQUIRED 0x4b +#define G_OBEX_RSP_PRECONDITION_FAILED 0x4c +#define G_OBEX_RSP_REQ_ENTITY_TOO_LARGE 0x4d +#define G_OBEX_RSP_REQ_URL_TOO_LARGE 0x4e +#define G_OBEX_RSP_UNSUPPORTED_MEDIA_TYPE 0x4f +#define G_OBEX_RSP_INTERNAL_SERVER_ERROR 0x50 +#define G_OBEX_RSP_NOT_IMPLEMENTED 0x51 +#define G_OBEX_RSP_BAD_GATEWAY 0x52 +#define G_OBEX_RSP_SERVICE_UNAVAILABLE 0x53 +#define G_OBEX_RSP_GATEWAY_TIMEOUT 0x54 +#define G_OBEX_RSP_VERSION_NOT_SUPPORTED 0x55 +#define G_OBEX_RSP_DATABASE_FULL 0x60 +#define G_OBEX_RSP_DATABASE_LOCKED 0x61 typedef struct _GObexPacket GObexPacket; |