fix one too small
[RRG-proxmark3.git] / client / src / aidsearch.h
blobb394d43df632455400fa5fe899598eb865f7ed98
1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
16 // Proxmark3 RDV40 AID list library
17 //-----------------------------------------------------------------------------
19 #ifndef AIDSEARCH_H__
20 #define AIDSEARCH_H__
22 #include "common.h"
24 #include <stdint.h>
25 #include <stdbool.h>
26 #include "jansson.h"
28 int PrintAIDDescription(json_t *xroot, char *aid, bool verbose);
29 int PrintAIDDescriptionBuf(json_t *root, uint8_t *aid, size_t aidlen, bool verbose);
30 json_t *AIDSearchInit(bool verbose);
31 json_t *AIDSearchGetElm(json_t *root, size_t elmindx);
32 bool AIDGetFromElm(json_t *data, uint8_t *aid, size_t aidmaxlen, int *aidlen);
33 int AIDSearchFree(json_t *root);
35 #endif