view libutil/dbread.h @ 93:6041c601304d

fcsim1-mkprov: revert OTA key addition It appears that GrcardSIM2 cards (which is what we got for FCSIM1) do not support OTA after all, contrary to what we were previously led to believe by some tech support emails from Grcard - apparently those support emails and OTA descriptions referred to some other card model(s).
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 21 Apr 2021 05:38:39 +0000
parents fa81221ac9b6
children
line wrap: on
line source

/*
 * This header file defines the structure used for reading
 * key=value database files.
 */

#define	DBREAD_LINEBUF_SIZE	1024
#define	DBREAD_MAX_KV_PAIRS	32

struct dbread_kv {
	char	*key;
	char	*value;
};

struct dbread_state {
	char	linebuf[DBREAD_LINEBUF_SIZE];
	struct	dbread_kv kv_pairs[DBREAD_MAX_KV_PAIRS];
	unsigned num_kv_pairs;
};

extern char *dbread_find_key();
extern char *dbread_find_key_req();