1
0
mirror of https://github.com/deadw00d/AROS.git synced 2025-12-08 22:46:36 +00:00
Files
AROS-v0/tools/dtdesc/createdtdesc.h
Matthias Rustler a58f5dc15c copyright header fixed
copyright sign unified to (C)
$Id$ removed
Lang: removed
2021-05-02 13:46:08 +02:00

73 lines
1.4 KiB
C

/*
Copyright (C) 2000-2020, The AROS Development Team. All rights reserved.
Desc: DataTypesDescriptorCreator
*/
/*
* includes
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <c_iff.h>
#include "dtdesc.h"
/*
* defines
*/
#define READBUFFERSIZE (256)
/*
* structs
*/
struct DTDesc
{
char *ProgName;
char *InputName;
char *OutputName;
char *DTCD;
FILE *Input;
struct DataTypeHeader DTH;
uint8_t Name[READBUFFERSIZE];
uint8_t Version[READBUFFERSIZE];
uint8_t BaseName[READBUFFERSIZE];
uint8_t Pattern[READBUFFERSIZE];
uint16_t Mask[READBUFFERSIZE];
uint8_t ReadBuffer[READBUFFERSIZE];
};
/*
* prototypes
*/
int main(int argc, char **argv);
int Init(int argc, char **argv, struct DTDesc **TheDTDesc);
void Work(struct DTDesc *TheDTDesc);
void Cleanup(struct DTDesc *TheDTDesc);
void Usage(char *ProgName);
int ParseArgs(int argc, char **argv, struct DTDesc *TheDTDesc);
int OpenInput(struct DTDesc *TheDTDesc);
int HandleLine(struct DTDesc *TheDTDesc);
int HandleName(struct DTDesc *TheDTDesc);
int HandleVersion(struct DTDesc *TheDTDesc);
int HandleBaseName(struct DTDesc *TheDTDesc);
int HandlePattern(struct DTDesc *TheDTDesc);
int HandleMask(struct DTDesc *TheDTDesc);
int HandleGroupID(struct DTDesc *TheDTDesc);
int HandleID(struct DTDesc *TheDTDesc);
int HandleFlags(struct DTDesc *TheDTDesc);
int HandlePriority(struct DTDesc *TheDTDesc);
int WriteOutDTD(struct DTDesc *TheDTDesc);