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