1 /* Copyright © 2012 Brandon L Black <blblack@gmail.com>
2  *
3  * This file is part of gdnsd.
4  *
5  * gdnsd-plugin-geoip is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * gdnsd-plugin-geoip is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with gdnsd.  If not, see <http://www.gnu.org/licenses/>.
17  *
18  */
19 
20 #ifndef FIPS104_H
21 #define FIPS104_H
22 
23 #include <gdnsd/compiler.h>
24 
25 #include <inttypes.h>
26 
27 typedef struct _fips_t fips_t;
28 
29 F_NONNULL
30 fips_t* fips_init(const char* pathname);
31 
32 F_PURE F_NONNULL
33 const char* fips_lookup(const fips_t* fips, const uint32_t key);
34 
35 #endif // FIPS104_H
36