source: MondoRescue/trunk/mondo/src/include/mr_conf.h@ 1106

Last change on this file since 1106 was 1079, checked in by Bruno Cornec, 17 years ago

merge -r1045:1078 £SVN_M/branches/stable

  • Property svn:eol-style set to native
File size: 964 bytes
Line 
1/* mr_conf.h
2 *
3 * $Id$
4 *
5 * based on parse_conf.h (c)2002-2004 Anton Kulchitsky mailto:anton@kulchitsky.org
6 * Review for mondorescue (c) 2006 Bruno Cornec <bruno@mondorescue.org>
7 *
8 * Header file of mr_conf: a very small and simple
9 * library for mondorescue configuration file reading
10 *
11 * Provided under the GPLv2
12 */
13
14#ifndef MR_CONF_H
15#define MR_CONF_H
16
17/* functions (public methods) */
18
19/*initialization and closing*/
20extern int mr_conf_open(const char *filename);
21extern void mr_conf_close(void);
22
23/*read integer number after string str in the current file*/
24extern int mr_conf_iread(const char *field_name);
25
26/*read double/float number after string str in the current file*/
27extern double mr_conf_fread(const char *field_name);
28
29/*
30 * read string after string str in the current file.
31 * This function allocates the string which has to be freed later on
32*/
33extern char *mr_conf_sread(const char *field_name);
34
35#endif /* MR_CONF_H */
Note: See TracBrowser for help on using the repository browser.