Added missing properties.
[tangerine.git] / tools / dtdesc / createdtdesc.h
blob1570883ecce884bada089bdbd4480dfa30a8f89f
1 /*
2 Copyright © 2000, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: DataTypesDescriptorCreator
6 Lang: English.
7 */
9 /*
10 * includes
13 #include <stdlib.h>
14 #include <stdio.h>
15 #include <string.h>
17 #include <c_iff.h>
19 #include "dtdesc.h"
22 * defines
25 #define READBUFFERSIZE (256)
28 * structs
31 struct DTDesc
33 char *ProgName;
34 char *InputName;
35 char *OutputName;
36 FILE *Input;
38 struct DataTypeHeader DTH;
39 uint8_t Name[READBUFFERSIZE];
40 uint8_t Version[READBUFFERSIZE];
41 uint8_t BaseName[READBUFFERSIZE];
42 uint8_t Pattern[READBUFFERSIZE];
43 uint16_t Mask[READBUFFERSIZE];
45 uint8_t ReadBuffer[READBUFFERSIZE];
49 * prototypes
52 int main(int argc, char **argv);
53 int Init(int argc, char **argv, struct DTDesc **TheDTDesc);
54 void Work(struct DTDesc *TheDTDesc);
55 void Cleanup(struct DTDesc *TheDTDesc);
57 void Usage(char *ProgName);
58 int ParseArgs(int argc, char **argv, struct DTDesc *TheDTDesc);
59 int OpenInput(struct DTDesc *TheDTDesc);
61 int HandleLine(struct DTDesc *TheDTDesc);
62 int HandleName(struct DTDesc *TheDTDesc);
63 int HandleVersion(struct DTDesc *TheDTDesc);
64 int HandleBaseName(struct DTDesc *TheDTDesc);
65 int HandlePattern(struct DTDesc *TheDTDesc);
66 int HandleMask(struct DTDesc *TheDTDesc);
67 int HandleGroupID(struct DTDesc *TheDTDesc);
68 int HandleID(struct DTDesc *TheDTDesc);
69 int HandleFlags(struct DTDesc *TheDTDesc);
70 int HandlePriority(struct DTDesc *TheDTDesc);
72 int WriteOutDTD(struct DTDesc *TheDTDesc);