mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-28 15:33:07 +01:00
20 lines
380 B
C
20 lines
380 B
C
#ifndef PREVIEW_H
|
|
#define PREVIEW_H
|
|
|
|
#include <stdlib.h>
|
|
|
|
typedef struct {
|
|
char *ext, *type, *subtype, *script;
|
|
} Preview;
|
|
|
|
typedef struct {
|
|
char *f, *w, *h, *x, *y;
|
|
} PreviewArgs;
|
|
|
|
void init_previews(Preview *ps, size_t len);
|
|
void cleanup_previews(void);
|
|
Preview *find_preview(char const *ext, char const *mimetype);
|
|
int run_preview(Preview *p, PreviewArgs *pa);
|
|
|
|
#endif
|