Tizen 2.0 Release
[framework/connectivity/neard.git] / include / tlv.h
1 /*
2  *
3  *  neard - Near Field Communication manager
4  *
5  *  Copyright (C) 2011  Intel Corporation. All rights reserved.
6  *
7  *  This program is free software; you can redistribute it and/or modify
8  *  it under the terms of the GNU General Public License version 2 as
9  *  published by the Free Software Foundation.
10  *
11  *  This program is distributed in the hope that it will be useful,
12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  *  GNU General Public License for more details.
15  *
16  *  You should have received a copy of the GNU General Public License
17  *  along with this program; if not, write to the Free Software
18  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19  *
20  */
21
22 #ifndef __NEAR_TLV_H
23 #define __NEAR_TLV_H
24
25 #define TLV_NULL 0x00
26 #define TLV_LOCK 0x01
27 #define TLV_MEM  0x02
28 #define TLV_NDEF 0x03
29 #define TLV_PROP 0xfd
30 #define TLV_END  0xfe
31
32 uint16_t near_tlv_length(uint8_t *tlv);
33 uint8_t *near_tlv_next(uint8_t *tlv);
34 uint8_t *near_tlv_data(uint8_t *tlv);
35 GList *near_tlv_parse(uint8_t *tlv, size_t tlv_length);
36
37 #endif