Last change
on this file since 1047 was 852, checked in by Bruno Cornec, 18 years ago |
License is GPLv2 for new files introduced
|
File size:
960 bytes
|
Rev | Line | |
---|
[767] | 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 | *
|
---|
[768] | 8 | * Header file of mr_conf: a very small and simple
|
---|
[767] | 9 | * library for mondorescue configuration file reading
|
---|
| 10 | *
|
---|
[852] | 11 | * Provided under the GPLv2
|
---|
[767] | 12 | */
|
---|
| 13 |
|
---|
| 14 | #ifndef MR_CONF_H
|
---|
| 15 | #define MR_CONF_H
|
---|
| 16 |
|
---|
| 17 | /* functions (public methods) */
|
---|
| 18 |
|
---|
| 19 | /*initialization and closing*/
|
---|
[783] | 20 | extern int mr_conf_open(const char *filename);
|
---|
| 21 | extern void mr_conf_close();
|
---|
[767] | 22 |
|
---|
| 23 | /*read integer number after string str in the current file*/
|
---|
[783] | 24 | extern int mr_conf_iread(const char *field_name);
|
---|
[767] | 25 |
|
---|
| 26 | /*read double/float number after string str in the current file*/
|
---|
[783] | 27 | extern double mr_conf_fread(const char *field_name);
|
---|
[767] | 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 | */
|
---|
[783] | 33 | extern char *mr_conf_sread(const char *field_name);
|
---|
[767] | 34 |
|
---|
| 35 | #endif /* MR_CONF_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.