1 /* guile-gnome 2 * Copyright (C) 2003 Andy Wingo <wingo at pobox dot com> 3 * 4 * gparameter.h: Support for GParamSpec 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License as 8 * published by the Free Software Foundation; either version 2 of 9 * the License, or (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, contact: 18 * 19 * Free Software Foundation Voice: +1-617-542-5942 20 * 59 Temple Place - Suite 330 Fax: +1-617-542-2652 21 * Boston, MA 02111-1307, USA gnu@gnu.org 22 */ 23 24 #ifndef __GUILE_GNOME_GOBJECT_GPARAMETER_H__ 25 #define __GUILE_GNOME_GOBJECT_GPARAMETER_H__ 26 27 #include <guile-gnome-gobject/gtype.h> 28 29 G_BEGIN_DECLS 30 31 extern SCM scm_class_gparam; 32 33 #define SCM_GPARAMP(scm) \ 34 scm_c_gtype_instance_is_a_p (scm, G_TYPE_PARAM) 35 36 #define SCM_VALIDATE_GPARAM(pos, scm) \ 37 SCM_MAKE_VALIDATE (pos, scm, GPARAMP) 38 39 #define SCM_VALIDATE_GPARAM_COPY(pos, scm, cvar) \ 40 SCM_VALIDATE_GTYPE_INSTANCE_TYPE_COPY (pos, scm, G_TYPE_PARAM, cvar) 41 42 G_END_DECLS 43 44 #endif /* __GUILE_GNOME_GOBJECT_PARAMETERS_H__ */ 45