diff --git a/src/lib_ccx/lib_ccx.h b/src/lib_ccx/lib_ccx.h index cc54a67c..49d88ffd 100644 --- a/src/lib_ccx/lib_ccx.h +++ b/src/lib_ccx/lib_ccx.h @@ -19,6 +19,7 @@ #include "networking.h" #include "avc_functions.h" +#include "teletext.h" #ifdef WITH_LIBCURL #include diff --git a/src/lib_ccx/teletext.h b/src/lib_ccx/teletext.h index b4625315..cfb7a181 100644 --- a/src/lib_ccx/teletext.h +++ b/src/lib_ccx/teletext.h @@ -7,6 +7,8 @@ //#include +#define MAX_TLT_PAGES 1000 + typedef struct { uint64_t show_timestamp; // show at timestamp (in ms) uint64_t hide_timestamp; // hide at timestamp (in ms) diff --git a/src/lib_ccx/telxcc.c b/src/lib_ccx/telxcc.c index a144b228..f741fdc3 100644 --- a/src/lib_ccx/telxcc.c +++ b/src/lib_ccx/telxcc.c @@ -56,8 +56,6 @@ static const char* TTXT_COLOURS[8] = { "#000000", "#ff0000", "#00ff00", "#ffff00", "#0000ff", "#ff00ff", "#00ffff", "#ffffff" }; -#define MAX_TLT_PAGES 1000 - // 1-byte alignment; just to be sure, this struct is being used for explicit type conversion // FIXME: remove explicit type conversion from buffer to structs