From c45162aaec3e52df28e06f48399f1dbb9f1ffff4 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Tue, 21 Jun 2011 00:20:51 +0300 Subject: [PATCH] gobex: Add OBEX protocol definitions header file --- gobex/obex.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 gobex/obex.h diff --git a/gobex/obex.h b/gobex/obex.h new file mode 100644 index 000000000..45ef994cd --- /dev/null +++ b/gobex/obex.h @@ -0,0 +1,35 @@ +/* + * + * OBEX library with GLib integration + * + * Copyright (C) 2011 Intel Corporation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +#ifndef __OBEX_H +#define __OBEX_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 +#define G_OBEX_FINAL 0x80 + +#endif /* __GOBEX_H */ -- 2.47.3