2 * Copyright (C) 2011 Red Hat Inc.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 #include <glib-object.h>
23 #include <vncconnection.h>
24 #include <spice-client.h>
31 enum command_qual cmd;
34 int x, y; /* x, y location */
35 int b; /* button number */
43 void (*shutdown) (struct self_t *self);
44 int (*click) (struct self_t *self, int x, int y, int b);
47 typedef struct self_t {
53 callbacks_t *callbacks;
58 /* Private data for VNC connections: */
61 /* Private data for SPICE connections. */
62 SpiceSession *session;
63 SpiceChannel *display_channel;
64 SpiceChannel *inputs_channel;
67 extern gboolean verbose;
70 extern int vc_parse_command (self_t *self, gchar **args, guint nr_args);
71 extern void vc_issue_command (self_t *self);
74 extern GOptionGroup *vc_spice_cmdline_get_option_group (void);
75 extern gboolean vc_spice_is_selected (void);
76 extern void vc_spice_setup (self_t *self);
79 extern GOptionGroup *vc_vnc_cmdline_get_option_group (void);
80 extern gboolean vc_vnc_is_selected (void);
81 extern void vc_vnc_setup (self_t *self);
84 extern void vc_vnc_auth_credential (VncConnection *conn, GValueArray *credList, gpointer opaque);
85 extern void vc_vnc_auth_choose_type (VncConnection *conn, GValueArray *types, gpointer opaque G_GNUC_UNUSED);