home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cidsam.zip / HLRFIO.H < prev    next >
C/C++ Source or Header  |  1993-06-28  |  3KB  |  66 lines

  1.                   /*********************************/
  2.                   /*              NOTE             */
  3.                   /*                               */
  4.                   /* This sample code has been     */
  5.                   /* provided by IBM.  It is not   */
  6.                   /* warranted for any particular  */
  7.                   /* use or purpose.               */
  8.                   /*                               */
  9.                   /* IBM releases this code into   */
  10.                   /* the public domain.  You may   */
  11.                   /* use it, modify it, or         */
  12.                   /* incorporate it into other     */
  13.                   /* products without restriction. */
  14.                   /*********************************/
  15. /* external include file for use by callers of the hlrfio routines */
  16.  
  17. #ifndef INCL_BASEINCLUDED
  18.   #define INCL_BASE
  19.   #include <os2.h>
  20. #endif
  21.  
  22. #define LOGMSGFILEEVAR     "LOG_MESSAGE_FILE"
  23. #define DEFAULTLOGMSGFILE  "rfio.msg"
  24. #define LOGFILEEVAR        "LOG_FILE"
  25. #define DEFAULTLOGFILENAME "ainst.log"
  26.  
  27. /***************************************************************************/
  28. /*             Function prototypes                                         */
  29. /***************************************************************************/
  30. UINT RFOpen(char *pszFilename);
  31. UINT RFClose(void);
  32. UINT RFGetNextKeyword(char **ppszKw, char **ppszVal, UINT *puiType);
  33. UINT RFGetNextKwdInList(char **ppszStart, char **ppszKw, char **ppszVal,
  34.                         UINT *puiType);
  35. char *RFCopyString(char *string);
  36. void *RFCopyList(void *from);
  37. void *RFMergeLists(void *list1, void *list2);
  38. UINT RFSizeOfList(void *list);
  39.  
  40. /***************************************************************************/
  41. /*             Message file message numbers                                */
  42. /***************************************************************************/
  43. #define HRF_OOS_ERROR             1
  44. #define HRF_OPEN_MAIN_FILE_ERROR  2
  45. #define HRF_SYNTAX_ERROR          3
  46. #define HRF_DOSIO_ERROR           4
  47. #define HRF_OPEN_IMBED_FILE_ERROR 5
  48. #define HRF_BAD_GETNEXT_RC        6
  49. #define HRF_LIST_OOS_ERROR        7
  50. #define HRF_LIST_SYNTAX_ERROR     8
  51. #define HRF_LIST_DOSIO_ERROR      9
  52. #define HRF_BAD_LGETNEXT_RC      10
  53.  
  54. /***************************************************************************/
  55. /*             Types of values returned by GetNext functions               */
  56. /***************************************************************************/
  57. #define RFHLIST   13
  58. #define RFHSTRING  0
  59.  
  60. /***************************************************************************/
  61. /*             Return codes returned by the high-level APIs                */
  62. /***************************************************************************/
  63. #define RFH0       0
  64. #define RFHEOF     2
  65. #define RFHERR     3
  66.