mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-12-01 00:43:08 +01:00
24 lines
787 B
C
24 lines
787 B
C
#include <stdlib.h>
|
|
#include <limits.h>
|
|
|
|
#include "gen/prev/scripts.h"
|
|
#include "preview.h"
|
|
|
|
/*
|
|
* This file is supposed to be included in ctpv.c
|
|
*/
|
|
|
|
#define PP(e, t, s, n, p) { #n, e, t, s, prev_scr_##n##_sh, p }
|
|
#define PR(e, t, s, n) PP(e, t, s, n, 0)
|
|
|
|
Preview previews[] = {
|
|
PP(NULL, NULL, NULL, wrapper, INT_MAX),
|
|
PR(NULL, "text", NULL, text),
|
|
PR(NULL, NULL, NULL, any),
|
|
PR("md", NULL, NULL, markdown),
|
|
PR(NULL, "application", "json", json),
|
|
PR(NULL, "image", NULL, image),
|
|
PR(NULL, "video", NULL, video),
|
|
PR(NULL, "application", "pdf", pdf),
|
|
};
|