Upstream tarball 9440
[amule.git] / src / utils / cas / configfile.h
blobbf252350913c9f16eb98c72673c5de466a41e530
1 /*
2 * Name: Config file functions
4 * Purpose: Read info from casrc ou create one if it doesnt exist
6 * Author: Pedro de Oliveira <falso@rdk.homeip.net>
8 * Copyright (c) 2004-2008 Pedro de Oliveira ( falso@rdk.homeip-net )
9 *
10 * This file is part of aMule.
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the
24 * Free Software Foundation, Inc.,
25 * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
29 #ifndef CAS_CONFIGFILE_H
30 #define CAS_CONFIGFILE_H
32 #define IMG_TEXTLINES 7
34 typedef struct {
35 char font[120];
36 char source[120];
37 char template[120];
38 int x[IMG_TEXTLINES];
39 int y[IMG_TEXTLINES];
40 int enabled[IMG_TEXTLINES];
41 float size;
42 int img_type; // 0 = PNG, else = JPG
43 } CONF;
45 int writeconfig(void);
46 int readconfig(CONF *config);
48 #endif
49 /* // File_checked_for_headers */