~ubuntu-branches/debian/sid/glib2.0/sid

« back to all changes in this revision

Viewing changes to gobject/gtypemodule.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-05-08 06:25:57 UTC
  • mfrom: (1.27.14) (3.1.181 experimental)
  • Revision ID: package-import@ubuntu.com-20130508062557-i7gbku66mls70gi2
Tags: 2.36.1-2
Merge experimental branch, upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
17
 * Boston, MA 02111-1307, USA.
18
18
 */
 
19
#ifndef __G_TYPE_MODULE_H__
 
20
#define __G_TYPE_MODULE_H__
 
21
 
19
22
#if !defined (__GLIB_GOBJECT_H_INSIDE__) && !defined (GOBJECT_COMPILATION)
20
23
#error "Only <glib-object.h> can be included directly."
21
24
#endif
22
25
 
23
 
#ifndef __G_TYPE_MODULE_H__
24
 
#define __G_TYPE_MODULE_H__
25
 
 
26
26
#include <gobject/gobject.h>
27
27
#include <gobject/genums.h>
28
28
 
160
160
 *   };
161
161
 *   gtk_gadget_type_id = g_type_module_register_type (type_module,
162
162
 *                                                     GTK_TYPE_THING,
163
 
 *                                                     GtkGadget,
 
163
 *                                                     "GtkGadget",
164
164
 *                                                     &g_define_type_info,
165
165
 *                                                     (GTypeFlags) flags);
166
166
 *   {
237
237
  g_type_module_add_interface (type_module, g_define_type_id, TYPE_IFACE, &g_implement_interface_info); \
238
238
}
239
239
 
 
240
GLIB_AVAILABLE_IN_ALL
240
241
GType    g_type_module_get_type       (void) G_GNUC_CONST;
 
242
GLIB_AVAILABLE_IN_ALL
241
243
gboolean g_type_module_use            (GTypeModule          *module);
 
244
GLIB_AVAILABLE_IN_ALL
242
245
void     g_type_module_unuse          (GTypeModule          *module);
 
246
GLIB_AVAILABLE_IN_ALL
243
247
void     g_type_module_set_name       (GTypeModule          *module,
244
248
                                       const gchar          *name);
 
249
GLIB_AVAILABLE_IN_ALL
245
250
GType    g_type_module_register_type  (GTypeModule          *module,
246
251
                                       GType                 parent_type,
247
252
                                       const gchar          *type_name,
248
253
                                       const GTypeInfo      *type_info,
249
254
                                       GTypeFlags            flags);
 
255
GLIB_AVAILABLE_IN_ALL
250
256
void     g_type_module_add_interface  (GTypeModule          *module,
251
257
                                       GType                 instance_type,
252
258
                                       GType                 interface_type,
253
259
                                       const GInterfaceInfo *interface_info);
 
260
GLIB_AVAILABLE_IN_ALL
254
261
GType    g_type_module_register_enum  (GTypeModule          *module,
255
262
                                       const gchar          *name,
256
263
                                       const GEnumValue     *const_static_values);
 
264
GLIB_AVAILABLE_IN_ALL
257
265
GType    g_type_module_register_flags (GTypeModule          *module,
258
266
                                       const gchar          *name,
259
267
                                       const GFlagsValue    *const_static_values);