-
Notifications
You must be signed in to change notification settings - Fork 8
/
vnc.h
31 lines (25 loc) · 785 Bytes
/
vnc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef _VNC_H_
#define _VNC_H_
#include <stdbool.h>
#include <rfb/rfb.h>
#include "framebuffer.h"
#include "frontend.h"
#define VNC_FONT_HEIGHT 16
struct vnc {
rfbScreenInfoPtr server;
rfbFontDataPtr font;
struct fb* fb;
struct fb* fb_overlay;
struct frontend front;
pthread_mutex_t draw_lock;
bool flickerfree;
};
int vnc_alloc(struct frontend** ret, struct fb* fb, void* priv);
int vnc_start(struct frontend* front);
void vnc_free(struct frontend* front);
int vnc_update(struct frontend* front);
int vnc_draw_string(struct frontend* front, unsigned x, unsigned y, char* str);
int vnc_configure_port(struct frontend* front, char* value);
int vnc_configure_font(struct frontend* front, char* value);
int vnc_configure_flicker(struct frontend* front, char* value);
#endif