X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/clg/blobdiff_plain/1eed6db4fed128d71e598fb9935c0e58f3c34b21..112ac1d33aa8f9b7f3d2f9542d15431f152b1d35:/glib/alien/gobject.c diff --git a/glib/alien/gobject.c b/glib/alien/gobject.c index 89b910a..321374f 100644 --- a/glib/alien/gobject.c +++ b/glib/alien/gobject.c @@ -1,4 +1,27 @@ -/* $Id: gobject.c,v 1.1 2004-10-27 15:07:46 espen Exp $ */ +/* Common Lisp bindings for GTK+ v2.x + * Copyright 1999-2005 Espen S. Johnsen + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY + * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ + +/* $Id: gobject.c,v 1.3 2005-04-23 16:48:51 espen Exp $ */ #include @@ -23,3 +46,18 @@ guint size_of_gvalue () return sizeof (GValue); } + +GEnumValue* +g_enum_class_values (GEnumClass *class, guint *n_values) +{ + *n_values = class->n_values; + return class->values; +} + +GFlagsValue* +g_flags_class_values (GFlagsClass *class, guint *n_values) +{ + *n_values = class->n_values; + return class->values; +} +