profile.h

Go to the documentation of this file.
00001 /* Prototypes for the profile management functions */
00002 
00003 #if defined __cplusplus
00004 extern "C" 
00005 {
00006 #endif
00007 
00008       short   GetPrivateProfileString (char *AppName, char *KeyName,
00009                char *Default, char *ReturnedString,
00010                short Size, char *FileName);
00011       
00012       int     GetProfileString (char *AppName, char *KeyName, char *Default,
00013         char *ReturnedString, int Size);
00014       
00015       int     GetPrivateProfileInt (char *AppName, char *KeyName, short Default,
00016             char *File);
00017       
00018       int     GetProfileInt (char *AppName, char *KeyName, int Default);
00019       
00020       int     WritePrivateProfileString (char *AppName, char *KeyName, char *String,
00021            char *FileName);
00022       
00023       int     WriteProfileString (char *AppName, char *KeyName, char *String);
00024       
00025       void    sync_profiles (void);
00026       
00027       void    free_profiles (void);
00028       char   *get_profile_string (char *AppName, char *KeyName, char *Default,
00029           char *FileName);
00030       
00031       /* New profile functions */
00032       
00033       /* Returns a pointer for iterating on appname section, on profile file */
00034       void   *profile_init_iterator (char *appname, char *file);
00035       
00036       /* Returns both the key and the value of the current section. */
00037       /* You pass the current iterating pointer and it returns the new pointer */
00038       void   *profile_iterator_next (void *s, char **key, char **value);
00039       
00040       /* Removes all the definitions from section appname on file */
00041       void    profile_clean_section (char *appname, char *file);
00042       
00043       
00044 #if defined __cplusplus
00045  }
00046 #endif

Generated on 16 Jun 2013 for mollersim by  doxygen 1.6.1