This is the TAP API for the Topfield 4000 PVR receiver.
Most TAP functions are now named the same as their
counterparts for the TF5000 in the official TF5000 API.

The old names are still available, if you define
#define compatibility_functions
before #define "tap.h"

All functions are described directly above their
declaration. You may refer to the TF5000 API definition
to get additional information on the functions, because
the two receivers are quite similar.

There are, however, some important differences:
1. The TF4000 uses 256 colors with a palette, while the
   TF5000 uses high color mode (32768 colors + transparency).
   Refer to the setuserpalette(char* my_palette) function
   to check how a custom palette can be set.
2. There are two callbacks on the TF4000:
   static int event_handler(int code)    with code the remote
                                         control code, and
   static int tsr_handler(int code)      with code a tick count
   while on the TF5000 there is only one:
   dword TAP_EventHandler( word event, dword param1, dword param2 )
3. Not all functions have the exact same number of parameters,
   please refer to the header functions.

Christian Ghisler
chris1@ghisler.com
16. October 2003