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 <vncconnection.h>
23 #include <glib-object.h>
30 enum command_qual cmd;
33 int x, y; /* x, y location */
34 unsigned mask; /* button mask */
42 void (*shutdown) (struct self_t *self);
43 int (*click) (struct self_t *self, int x, int y, unsigned mask);
46 typedef struct self_t {
51 callbacks_t *callbacks;
56 /* Private data for VNC connections: */
63 extern gboolean verbose;
66 extern int vc_parse_command (self_t *self, gchar **args, guint nr_args);
67 extern void vc_issue_command (self_t *self);
70 extern void vc_vnc_setup (self_t *click, gchar *vnc);
73 extern void vc_vnc_auth_credential (VncConnection *conn, GValueArray *credList, gpointer opaque);
74 extern void vc_vnc_auth_choose_type (VncConnection *conn, GValueArray *types, gpointer opaque G_GNUC_UNUSED);