Remove nvnc_fb_flags

dmabuf-import
Andri Yngvason 2021-09-05 00:41:22 +00:00
parent b75eeac03d
commit dad1948e98
3 changed files with 0 additions and 19 deletions

View File

@ -31,7 +31,6 @@ struct nvnc_fb {
nvnc_fb_release_fn on_release; nvnc_fb_release_fn on_release;
void* release_context; void* release_context;
void* addr; void* addr;
enum nvnc_fb_flags flags;
uint16_t width; uint16_t width;
uint16_t height; uint16_t height;
int32_t stride; int32_t stride;

View File

@ -34,10 +34,6 @@ enum nvnc_button_mask {
NVNC_SCROLL_DOWN = 1 << 4, 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, typedef void (*nvnc_key_fn)(struct nvnc_client*, uint32_t key,
bool is_pressed); bool is_pressed);
typedef void (*nvnc_pointer_fn)(struct nvnc_client*, uint16_t x, uint16_t y, 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_ref(struct nvnc_fb* fb);
void nvnc_fb_unref(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 nvnc_fb_set_release_fn(struct nvnc_fb* fb, nvnc_fb_release_fn fn,
void* context); void* context);

View File

@ -73,18 +73,6 @@ struct nvnc_fb* nvnc_fb_from_buffer(void* buffer, uint16_t width, uint16_t heigh
return fb; 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 EXPORT
void* nvnc_fb_get_addr(const struct nvnc_fb* fb) void* nvnc_fb_get_addr(const struct nvnc_fb* fb)
{ {