1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/glib/tsrc/BC/tests/gobject/testmodule.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,57 @@
1.4 +/* GObject - GLib Type, Object, Parameter and Signal Library
1.5 + * testmodule.h: Dummy dynamic type module
1.6 + * Copyright (C) 2003 Red Hat, Inc.
1.7 + *
1.8 + * This library is free software; you can redistribute it and/or
1.9 + * modify it under the terms of the GNU Lesser General Public
1.10 + * License as published by the Free Software Foundation; either
1.11 + * version 2 of the License, or (at your option) any later version.
1.12 + *
1.13 + * This library is distributed in the hope that it will be useful,
1.14 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.15 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1.16 + * Lesser General Public License for more details.
1.17 + *
1.18 + * You should have received a copy of the GNU Lesser General Public
1.19 + * License along with this library; if not, write to the
1.20 + * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
1.21 + * Boston, MA 02111-1307, USA.
1.22 + */
1.23 +
1.24 +#ifndef __TEST_MODULE_H__
1.25 +#define __TEST_MODULE_H__
1.26 +
1.27 +#include <glib-object.h>
1.28 +
1.29 +G_BEGIN_DECLS
1.30 +
1.31 +typedef struct _TestModule TestModule;
1.32 +typedef struct _TestModuleClass TestModuleClass;
1.33 +
1.34 +#define TEST_TYPE_MODULE (test_module_get_type ())
1.35 +#define TEST_MODULE(module) (G_TYPE_CHECK_INSTANCE_CAST ((module), TEST_TYPE_MODULE, TestModule))
1.36 +#define TEST_MODULE_CLASS(class) (G_TYPE_CHECK_CLASS_CAST ((class), TEST_TYPE_MODULE, TestModuleClass))
1.37 +#define TEST_IS_MODULE(module) (G_TYPE_CHECK_INSTANCE_TYPE ((module), TEST_TYPE_MODULE))
1.38 +#define TEST_IS_MODULE_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class), TEST_TYPE_MODULE))
1.39 +#define TEST_MODULE_GET_CLASS(module) (G_TYPE_INSTANCE_GET_CLASS ((module), TEST_TYPE_MODULE, TestModuleClass))
1.40 +
1.41 +typedef void (*TestModuleRegisterFunc) (GTypeModule *module);
1.42 +
1.43 +struct _TestModule
1.44 +{
1.45 + GTypeModule parent_instance;
1.46 +
1.47 + TestModuleRegisterFunc register_func;
1.48 +};
1.49 +
1.50 +struct _TestModuleClass
1.51 +{
1.52 + GTypeModuleClass parent_class;
1.53 +};
1.54 +
1.55 +GType test_module_get_type (void);
1.56 +GTypeModule *test_module_new (TestModuleRegisterFunc register_func);
1.57 +
1.58 +G_END_DECLS
1.59 +
1.60 +#endif /* __TEST_MODULE_H__ */