added a new parameter for completion flags to input_new
[midnight-commander.git] / src / profile.h
blob7600c20d0de5f1873e41c0e8eb7b5eaa08f8fcee
1 #ifndef MC_PROFILE_H
2 #define MC_PROFILE_H
4 /* Prototypes for the profile management functions */
6 short GetPrivateProfileString (const char * AppName, const char * KeyName,
7 const char * Default, char * ReturnedString,
8 short Size, const char * FileName);
10 int GetProfileString (const char * AppName, const char * KeyName, const char * Default,
11 char * ReturnedString, int Size);
13 int GetPrivateProfileInt (const char * AppName, const char * KeyName, int Default,
14 const char * File);
16 int GetProfileInt (const char * AppName, const char * KeyName, int Default);
18 int WritePrivateProfileString (const char * AppName, const char * KeyName, const char * String,
19 const char * FileName);
21 int WriteProfileString (const char * AppName, const char * KeyName, const char * String);
23 void sync_profiles (void);
25 void free_profiles (void);
26 const char *get_profile_string (const char *AppName, const char *KeyName, const char *Default,
27 const char *FileName);
29 /* New profile functions */
31 /* Returns a pointer for iterating on appname section, on profile file */
32 void *profile_init_iterator (const char *appname, const char *file);
34 /* Returns both the key and the value of the current section. */
35 /* You pass the current iterating pointer and it returns the new pointer */
36 void *profile_iterator_next (void *s, char **key, char **value);
38 /* Removes all the definitions from section appname on file */
39 void profile_clean_section (const char *appname, const char *file);
40 int profile_has_section (const char *section_name, const char *profile);
42 /* Forgets about a .ini file, to disable updating of it */
43 void profile_forget_profile (const char *file);
45 /* Removes information from a profile */
46 void free_profile_name (const char *s);
48 #endif