4
* Copyright (C) 2006 Anthony Liguori <anthony@codemonkey.ws>
5
* Copyright (C) 2009-2010 Daniel P. Berrange <dan@berrange.com>
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.0 of the License, or (at your option) any later version.
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with this library; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22
#ifndef VNC_COLOR_MAP_H
23
#define VNC_COLOR_MAP_H
26
#include <glib-object.h>
30
#define VNC_TYPE_COLOR_MAP (vnc_color_map_get_type ())
32
typedef struct _VncColorMap VncColorMap;
33
typedef struct _VncColorMapEntry VncColorMapEntry;
38
VncColorMapEntry *colors;
40
/* Do not add fields to this struct */
43
struct _VncColorMapEntry {
48
/* Do not add fields to this struct */
52
GType vnc_color_map_get_type(void);
54
VncColorMap *vnc_color_map_new(guint16 offset, guint16 nentries);
55
VncColorMap *vnc_color_map_copy(VncColorMap *map);
56
void vnc_color_map_free(VncColorMap *map);
58
gboolean vnc_color_map_set(VncColorMap *map,
64
gboolean vnc_color_map_lookup(VncColorMap *map,
73
#endif /* VNC_COLOR_MAP_H */