- Rearrange reactos.dff according to rosapps rearrange.
[reactos.git] / rosapps / mc / src / profile.h
1 #ifndef __PROFILE_H
2 #define __PROFILE_H
3 /* Prototypes for the profile management functions */
4
5 #ifndef _OS_NT
6 short GetPrivateProfileString (char * AppName, char * KeyName,
7 char * Default, char * ReturnedString,
8 short Size, char * FileName);
9
10 int GetProfileString (char * AppName, char * KeyName, char * Default,
11 char * ReturnedString, int Size);
12
13 int GetPrivateProfileInt (char * AppName, char * KeyName, int Default,
14 char * File);
15
16 int GetProfileInt (char * AppName, char * KeyName, int Default);
17
18 int WritePrivateProfileString (char * AppName, char * KeyName, char * String,
19 char * FileName);
20
21 int WriteProfileString (char * AppName, char * KeyName, char * String);
22 #endif /* not _OS_NT */
23
24 void sync_profiles (void);
25
26 void free_profiles (void);
27 char *get_profile_string (char *AppName, char *KeyName, char *Default,
28 char *FileName);
29
30 /* New profile functions */
31
32 /* Returns a pointer for iterating on appname section, on profile file */
33 void *profile_init_iterator (char *appname, char *file);
34
35 /* Returns both the key and the value of the current section. */
36 /* You pass the current iterating pointer and it returns the new pointer */
37 void *profile_iterator_next (void *s, char **key, char **value);
38
39 /* Removes all the definitions from section appname on file */
40 void profile_clean_section (char *appname, char *file);
41 int profile_has_section (char *section_name, char *profile);
42
43 /* Forgets about a .ini file, to disable updating of it */
44 void profile_forget_profile (char *file);
45
46 /* Removes information from a profile */
47 void free_profile_name (char *s);
48
49 #endif /* __PROFILE_H */