source: trunk/include/helpers/tmsgfile.h@ 115

Last change on this file since 115 was 113, checked in by umoeller, 24 years ago

Misc updates.

  • Property svn:eol-style set to CRLF
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1
2/*
3 *@@sourcefile tmsgfile.h:
4 * header file for tmsgfile.c. See notes there.
5 *
6 * This file is entirely new with V0.9.0.
7 *
8 * Note: Version numbering in this file relates to XWorkplace version
9 * numbering.
10 *
11 *@@include #include <os2.h>
12 *@@include #include "helpers\tree.h"
13 *@@include #include "helpers\xstring.h"
14 *@@include #include "helpers\tmsgfile.h"
15 */
16
17#if __cplusplus
18extern "C" {
19#endif
20
21#ifndef TMSGFILE_HEADER_INCLUDED
22 #define TMSGFILE_HEADER_INCLUDED
23
24 #ifndef XSTRING_HEADER_INCLUDED
25 #error tmsgfile.h requires xstring.h to be included first.
26 #endif
27
28 #ifndef XWPTREE_INCLUDED
29 #error tmsgfile.h requires tree.h to be included first.
30 #endif
31
32 /*
33 *@@ TMFMSGFILE:
34 *
35 *@@added V0.9.16 (2001-10-08) [umoeller]
36 */
37
38 typedef struct _TMFMSGFILE
39 {
40 PSZ pszFilename; // copy of .TMF file name
41
42 XSTRING strContent; // file's full contents (converted to C LF format)
43
44 TREE *IDsTreeRoot; // root of tree with MSGENTRY's (a TREE* really)
45 ULONG cIDs; // count of entries in the tree
46 } TMFMSGFILE, *PTMFMSGFILE;
47
48 APIRET tmfOpenMessageFile(const char *pcszMessageFile,
49 PTMFMSGFILE *ppMsgFile);
50
51 APIRET tmfCloseMessageFile(PTMFMSGFILE *ppMsgFile);
52
53 APIRET tmfGetMessage(PTMFMSGFILE pMsgFile,
54 PCSZ pcszMessageName,
55 PXSTRING pstr,
56 PSZ *pTable,
57 ULONG cTableEntries);
58
59 /* APIRET tmfGetMessage(PCHAR *pTable,
60 ULONG cTable,
61 PBYTE pbBuffer,
62 ULONG cbBuffer,
63 PCSZ pszMessageName,
64 PCSZ pszFile,
65 PULONG pcbMsg);
66
67 APIRET tmfGetMessageExt(PCHAR* pTable,
68 ULONG cTable,
69 PBYTE pbBuffer,
70 ULONG cbBuffer,
71 PCSZ pszMessageName,
72 PCSZ pszFile,
73 PULONG pcbMsg);
74 */
75
76#endif // TMSGFILE_HEADER_INCLUDED
77
78#if __cplusplus
79}
80#endif
81
Note: See TracBrowser for help on using the repository browser.