mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-30 03:26:23 -04:00
a67188413c
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.
43 lines
755 B
C
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 */
|