fix little endian vs big endian in the macros... again... but this time correct
[RRG-proxmark3.git] / client / src / aidsearch.h
blobe3783fd71e25cfa25c551d748474a5ad11d282f2
1 //-----------------------------------------------------------------------------
2 // Copyright (C) 2019 merlokk
3 //
4 // This code is licensed to you under the terms of the GNU GPL, version 2 or,
5 // at your option, any later version. See the LICENSE.txt file for the text of
6 // the license.
7 //-----------------------------------------------------------------------------
8 // Proxmark3 RDV40 AID list library
9 //-----------------------------------------------------------------------------
11 #ifndef AIDSEARCH_H__
12 #define AIDSEARCH_H__
14 #include "common.h"
16 #include <stdint.h>
17 #include <stdbool.h>
18 #include "jansson.h"
20 int PrintAIDDescription(json_t *xroot, char *aid, bool verbose);
21 int PrintAIDDescriptionBuf(json_t *root, uint8_t *aid, size_t aidlen, bool verbose);
22 json_t *AIDSearchInit(bool verbose);
23 json_t *AIDSearchGetElm(json_t *root, size_t elmindx);
24 bool AIDGetFromElm(json_t *data, uint8_t *aid, size_t aidmaxlen, int *aidlen);
25 int AIDSearchFree(json_t *root);
27 #endif