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 SPICE_GRAB_SEQUENCE_H 23 #define SPICE_GRAB_SEQUENCE_H 24 25 #if !defined(__SPICE_CLIENT_GTK_H_INSIDE__) && !defined(SPICE_COMPILATION) 26 #warning "Only <spice-client-gtk.h> can be included directly" 27 #endif 28 29 #include <glib.h> 30 #include <glib-object.h> 31 32 G_BEGIN_DECLS 33 34 #define SPICE_TYPE_GRAB_SEQUENCE (spice_grab_sequence_get_type ()) 35 36 /** 37 * SpiceGrabSequence: 38 * 39 * An opaque type that represents a grab sequence. 40 **/ 41 typedef struct _SpiceGrabSequence SpiceGrabSequence; 42 43 GType spice_grab_sequence_get_type(void); 44 45 SpiceGrabSequence *spice_grab_sequence_new(guint nkeysyms, guint *keysyms); 46 SpiceGrabSequence *spice_grab_sequence_new_from_string(const gchar *str); 47 SpiceGrabSequence *spice_grab_sequence_copy(SpiceGrabSequence *sequence); 48 void spice_grab_sequence_free(SpiceGrabSequence *sequence); 49 gchar *spice_grab_sequence_as_string(SpiceGrabSequence *sequence); 50 51 52 G_END_DECLS 53 54 #endif /* SPICE_GRAB_SEQUENCE_H */ 55 56 /* 57 * Local variables: 58 * c-indent-level: 8 59 * c-basic-offset: 8 60 * tab-width: 8 61 * End: 62 */ 63