/usr/include/gvnc-1.0/vncframebuffer.h is in libgvnc-1.0-dev 0.5.0-1ubuntu1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 | /*
* GTK VNC Widget
*
* Copyright (C) 2006 Anthony Liguori <anthony@codemonkey.ws>
* Copyright (C) 2009-2010 Daniel P. Berrange <dan@berrange.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.0 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef VNC_FRAMEBUFFER_H
#define VNC_FRAMEBUFFER_H
#include <glib-object.h>
#include <vncpixelformat.h>
#include <vnccolormap.h>
G_BEGIN_DECLS
#define VNC_TYPE_FRAMEBUFFER (vnc_framebuffer_get_type ())
#define VNC_FRAMEBUFFER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VNC_TYPE_FRAMEBUFFER, VncFramebuffer))
#define VNC_IS_FRAMEBUFFER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VNC_TYPE_FRAMEBUFFER))
#define VNC_FRAMEBUFFER_GET_INTERFACE(inst) (G_TYPE_INSTANCE_GET_INTERFACE ((inst), VNC_TYPE_FRAMEBUFFER, VncFramebufferInterface))
typedef struct _VncFramebuffer VncFramebuffer; /* Dummy object */
typedef struct _VncFramebufferInterface VncFramebufferInterface;
struct _VncFramebufferInterface {
GTypeInterface parent;
guint16 (*get_width)(VncFramebuffer *fb);
guint16 (*get_height)(VncFramebuffer *fb);
int (*get_rowstride)(VncFramebuffer *fb);
guint8 *(*get_buffer)(VncFramebuffer *fb);
const VncPixelFormat *(*get_local_format)(VncFramebuffer *fb);
const VncPixelFormat *(*get_remote_format)(VncFramebuffer *fb);
gboolean (*perfect_format_match)(VncFramebuffer *fb);
void (*set_pixel_at)(VncFramebuffer *fb,
guint8 *src, /* One remote pixel */
guint16 x, guint16 y);
void (*fill)(VncFramebuffer *fb,
guint8 *src, /* One remote pixel */
guint16 x, guint16 y,
guint16 width, guint16 height);
void (*copyrect)(VncFramebuffer *fb,
guint16 srcx, guint16 srcy,
guint16 dstx, guint16 dsty,
guint16 width, guint16 height);
void (*blt)(VncFramebuffer *fb,
guint8 *src, /* Remote pixel array */
int rowstride,
guint16 x, guint16 y,
guint16 width, guint16 height);
void (*rgb24_blt)(VncFramebuffer *fb,
guint8 *src, /* rgb24 pixel array */
int rowstride,
guint16 x, guint16 y,
guint16 width, guint16 height);
void (*set_color_map)(VncFramebuffer *fb,
VncColorMap *map);
/* Do not add fields to this struct */
};
GType vnc_framebuffer_get_type(void) G_GNUC_CONST;
guint16 vnc_framebuffer_get_width(VncFramebuffer *fb);
guint16 vnc_framebuffer_get_height(VncFramebuffer *fb);
int vnc_framebuffer_get_rowstride(VncFramebuffer *fb);
guint8 *vnc_framebuffer_get_buffer(VncFramebuffer *fb);
const VncPixelFormat *vnc_framebuffer_get_local_format(VncFramebuffer *fb);
const VncPixelFormat *vnc_framebuffer_get_remote_format(VncFramebuffer *fb);
gboolean vnc_framebuffer_perfect_format_match(VncFramebuffer *fb);
void vnc_framebuffer_set_pixel_at(VncFramebuffer *fb,
guint8 *src, /* One remote pixel */
guint16 x, guint16 y);
void vnc_framebuffer_fill(VncFramebuffer *fb,
guint8 *src, /* One remote pixel */
guint16 x, guint16 y,
guint16 width, guint16 height);
void vnc_framebuffer_copyrect(VncFramebuffer *fb,
guint16 srcx, guint16 srcy,
guint16 dstx, guint16 dsty,
guint16 width, guint16 height);
void vnc_framebuffer_blt(VncFramebuffer *fb,
guint8 *src, /* Remote pixel array */
int rowstride,
guint16 x, guint16 y,
guint16 width, guint16 height);
void vnc_framebuffer_rgb24_blt(VncFramebuffer *fb,
guint8 *src, /* rgb24 pixel array */
int rowstride,
guint16 x, guint16 y,
guint16 width, guint16 height);
void vnc_framebuffer_set_color_map(VncFramebuffer *fb,
VncColorMap *map);
G_END_DECLS
#endif /* VNC_FRAMEBUFFER_H */
/*
* Local variables:
* c-indent-level: 4
* c-basic-offset: 4
* indent-tabs-mode: nil
* End:
*/
|