/* Program:   coder.h
   Author:    Norbert Tausch
   Copyright: FREEWARE! ©1994 by Norbert Tausch, Karlstr. 30, D-90763 Fuerth
   Version:   coder.library V7.34
   Release:   15.09.1994

   See docs for more information!
*/


#ifndef LIBRARIES_CODER_H
#define LIBRARIES_CODER_H 1

#ifndef EXEC_LIBRARIES_H
#include <exec/libraries.h>
#endif

struct CoderBase
{
   struct   Library        LibNode;
};

#define CODERNAME "coder.library"

#define CODER_VERSION   7
#define CODER_REVISION  34

#define AMIGABASIC_PROTECTED  (char)244
#define AMIGABASIC_BINARY     (char)245

#define CODER_HIGHER_VERSION  -1
#define CODER_NO_HEADER       0
#define CODER_OK              1
#define CODER_UNKNOWN         0
#define CODER_OLD_HEADER      0
#define CODER_NEW_HEADER      1

#define NORMALCODE_RECOG      0
#define BLUECODE_RECOG        1
#define OTPMORPHCODE_RECOG    2

struct CoderIDStruc
{
   UBYTE    Status;
   UBYTE    Recog;
   UWORD    Length;
};

struct Algorithm
{
   UBYTE    Recog;
   UBYTE    Compatible;
   WORD     CodingOffset;
   WORD     DecodingOffset;
   char     Name[8];
};

struct FuncTable
{
   ULONG    Length;
   UWORD    Number;

   struct   Algorithm   Routine[2];
};

#endif
