Remove nvnc_fb_flags
parent
b75eeac03d
commit
dad1948e98
|
@ -31,7 +31,6 @@ struct nvnc_fb {
|
|||
nvnc_fb_release_fn on_release;
|
||||
void* release_context;
|
||||
void* addr;
|
||||
enum nvnc_fb_flags flags;
|
||||
uint16_t width;
|
||||
uint16_t height;
|
||||
int32_t stride;
|
||||
|
|
|
@ -34,10 +34,6 @@ enum nvnc_button_mask {
|
|||
NVNC_SCROLL_DOWN = 1 << 4,
|
||||
};
|
||||
|
||||
enum nvnc_fb_flags {
|
||||
NVNC_FB_PARTIAL = 1 << 0, // The buffer contains only the damaged region
|
||||
};
|
||||
|
||||
typedef void (*nvnc_key_fn)(struct nvnc_client*, uint32_t key,
|
||||
bool is_pressed);
|
||||
typedef void (*nvnc_pointer_fn)(struct nvnc_client*, uint16_t x, uint16_t y,
|
||||
|
@ -89,8 +85,6 @@ struct nvnc_fb* nvnc_fb_from_buffer(void* buffer, uint16_t width,
|
|||
void nvnc_fb_ref(struct nvnc_fb* fb);
|
||||
void nvnc_fb_unref(struct nvnc_fb* fb);
|
||||
|
||||
enum nvnc_fb_flags nvnc_fb_get_flags(const struct nvnc_fb*);
|
||||
void nvnc_fb_set_flags(struct nvnc_fb*, enum nvnc_fb_flags);
|
||||
void nvnc_fb_set_release_fn(struct nvnc_fb* fb, nvnc_fb_release_fn fn,
|
||||
void* context);
|
||||
|
||||
|
|
12
src/fb.c
12
src/fb.c
|
@ -73,18 +73,6 @@ struct nvnc_fb* nvnc_fb_from_buffer(void* buffer, uint16_t width, uint16_t heigh
|
|||
return fb;
|
||||
}
|
||||
|
||||
EXPORT
|
||||
enum nvnc_fb_flags nvnc_fb_get_flags(const struct nvnc_fb* fb)
|
||||
{
|
||||
return fb->flags;
|
||||
}
|
||||
|
||||
EXPORT
|
||||
void nvnc_fb_set_flags(struct nvnc_fb* fb, enum nvnc_fb_flags flags)
|
||||
{
|
||||
fb->flags = flags;
|
||||
}
|
||||
|
||||
EXPORT
|
||||
void* nvnc_fb_get_addr(const struct nvnc_fb* fb)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue