OSDN Git Service

Fix no pic
[uclinux-h8/uClinux-dist.git] / user / fconfig / crunchfc.h
1 /*
2  * crunchfc.h
3  *
4  * $Id: crunchfc.h,v 1.1 2006/02/13 09:58:08 andrzej Exp $
5  *
6  * Redboot Flash Configuration parser. 
7  * Configuration parsing routines - header. 
8  *
9  * Copyright (C) 2006 Ekiert sp z o.o.
10  * Author: Andrzej Ekiert <a.ekiert@ekiert.com>
11  *
12  * This program is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU General Public License
14  * as published by the Free Software Foundation; either version
15  * 2 of the License, or (at your option) any later version. 
16  */
17
18 #ifndef CRUNCHFC_H
19 #define CRUNCHFC_H
20
21 #include <stdint.h>
22
23 struct config_data {
24         int fd;
25         uint32_t maxlen;
26         uint32_t reallen;
27         uint8_t swab;
28         uint8_t *buf;
29 };
30
31 int8_t verify_fconfig(struct config_data *data);
32 int8_t get_key_value(struct config_data *data, uint8_t *nickname);
33 int8_t set_key_value(struct config_data *data, uint8_t *nickname, void *value);
34 void recalculate_crc(struct config_data *data);
35
36 #endif //CRUNCHFC_H
37