Imported Upstream version 0.1.0+git20131207+e452e83
[deb_libhybris.git] / hybris / libnfc_ndef_nxp / libnfc_ndef_nxp.c
1 /*
2 * Copyright (C) 2013 Jolla Ltd.
3 * Contact: Thomas Perl <thomas.perl@jollamobile.com>
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 */
18
19 /**
20 * Bindings generated using:
21 * https://github.com/thp/libhybris-nfc-wrapper-generator
22 **/
23
24 #include <libnfc-nxp/phNfcStatus.h>
25 #include <libnfc-nxp/phNfcTypes.h>
26 #include <libnfc-nxp/phNfcIoctlCode.h>
27 #include <libnfc-nxp/phLibNfc.h>
28 #include <libnfc-nxp/phDal4Nfc_messageQueueLib.h>
29 #include <libnfc-nxp/phFriNfc_NdefMap.h>
30
31 #include <dlfcn.h>
32 #include <stddef.h>
33 #include <stdlib.h>
34
35 #include <hybris/internal/binding.h>
36
37 HYBRIS_LIBRARY_INITIALIZE(libnfc_ndef_so, "/system/lib/libnfc_ndef.so");
38
39 HYBRIS_IMPLEMENT_FUNCTION5(libnfc_ndef_so, NFCSTATUS, phFriNfc_NdefRecord_GetRecords, uint8_t *, uint32_t, uint8_t **, uint8_t *, uint32_t *);
40 HYBRIS_IMPLEMENT_FUNCTION1(libnfc_ndef_so, uint32_t, phFriNfc_NdefRecord_GetLength, phFriNfc_NdefRecord_t *);
41 HYBRIS_IMPLEMENT_FUNCTION2(libnfc_ndef_so, NFCSTATUS, phFriNfc_NdefRecord_Parse, phFriNfc_NdefRecord_t *, uint8_t *);
42 HYBRIS_IMPLEMENT_FUNCTION4(libnfc_ndef_so, NFCSTATUS, phFriNfc_NdefRecord_Generate, phFriNfc_NdefRecord_t *, uint8_t *, uint32_t, uint32_t *);
43 /* XXX No prototype for exported symbol: __on_dlclose */