corrected some file operations dialog msgs
[midnight-commander.git] / src / profile.h
blob5c782c34b64d5659e9878bb588ead82f93eac8ca
1 #ifndef __PROFILE_H
2 #define __PROFILE_H
3 /* Prototypes for the profile management functions */
5 #ifndef NATIVE_WIN32
6 short GetPrivateProfileString (const char * AppName, char * KeyName,
7 char * Default, char * ReturnedString,
8 short Size, char * FileName);
10 int GetProfileString (const char * AppName, char * KeyName, char * Default,
11 char * ReturnedString, int Size);
13 int GetPrivateProfileInt (const char * AppName, char * KeyName, int Default,
14 char * File);
16 int GetProfileInt (const char * AppName, char * KeyName, int Default);
18 int WritePrivateProfileString (const char * AppName, char * KeyName, char * String,
19 char * FileName);
21 int WriteProfileString (const char * AppName, char * KeyName, char * String);
22 #endif /* not NATIVE_WIN32 */
24 void sync_profiles (void);
26 void free_profiles (void);
27 char *get_profile_string (const char *AppName, char *KeyName, char *Default,
28 char *FileName);
30 /* New profile functions */
32 /* Returns a pointer for iterating on appname section, on profile file */
33 void *profile_init_iterator (char *appname, char *file);
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);
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);
43 /* Forgets about a .ini file, to disable updating of it */
44 void profile_forget_profile (char *file);
46 /* Removes information from a profile */
47 void free_profile_name (char *s);
49 #endif /* __PROFILE_H */