"Fossies" - the Fresh Open Source Software Archive 
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1 /* Copyright (C) 2001-2002 Ghostgum Software Pty Ltd. All rights reserved.
2
3 This software is provided AS-IS with no warranty, either express or
4 implied.
5
6 This software is distributed under licence and may not be copied,
7 modified or distributed except as expressly authorised under the terms
8 of the licence contained in the file LICENCE in this distribution.
9
10 For more information about licensing, please refer to
11 http://www.ghostgum.com.au/ or contact Ghostsgum Software Pty Ltd,
12 218 Gallaghers Rd, Glen Waverley VIC 3150, AUSTRALIA,
13 Fax +61 3 9886 6616.
14 */
15
16 /* $Id: cprofile.h,v 1.2 2002/05/27 09:43:38 ghostgum Exp $ */
17 /* Windows style INI files */
18
19 /* Public */
20 #ifndef PROFILE_TYPEDEF
21 #define PROFILE_TYPEDEF
22 typedef struct PROFILE_s PROFILE;
23 #endif
24
25 PROFILE * profile_open(LPCTSTR filename);
26 int profile_read_string(PROFILE *prf, const char *section, const char *entry,
27 const char *def, char *buffer, int len);
28 BOOL profile_write_string(PROFILE *prf, const char *section, const char *entry,
29 const char *value);
30 BOOL profile_close(PROFILE *prf);
31
32 /****************************************************/
33 /* Private */
34 #ifdef DEFINE_CPROFILE
35
36 typedef struct prfentry_s prfentry;
37 typedef struct prfsection_s prfsection;
38
39 struct prfentry_s {
40 char *name;
41 char *value;
42 prfentry *next;
43 };
44
45 struct prfsection_s {
46 char *name;
47 prfentry *entry;
48 prfsection *next;
49 };
50
51 #ifdef NOTUSED
52 typedef struct prop_item_s prop_item;
53 struct prop_item_s {
54 char name[MAXSTR];
55 char value[MAXSTR];
56 };
57 #endif
58
59 struct PROFILE_s {
60 TCHAR *name;
61 FILE *file;
62 BOOL changed;
63 prfsection *section;
64 };
65 #endif
66