Last change
on this file since 108 was 108, checked in by umoeller, 24 years ago |
Lots of updates from the last week for conditional compiles and other stuff.
|
-
Property svn:eol-style
set to
CRLF
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
2.2 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 "tmsgfile.h"
|
---|
13 | */
|
---|
14 |
|
---|
15 | #if __cplusplus
|
---|
16 | extern "C" {
|
---|
17 | #endif
|
---|
18 |
|
---|
19 | #ifndef TMSGFILE_HEADER_INCLUDED
|
---|
20 | #define TMSGFILE_HEADER_INCLUDED
|
---|
21 |
|
---|
22 | #ifndef XSTRING_HEADER_INCLUDED
|
---|
23 | #error tmsgfile.h requires xstring.h to be included first.
|
---|
24 | #endif
|
---|
25 |
|
---|
26 | #ifndef XWPTREE_INCLUDED
|
---|
27 | #error tmsgfile.h requires tree.h to be included first.
|
---|
28 | #endif
|
---|
29 |
|
---|
30 | /*
|
---|
31 | *@@ TMFMSGFILE:
|
---|
32 | *
|
---|
33 | *@@added V0.9.16 (2001-10-08) [umoeller]
|
---|
34 | */
|
---|
35 |
|
---|
36 | typedef struct _TMFMSGFILE
|
---|
37 | {
|
---|
38 | PSZ pszFilename; // copy of .TMF file name
|
---|
39 |
|
---|
40 | XSTRING strContent; // file's full contents (converted to C LF format)
|
---|
41 |
|
---|
42 | TREE *IDsTreeRoot; // root of tree with MSGENTRY's (a TREE* really)
|
---|
43 | ULONG cIDs; // count of entries in the tree
|
---|
44 | } TMFMSGFILE, *PTMFMSGFILE;
|
---|
45 |
|
---|
46 | APIRET tmfOpenMessageFile(const char *pcszMessageFile,
|
---|
47 | PTMFMSGFILE *ppMsgFile);
|
---|
48 |
|
---|
49 | APIRET tmfCloseMessageFile(PTMFMSGFILE *ppMsgFile);
|
---|
50 |
|
---|
51 | APIRET tmfGetMessage(PTMFMSGFILE pMsgFile,
|
---|
52 | PCSZ pcszMessageName,
|
---|
53 | PXSTRING pstr,
|
---|
54 | PSZ *pTable,
|
---|
55 | ULONG cTableEntries);
|
---|
56 |
|
---|
57 | /* APIRET tmfGetMessage(PCHAR *pTable,
|
---|
58 | ULONG cTable,
|
---|
59 | PBYTE pbBuffer,
|
---|
60 | ULONG cbBuffer,
|
---|
61 | PCSZ pszMessageName,
|
---|
62 | PCSZ pszFile,
|
---|
63 | PULONG pcbMsg);
|
---|
64 |
|
---|
65 | APIRET tmfGetMessageExt(PCHAR* pTable,
|
---|
66 | ULONG cTable,
|
---|
67 | PBYTE pbBuffer,
|
---|
68 | ULONG cbBuffer,
|
---|
69 | PCSZ pszMessageName,
|
---|
70 | PCSZ pszFile,
|
---|
71 | PULONG pcbMsg);
|
---|
72 | */
|
---|
73 |
|
---|
74 | #endif // TMSGFILE_HEADER_INCLUDED
|
---|
75 |
|
---|
76 | #if __cplusplus
|
---|
77 | }
|
---|
78 | #endif
|
---|
79 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.