fa2661e7dd8f8a3a43aeceaac6be8247b12e35a2
[platform/upstream/neard.git] / include / ndef.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_NDEF_H
23 #define __NEAR_NDEF_H
24
25 struct near_ndef_record {
26         uint8_t tnf;
27
28         uint8_t *type;
29         size_t type_length;
30
31         uint8_t *payload;
32         size_t payload_length;
33 };
34
35 struct near_ndef {
36         gboolean smart_poster;
37         gboolean handover;
38
39         uint32_t n_records;
40         GList *records;
41 };
42
43 #endif