mirror of
https://github.com/TobleMiner/shoreline.git
synced 2025-02-22 14:53:58 +01:00
31 lines
785 B
C
31 lines
785 B
C
#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
|