/* $Id: cfg.h,v 1.13 2005/05/08 04:32:43 reinelt Exp $ * * config file stuff * * Copyright (C) 1999, 2000 Michael Reinelt * Copyright (C) 2004 The LCD4Linux Team * * This file is part of LCD4Linux. * * LCD4Linux is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * LCD4Linux is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * * $Log: cfg.h,v $ * Revision 1.13 2005/05/08 04:32:43 reinelt * CodingStyle added and applied * * Revision 1.12 2005/01/18 06:30:21 reinelt * added (C) to all copyright statements * * Revision 1.11 2004/06/20 10:09:53 reinelt * * 'const'ified the whole source * * Revision 1.10 2004/01/30 20:57:55 reinelt * HD44780 patch from Martin Hejl * dmalloc integrated * * Revision 1.9 2004/01/14 11:33:00 reinelt * new plugin 'uname' which does what it's called * text widget nearly finished * first results displayed on MatrixOrbital * * Revision 1.8 2004/01/10 20:22:33 reinelt * added new function 'cfg_list()' (not finished yet) * added layout.c (will replace processor.c someday) * added widget_text.c (will be the first and most important widget) * modified lcd4linux.c so that old-style configs should work, too * * Revision 1.7 2004/01/09 04:16:06 reinelt * added 'section' argument to cfg_get(), but NULLed it on all calls by now. * * Revision 1.6 2003/10/05 17:58:50 reinelt * libtool junk; copyright messages cleaned up * * Revision 1.5 2003/09/09 06:54:43 reinelt * new function 'cfg_number()' * * Revision 1.4 2003/08/24 05:17:58 reinelt * liblcd4linux patch from Patrick Schemitz * * Revision 1.3 2003/02/22 07:53:10 reinelt * cfg_get(key,defval) * * Revision 1.2 2000/04/03 04:46:38 reinelt * * added '-c key=val' option * * Revision 1.1 2000/03/10 11:40:47 reinelt * *** empty log message *** * * Revision 1.2 2000/03/06 06:04:06 reinelt * * minor cleanups * * */ #ifndef _CFG_H_ #define _CFG_H_ int cfg_init(const char *file); char *cfg_source(void); int cfg_cmd(const char *arg); char *cfg_list(const char *section); char *cfg_get_raw(const char *section, const char *key, const char *defval); char *cfg_get(const char *section, const char *key, const char *defval); int cfg_number(const char *section, const char *key, const int defval, const int min, const int max, int *value); int cfg_exit(void); #endif linux @ 2003-05-19 05:55:17 by reinelt]reinelt1-2/+5 2003-05-14[lcd4linux @ 2003-05-14 06:17:39 by reinelt]reinelt1-21/+63 2003-04-12[lcd4linux @ 2003-04-12 16:23:10 by reinelt]reinelt1-2/+6 2003-04-07[lcd4linux @ 2003-04-07 06:02:58 by reinelt]reinelt6-221/+245 2003-04-04[lcd4linux @ 2003-04-04 06:01:59 by reinelt]reinelt8-375/+516 2003-02-27[lcd4linux @ 2003-02-27 07:48:57 by reinelt]reinelt2-12/+12 2003-02-27[lcd4linux @ 2003-02-27 07:43:10 by reinelt]reinelt11-750/+2247 2003-02-24[lcd4linux @ 2003-02-24 04:50:57 by reinelt]reinelt1-25/+65 2003-02-22[lcd4linux @ 2003-02-22 07:53:09 by reinelt]reinelt23-97/+166 2003-02-22[lcd4linux @ 2003-02-22 07:23:24 by reinelt]reinelt1-88/+102 2003-02-18[lcd4linux @ 2003-02-18 06:13:44 by reinelt]reinelt2-329/+327 2003-02-17[lcd4linux @ 2003-02-17 06:06:12 by reinelt]reinelt1-1/+10 2003-02-17[lcd4linux @ 2003-02-17 04:27:58 by reinelt]reinelt1-13/+32 2003-02-13[lcd4linux @ 2003-02-13 10:40:17 by reinelt]reinelt2-32/+128 2003-02-05[lcd4linux @ 2003-02-05 04:31:38 by reinelt]reinelt2-8/+29 2003-01-12[lcd4linux @ 2003-01-12 06:51:27 by reinelt]reinelt1-8/+16 2002-12-08[lcd4linux @ 2002-12-08 07:36:06 by reinelt]reinelt11-315/+314 2002-12-06[lcd4linux @ 2002-12-06 07:38:43 by reinelt]reinelt6-1305/+2559 2002-12-05[lcd4linux @ 2002-12-05 19:23:01 by reinelt]reinelt3-7/+16 2002-12-05[lcd4linux @ 2002-12-05 19:12:47 by reinelt]reinelt1-3/+15 2002-12-05[lcd4linux @ 2002-12-05 19:09:57 by reinelt]reinelt6-17/+29 2002-09-12[lcd4linux @ 2002-09-12 05:24:54 by reinelt]reinelt1-478/+199 2002-09-11[lcd4linux @ 2002-09-11 05:32:35 by reinelt]reinelt1-255/+47 2002-09-11[lcd4linux @ 2002-09-11 05:16:32 by reinelt]reinelt8-476/+1335 2002-08-30[lcd4linux @ 2002-08-30 03:54:01 by reinelt]reinelt1-3/+8 2002-08-22[lcd4linux @ 2002-08-22 05:51:36 by reinelt]reinelt1-7/+4 2002-08-21[lcd4linux @ 2002-08-21 06:09:53 by reinelt]reinelt2-10/+48 2002-08-19[lcd4linux @ 2002-08-19 10:51:06 by reinelt]reinelt2-259/+60 2002-08-19[lcd4linux @ 2002-08-19 09:43:43 by reinelt]reinelt1-261/+57 2002-08-19[lcd4linux @ 2002-08-19 09:30:18 by reinelt]reinelt1-256/+106 2002-08-19[lcd4linux @ 2002-08-19 09:11:34 by reinelt]reinelt2-257/+51 2002-08-19[lcd4linux @ 2002-08-19 07:52:19 by reinelt]reinelt3-8/+17 2002-08-19[lcd4linux @ 2002-08-19 07:36:29 by reinelt]reinelt7-359/+481 2002-08-19[lcd4linux @ 2002-08-19 04:41:20 by reinelt]reinelt20-32/+166 2002-08-18[lcd4linux @ 2002-08-18 08:11:11 by reinelt]reinelt1-26/+28 2002-08-17[lcd4linux @ 2002-08-17 14:14:21 by reinelt]reinelt3-67/+101 2002-08-17[lcd4linux @ 2002-08-17 13:10:22 by reinelt]reinelt9-182/+765 2002-08-17[lcd4linux @ 2002-08-17 12:54:08 by reinelt]reinelt1-7/+23 2002-04-30[lcd4linux @ 2002-04-30 07:20:15 by reinelt]reinelt2-173/+129 2002-04-29[lcd4linux @ 2002-04-29 11:00:25 by reinelt]reinelt14-2339/+5100 2001-09-14[lcd4linux @ 2001-09-14 05:57:06 by reinelt]reinelt1-1/+5 2001-09-13[lcd4linux @ 2001-09-13 07:40:57 by reinelt]reinelt1-0/+6 2001-09-12[lcd4linux @ 2001-09-12 06:17:22 by reinelt]reinelt2-1/+8 2001-09-12[lcd4linux @ 2001-09-12 05:58:16 by reinelt]reinelt3-9/+27 2001-09-12[lcd4linux @ 2001-09-12 05:37:22 by reinelt]reinelt4-23/+99 2001-09-11[lcd4linux @ 2001-09-11 06:43:43 by reinelt]reinelt1-1/+10