ctpv/preview.h

21 lines
422 B
C
Raw Normal View History

2022-05-22 09:55:04 +02:00
#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);
2022-05-22 22:07:08 +02:00
Preview **get_previews_list(size_t *len);
2022-05-22 09:55:04 +02:00
#endif