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
|
---|
18 | extern "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 |
|
---|
47 | CHAR szTimestamp[30];
|
---|
48 | } TMFMSGFILE, *PTMFMSGFILE;
|
---|
49 |
|
---|
50 | APIRET tmfOpenMessageFile(const char *pcszMessageFile,
|
---|
51 | PTMFMSGFILE *ppMsgFile);
|
---|
52 |
|
---|
53 | APIRET tmfCloseMessageFile(PTMFMSGFILE *ppMsgFile);
|
---|
54 |
|
---|
55 | APIRET tmfGetMessage(PTMFMSGFILE pMsgFile,
|
---|
56 | PCSZ pcszMessageName,
|
---|
57 | PXSTRING pstr,
|
---|
58 | PCSZ *pTable,
|
---|
59 | ULONG cTableEntries);
|
---|
60 |
|
---|
61 | /* APIRET tmfGetMessage(PCHAR *pTable,
|
---|
62 | ULONG cTable,
|
---|
63 | PBYTE pbBuffer,
|
---|
64 | ULONG cbBuffer,
|
---|
65 | PCSZ pszMessageName,
|
---|
66 | PCSZ pszFile,
|
---|
67 | PULONG pcbMsg);
|
---|
68 |
|
---|
69 | APIRET tmfGetMessageExt(PCHAR* pTable,
|
---|
70 | ULONG cTable,
|
---|
71 | PBYTE pbBuffer,
|
---|
72 | ULONG cbBuffer,
|
---|
73 | PCSZ pszMessageName,
|
---|
74 | PCSZ pszFile,
|
---|
75 | PULONG pcbMsg);
|
---|
76 | */
|
---|
77 |
|
---|
78 | #endif // TMSGFILE_HEADER_INCLUDED
|
---|
79 |
|
---|
80 | #if __cplusplus
|
---|
81 | }
|
---|
82 | #endif
|
---|
83 |
|
---|