1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-20 00:15:31 +00:00
elinks/src/terminal/sixel.h
Witold Filipczyk a67188413c [lists] LIST_HEAD -> LIST_HEAD_EL to not clash with libevent's LIST_HEAD. Also added curl implementation of ftpes and sftp
Implementation of ftpes and sftp is based on curl's hiperfifo example. It requires libevent.
ftpes only encrypts control channel. There were problems when both control and data were encrypted. It stucked on SIZE.
Only successful connections work, errors are not handled properly.
2023-06-19 18:43:53 +02:00

43 lines
755 B
C

#ifndef EL__TERMINAL_SIXEL_H
#define EL__TERMINAL_SIXEL_H
#include <sixel.h>
#include "util/lists.h"
#include "util/string.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef CONFIG_LIBSIXEL
struct document;
struct terminal;
struct image {
LIST_HEAD_EL(struct image);
struct string pixels;
int x;
int y;
int width;
int height;
};
void delete_image(struct image *im);
void try_to_draw_images(struct terminal *term);
/* return height of image in terminal rows */
int add_image_to_document(struct document *doc, struct string *pixels, int lineno);
struct image *copy_frame(struct image *src, int box_width, int box_height, int cell_width, int cell_height, int dx, int dy);
#endif
#ifdef __cplusplus
}
#endif
#endif /* EL__TERMINAL_SIXEL_H */