~ubuntu-branches/ubuntu/vivid/gtk-vnc/vivid

« back to all changes in this revision

Viewing changes to src/vnccolormap.h

  • Committer: Bazaar Package Importer
  • Author(s): Guido Günther
  • Date: 2010-07-16 17:55:31 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: james.westby@ubuntu.com-20100716175531-vnolppaqgmo3rqij
Tags: 0.4.1-1
* [2703df5] Imported Upstream version 0.4.1
* [5a5910e] Drop patches applied upstream 
      0001-say-disconnected-from-server-only-once-connected.patch
      0002-remove-WERROR_CFLAGS.patch
      0004-Don-t-use-PATH_MAX.patch
      0005-Drop-space-after-Wl-in-libgtk_vnc_1_0_la_LDFLAGS.patch
      0006-Add-Wl-since-no-undefined-is-a-linker-option.patch
      0007-Explicitly-link-against-X11-libs-for-XkbGetKeyboard.patch
      0008-Add-missing-symbols.patch
      0009-Fix-missing-intialisation-of-sysdir-and-uderdir.patch
* [e3ed1d0] No need to run autoreconf anymore
* [1529b9a] No static libs built
* [15068ef] Update symbols file with new symbols
* [337c397] Bump standards version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * GTK VNC Widget
 
3
 *
 
4
 * Copyright (C) 2006  Anthony Liguori <anthony@codemonkey.ws>
 
5
 * Copyright (C) 2009-2010 Daniel P. Berrange <dan@berrange.com>
 
6
 *
 
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.
 
11
 *
 
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.
 
16
 *
 
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
 
20
 */
 
21
 
 
22
#ifndef VNC_COLOR_MAP_H
 
23
#define VNC_COLOR_MAP_H
 
24
 
 
25
#include <glib.h>
 
26
#include <glib-object.h>
 
27
 
 
28
G_BEGIN_DECLS
 
29
 
 
30
#define VNC_TYPE_COLOR_MAP            (vnc_color_map_get_type ())
 
31
 
 
32
typedef struct _VncColorMap VncColorMap;
 
33
typedef struct _VncColorMapEntry VncColorMapEntry;
 
34
 
 
35
struct _VncColorMap {
 
36
        guint16 offset;
 
37
        guint16 size;
 
38
        VncColorMapEntry *colors;
 
39
 
 
40
        /* Do not add fields to this struct */
 
41
};
 
42
 
 
43
struct _VncColorMapEntry {
 
44
        guint16 red;
 
45
        guint16 green;
 
46
        guint16 blue;
 
47
 
 
48
        /* Do not add fields to this struct */
 
49
};
 
50
 
 
51
 
 
52
GType vnc_color_map_get_type(void);
 
53
 
 
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);
 
57
 
 
58
gboolean vnc_color_map_set(VncColorMap *map,
 
59
                           guint16 idx,
 
60
                           guint16 red,
 
61
                           guint16 green,
 
62
                           guint16 blue);
 
63
 
 
64
gboolean vnc_color_map_lookup(VncColorMap *map,
 
65
                              guint16 idx,
 
66
                              guint16 *red,
 
67
                              guint16 *green,
 
68
                              guint16 *blue);
 
69
 
 
70
 
 
71
G_END_DECLS
 
72
 
 
73
#endif /* VNC_COLOR_MAP_H */
 
74
 
 
75
/*
 
76
 * Local variables:
 
77
 *  c-indent-level: 8
 
78
 *  c-basic-offset: 8
 
79
 *  tab-width: 8
 
80
 * End:
 
81
 */