jack2 codebase
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.3KB

  1. /******************************************************************************
  2. PORTABLE ROUTINES FOR WRITING PRIVATE PROFILE STRINGS -- by Joseph J. Graf
  3. Header file containing prototypes and compile-time configuration.
  4. [09/05/02] D. Fober - Windows definitions added
  5. ******************************************************************************/
  6. #ifndef __profport__
  7. #define __profport__
  8. #define MAX_LINE_LENGTH 1024
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #ifdef WIN32
  13. #include "Windows.h"
  14. #define get_private_profile_int GetPrivateProfileInt
  15. #define get_private_profile_string GetPrivateProfileString
  16. #define write_private_profile_string WritePrivateProfileString
  17. #define write_private_profile_int WritePrivateProfileInt
  18. #else
  19. int get_private_profile_int (char * section, char * entry, int def, char * file_name);
  20. int get_private_profile_string (char * section, char * entry, char * def, char * buffer, int buffer_len, char * file_name);
  21. int write_private_profile_string (char * section, char * entry, char * buffer, char * file_name);
  22. int write_private_profile_int (char * section, char * entry, int val, char * file_name);
  23. #endif
  24. float get_private_profile_float (char * section, char * entry, float def, char * file_name);
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif //__profport__