Exemplo n.º 1
0
GType
inf_io_get_type(void)
{
  static GType io_type = 0;

  if(!io_type)
  {
    static const GTypeInfo io_info = {
      sizeof(InfIoIface),    /* class_size */
      NULL,                  /* base_init */
      NULL,                  /* base_finalize */
      NULL,                  /* class_init */
      NULL,                  /* class_finalize */
      NULL,                  /* class_data */
      0,                     /* instance_size */
      0,                     /* n_preallocs */
      NULL,                  /* instance_init */
      NULL                   /* value_table */
    };

    io_type = g_type_register_static(
      G_TYPE_INTERFACE,
      "InfIo",
      &io_info,
      0
    );

    g_type_interface_add_prerequisite(io_type, G_TYPE_OBJECT);
  }

  return io_type;
}
GType
pango_cairo_font_get_type (void)
{
  static GType cairo_font_type = 0;

  if (! cairo_font_type)
    {
      const GTypeInfo cairo_font_info =
      {
	sizeof (PangoCairoFontIface), /* class_size */
	NULL,           /* base_init */
	NULL,		/* base_finalize */
	NULL,
	NULL,		/* class_finalize */
	NULL,		/* class_data */
	0,
	0,
	NULL,
	NULL
      };

      cairo_font_type =
	g_type_register_static (G_TYPE_INTERFACE, I_("PangoCairoFont"),
				&cairo_font_info, 0);

      g_type_interface_add_prerequisite (cairo_font_type, PANGO_TYPE_FONT);
    }

  return cairo_font_type;
}
GType 
hildon_desktop_container_get_type (void)
{
  static GType container_type = 0;

  if (!container_type)
  {
    static const GTypeInfo container_info =
    {
      sizeof (HildonDesktopContainerIface), /* class_size */
      hildon_desktop_container_base_init,   /* base_init */
      NULL,		/* base_finalize */
      NULL,
      NULL,		/* class_finalize */
      NULL,		/* class_data */
      0,
      0,
      NULL
    };

    container_type =
      g_type_register_static (G_TYPE_INTERFACE, "HildonDesktopContainer",
			      &container_info, 0);

    g_type_interface_add_prerequisite (container_type, GTK_TYPE_CONTAINER);
    
  }

  return container_type;
}
GType
rejilla_layout_object_get_type()
{
	static GType type = 0;

	if(type == 0) {
		static const GTypeInfo our_info = {
			sizeof (RejillaLayoutObjectIFace),
			rejilla_layout_object_base_init,
			NULL,
			NULL,
			NULL,
			NULL,
			0,
			0,
			NULL,
		};

		type = g_type_register_static (G_TYPE_INTERFACE,
					       "RejillaLayoutObject",
					       &our_info,
					       0);

		g_type_interface_add_prerequisite (type, G_TYPE_OBJECT);
	}

	return type;
}
Exemplo n.º 5
0
GType
mm_modem_icera_get_type (void)
{
    static GType icera_type = 0;

    if (!G_UNLIKELY (icera_type)) {
        const GTypeInfo icera_info = {
            sizeof (MMModemIcera), /* class_size */
            mm_modem_icera_init,   /* base_init */
            NULL,       /* base_finalize */
            NULL,
            NULL,       /* class_finalize */
            NULL,       /* class_data */
            0,
            0,              /* n_preallocs */
            NULL
        };

        icera_type = g_type_register_static (G_TYPE_INTERFACE,
                                             "MMModemIcera",
                                             &icera_info, 0);

        g_type_interface_add_prerequisite (icera_type, MM_TYPE_MODEM);
    }

    return icera_type;
}
GType
gst_stream_volume_get_type (void)
{
  static volatile gsize type = 0;
  if (g_once_init_enter (&type)) {
    GType tmp;
    static const GTypeInfo info = {
      sizeof (GstStreamVolumeInterface),
      NULL,                     /* base_init */
      NULL,                     /* base_finalize */
      (GClassInitFunc) gst_stream_volume_class_init,    /* class_init */
      NULL,                     /* class_finalize */
      NULL,                     /* class_data */
      0,
      0,                        /* n_preallocs */
      NULL                      /* instance_init */
    };
    tmp = g_type_register_static (G_TYPE_INTERFACE,
        "GstStreamVolume", &info, 0);
    g_type_interface_add_prerequisite (tmp, G_TYPE_OBJECT);

    g_once_init_leave (&type, tmp);
  }
  return type;
}
Exemplo n.º 7
0
GType
gda_data_handler_get_type (void)
{
	static GType type = 0;

	if (G_UNLIKELY (type == 0)) {
		static const GTypeInfo info = {
			sizeof (GdaDataHandlerIface),
			(GBaseInitFunc) gda_data_handler_iface_init,
			(GBaseFinalizeFunc) NULL,
			(GClassInitFunc) NULL,
			NULL,
			NULL,
			0,
			0,
			(GInstanceInitFunc) NULL,
			0
		};

		MUTEX_LOCK();
		if (type == 0) {
			type = g_type_register_static (G_TYPE_INTERFACE, "GdaDataHandler", &info, 0);
			g_type_interface_add_prerequisite (type, G_TYPE_OBJECT);
		}
		MUTEX_UNLOCK();
	}
	return type;
}
Exemplo n.º 8
0
GType
g_async_initable_get_type (void)
{
  static volatile gsize g_define_type_id__volatile = 0;

  if (g_once_init_enter (&g_define_type_id__volatile))
    {
      const GTypeInfo initable_info =
      {
	sizeof (GAsyncInitableIface), /* class_size */
	g_async_initable_base_init,   /* base_init */
	NULL,		/* base_finalize */
	NULL,
	NULL,		/* class_finalize */
	NULL,		/* class_data */
	0,
	0,              /* n_preallocs */
	NULL
      };
      GType g_define_type_id =
	g_type_register_static (G_TYPE_INTERFACE, I_("GAsyncInitable"),
				&initable_info, 0);

      g_type_interface_add_prerequisite (g_define_type_id, G_TYPE_OBJECT);

      g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
    }

  return g_define_type_id__volatile;
}
Exemplo n.º 9
0
GType
gtk_tree_sortable_get_type (void)
{
  static GType tree_sortable_type = 0;

  if (! tree_sortable_type)
    {
      const GTypeInfo tree_sortable_info =
      {
	sizeof (GtkTreeSortableIface), /* class_size */
	gtk_tree_sortable_base_init,   /* base_init */
	NULL,		/* base_finalize */
	NULL,
	NULL,		/* class_finalize */
	NULL,		/* class_data */
	0,
	0,
	NULL
      };

      tree_sortable_type =
	g_type_register_static (G_TYPE_INTERFACE, I_("GtkTreeSortable"),
				&tree_sortable_info, 0);

      g_type_interface_add_prerequisite (tree_sortable_type, GTK_TYPE_TREE_MODEL);
    }

  return tree_sortable_type;
}
Exemplo n.º 10
0
GType
marina_parse_result_get_type (void)
{
  static GType marina_parse_result_type = 0;
  
  if (!marina_parse_result_type)
    {
      const GTypeInfo marina_parse_result_info = {
        sizeof (MarinaParseResultIface),
        NULL, /* base_init */
        NULL, /* base_finalize */
        NULL,
        NULL, /* class_finalize */
        NULL, /* class_data */
        0,
        0,
        NULL
      };
      
      marina_parse_result_type = g_type_register_static (G_TYPE_INTERFACE, "MarinaParseResult",
                                                         &marina_parse_result_info, 0);
      g_type_interface_add_prerequisite (marina_parse_result_type, G_TYPE_OBJECT);
    }
  
  return marina_parse_result_type;
}
Exemplo n.º 11
0
/**
 * fo_pixbuf_get_type:
 *
 * Register the #FoPixbuf interface type.
 * 
 * Return value: #GType value of the #FoPixbuf interface type.
 **/
GType
fo_pixbuf_get_type (void)
{
  static GType pixbuf_type = 0;

  if (!pixbuf_type)
    {
      static const GTypeInfo pixbuf_info =
      {
        sizeof (FoPixbufIface), /* class_size */
	(GBaseInitFunc) fo_pixbuf_base_class_init,   	/* base_init */
	NULL,		/* base_finalize */
	NULL,
	NULL,		/* class_finalize */
	NULL,		/* class_data */
	0,
	0,              /* n_preallocs */
        NULL,		/* instance_init */
	NULL		/* value_table */
      };

      pixbuf_type = g_type_register_static (G_TYPE_INTERFACE,
					    "FoPixbufIface",
					    &pixbuf_info, 0);
      g_type_interface_add_prerequisite (pixbuf_type, FO_TYPE_OBJECT);
    }

  return pixbuf_type;
}
Exemplo n.º 12
0
GType
gnc_window_get_type (void)
{
    static GType gnc_window_type = 0;

    if (gnc_window_type == 0)
    {
        static const GTypeInfo our_info =
        {
            sizeof (GncWindowIface),
            NULL,
            NULL,
            NULL,
            NULL,
            NULL,
            0,
            0,
            NULL
        };

        gnc_window_type = g_type_register_static (G_TYPE_INTERFACE,
                          "GncWindow",
                          &our_info, 0);
        g_type_interface_add_prerequisite (gnc_window_type, G_TYPE_OBJECT);
    }

    return gnc_window_type;
}
Exemplo n.º 13
0
GType                   
nautilus_window_info_get_type (void)
{
	static GType type = 0;
	
	if (!type) {
		const GTypeInfo info = {
			sizeof (NautilusWindowInfoIface),
			nautilus_window_info_base_init,
			NULL,
			NULL,
			NULL,
			NULL,
			0,
			0,
			NULL
		};
		
		type = g_type_register_static (G_TYPE_INTERFACE, 
					       "NautilusWindowInfo",
					       &info, 0);
		g_type_interface_add_prerequisite (type, G_TYPE_OBJECT);
	}
	
	return type;
}
GType                   
nemo_property_page_provider_get_type (void)
{
	static GType type = 0;

	if (!type) {
		const GTypeInfo info = {
			sizeof (NemoPropertyPageProviderIface),
			nemo_property_page_provider_base_init,
			NULL,
			NULL,
			NULL,
			NULL,
			0,
			0,
			NULL
		};
		
		type = g_type_register_static (G_TYPE_INTERFACE, 
					       "NemoPropertyPageProvider",
					       &info, 0);
		g_type_interface_add_prerequisite (type, G_TYPE_OBJECT);
	}

	return type;
}
GType                   
athena_menu_provider_get_type (void)
{
	static GType type = 0;

	if (!type) {
		const GTypeInfo info = {
			sizeof (AthenaMenuProviderIface),
			athena_menu_provider_base_init,
			NULL,
			NULL,
			NULL,
			NULL,
			0,
			0,
			NULL
		};
		
		type = g_type_register_static (G_TYPE_INTERFACE, 
					       "AthenaMenuProvider",
					       &info, 0);
		g_type_interface_add_prerequisite (type, G_TYPE_OBJECT);
	}

	return type;
}
GType
nm_vpn_plugin_ui_interface_get_type (void)
{
	static GType vpn_plugin_ui_interface_type = 0;

	if (!vpn_plugin_ui_interface_type) {
		const GTypeInfo vpn_plugin_ui_interface_info = {
			sizeof (NMVpnPluginUiInterface), /* class_size */
			interface_init,   /* base_init */
			NULL,		/* base_finalize */
			NULL,
			NULL,		/* class_finalize */
			NULL,		/* class_data */
			0,
			0,              /* n_preallocs */
			NULL
		};

		vpn_plugin_ui_interface_type = g_type_register_static (G_TYPE_INTERFACE,
														       "NMVpnPluginUiInterface",
														       &vpn_plugin_ui_interface_info,
														       0);

		g_type_interface_add_prerequisite (vpn_plugin_ui_interface_type, G_TYPE_OBJECT);
	}

	return vpn_plugin_ui_interface_type;
}
GType
gb_project_plugin_get_type (void)
{
   static GType type_id = 0;

   if (g_once_init_enter((gsize *)&type_id)) {
      GType _type_id;
      const GTypeInfo g_type_info = {
         sizeof(GbProjectPluginIface),
         gb_project_plugin_init, /* base_init */
         NULL,                   /* base_finalize */
         NULL,                   /* class_init */
         NULL,                   /* class_finalize */
         NULL,                   /* class_data */
         0,                      /* instance_size */
         0,                      /* n_preallocs */
         NULL,                   /* instance_init */
         NULL                    /* value_vtable */
      };

      _type_id = g_type_register_static(G_TYPE_INTERFACE,
                                        "GbProjectPlugin",
                                        &g_type_info,
                                        0);
      g_type_interface_add_prerequisite(_type_id, G_TYPE_OBJECT);
      g_once_init_leave((gsize *)&type_id, _type_id);
   }

   return type_id;
}
Exemplo n.º 18
0
GType
ytv_uri_builder_get_type (void)
{
        static GType type = 0;

        if (G_UNLIKELY (type == 0))
        {
                static const GTypeInfo info =
                {
                        sizeof (YtvUriBuilderIface),
                        ytv_uri_builder_base_init,
                        NULL,
                        NULL,
                        NULL,
                        NULL,
                        0,
                        0,
                        NULL,
                        NULL
                };

                type = g_type_register_static (G_TYPE_INTERFACE, "YtvUriBuilder",
                                               &info, 0);

                g_type_interface_add_prerequisite (type, G_TYPE_OBJECT);
        }

        return type;
}
Exemplo n.º 19
0
GType
gb_view_layout_get_type (void)
{
    static GType type_id = 0;

    if (g_once_init_enter((gsize *)&type_id)) {
        GType _type_id;
        const GTypeInfo g_type_info = {
            sizeof(GbViewLayoutIface),
            NULL, /* base_init */
            NULL, /* base_finalize */
            NULL, /* class_init */
            NULL, /* class_finalize */
            NULL, /* class_data */
            0,    /* instance_size */
            0,    /* n_preallocs */
            NULL, /* instance_init */
            NULL  /* value_vtable */
        };

        _type_id = g_type_register_static(G_TYPE_INTERFACE,
                                          "GbViewLayout",
                                          &g_type_info,
                                          0);
        g_type_interface_add_prerequisite(_type_id, GTK_TYPE_CONTAINER);
        g_once_init_leave((gsize *)&type_id, _type_id);
    }

    return type_id;
}
Exemplo n.º 20
0
GType
audio_iplayer_get_type() {
    
    static GType type_id = 0;
    
    if (type_id == 0) {
        
        const GTypeInfo audio_iplayer_info = {
            sizeof(AudioIPlayerIface),
            (GBaseInitFunc) audio_iplayer_base_init,
            (GBaseFinalizeFunc) audio_iplayer_base_finalize
            };
        
        type_id = g_type_register_static(
            G_TYPE_INTERFACE,
            "AudioIPlayer",
            &audio_iplayer_info,
            0
            );
            
        /* all classes are allowed to implement this interface: */
        g_type_interface_add_prerequisite(type_id, G_TYPE_OBJECT);
        
    }
    
    return type_id;
    
}
Exemplo n.º 21
0
GType
infd_xml_server_get_type(void)
{
  static GType xml_server_type = 0;

  if(!xml_server_type)
  {
    static const GTypeInfo xml_server_info = {
      sizeof(InfdXmlServerIface),  /* class_size */
      infd_xml_server_base_init,   /* base_init */
      NULL,                        /* base_finalize */
      NULL,                        /* class_init */
      NULL,                        /* class_finalize */
      NULL,                        /* class_data */
      0,                           /* instance_size */
      0,                           /* n_preallocs */
      NULL,                        /* instance_init */
      NULL                         /* value_table */
    };

    xml_server_type = g_type_register_static(
      G_TYPE_INTERFACE,
      "InfdXmlServer",
      &xml_server_info,
      0
    );

    g_type_interface_add_prerequisite(xml_server_type, G_TYPE_OBJECT);
  }

  return xml_server_type;
}
Exemplo n.º 22
0
GType
scalix_object_get_type (void)
{
    static GType type = 0;

    if (!type) {
        static const GTypeInfo info = {
            sizeof (ScalixObjectIface), /* class_size */
            NULL,               /* base_init */
            NULL,               /* base_finalize */
            scalix_object_class_init,
            NULL,               /* class_finalize */
            NULL,               /* class_data */
            0,
            0,                  /* n_preallocs */
            NULL
        };

        type = g_type_register_static (G_TYPE_INTERFACE, "ScalixObject",
                                       &info, 0);

        g_type_interface_add_prerequisite (type, G_TYPE_OBJECT);
    }

    return type;
}
Exemplo n.º 23
0
GType
inf_adopted_operation_get_type(void)
{
  static GType adopted_operation_type = 0;

  if(!adopted_operation_type)
  {
    static const GTypeInfo adopted_operation_info = {
      sizeof(InfAdoptedOperationIface),         /* class_size */
      inf_adopted_operation_base_init,          /* base_init */
      NULL,                                     /* base_finalize */
      NULL,                                     /* class_init */
      NULL,                                     /* class_finalize */
      NULL,                                     /* class_data */
      0,                                        /* instance_size */
      0,                                        /* n_preallocs */
      NULL,                                     /* instance_init */
      NULL                                      /* value_table */
    };

    adopted_operation_type = g_type_register_static(
      G_TYPE_INTERFACE,
      "InfAdoptedOperation",
      &adopted_operation_info,
      0
    );

    g_type_interface_add_prerequisite(adopted_operation_type, G_TYPE_OBJECT);
  }

  return adopted_operation_type;
}
Exemplo n.º 24
0
GType
xfconf_backend_get_type(void)
{
    static GType backend_type = 0;
    
    if(!backend_type) {
        static const GTypeInfo backend_info = {
            sizeof(XfconfBackendInterface),
            xfconf_backend_base_init,
            NULL,
            NULL,
            NULL,
            NULL,
            0,
            0,
            NULL,
        };
        
        backend_type = g_type_register_static(G_TYPE_INTERFACE,"XfconfBackend",
                                              &backend_info, 0);
        g_type_interface_add_prerequisite(backend_type, G_TYPE_OBJECT);
    }
    
    return backend_type;
}
Exemplo n.º 25
0
GType
pkg_renderer_get_type (void)
{
	static GType type_id = 0;

	if (g_once_init_enter((gsize *)&type_id)) {
		GType _type_id;
		const GTypeInfo g_type_info = {
			sizeof(PkgRendererIface),
			NULL, /* base_init */
			NULL, /* base_finalize */
			NULL, /* class_init */
			NULL, /* class_finalize */
			NULL, /* class_data */
			0,    /* instance_size */
			0,    /* n_preallocs */
			NULL, /* instance_init */
			NULL  /* value_vtable */
		};

		_type_id = g_type_register_static(G_TYPE_INTERFACE,
		                                  "PkgRenderer",
		                                  &g_type_info,
		                                  0);
		g_type_interface_add_prerequisite(_type_id, CLUTTER_TYPE_ACTOR);
		g_once_init_leave((gsize *)&type_id, _type_id);
	}

	return type_id;
}
Exemplo n.º 26
0
GType
gst_tuner_get_type (void)
{
  static GType gst_tuner_type = 0;

  if (!gst_tuner_type) {
    static const GTypeInfo gst_tuner_info = {
      sizeof (GstTunerClass),
      (GBaseInitFunc) gst_tuner_class_init,
      NULL,
      NULL,
      NULL,
      NULL,
      0,
      0,
      NULL,
    };

    gst_tuner_type = g_type_register_static (G_TYPE_INTERFACE,
        "GstTuner", &gst_tuner_info, 0);
    g_type_interface_add_prerequisite (gst_tuner_type,
        GST_TYPE_IMPLEMENTS_INTERFACE);
  }

  return gst_tuner_type;
}
Exemplo n.º 27
0
GType
gst_x_overlay_get_type (void)
{
  static GType gst_x_overlay_type = 0;

  if (!gst_x_overlay_type) {
    static const GTypeInfo gst_x_overlay_info = {
      sizeof (GstXOverlayClass),
      gst_x_overlay_base_init,
      NULL,
      NULL,
      NULL,
      NULL,
      0,
      0,
      NULL,
    };

    gst_x_overlay_type = g_type_register_static (G_TYPE_INTERFACE,
        "GstXOverlay", &gst_x_overlay_info, 0);
    g_type_interface_add_prerequisite (gst_x_overlay_type,
        GST_TYPE_IMPLEMENTS_INTERFACE);
  }

  return gst_x_overlay_type;
}
Exemplo n.º 28
0
GType
gcal_view_get_type (void)
{
  static GType type = 0;
  if (type == 0)
    {
      const GTypeInfo info =
      {
        sizeof (GcalViewIface),
        gcal_view_base_init,   /* base_init */
        NULL,   /* base_finalize */
        NULL,   /* class_init */
        NULL,   /* class_finalize */
        NULL,   /* class_data */
        0,
        0,      /* n_preallocs */
        NULL    /* instance_init */
      };
      type = g_type_register_static (G_TYPE_INTERFACE,
                                     "GcalView",
                                     &info,
                                     0);
      g_type_interface_add_prerequisite (type,
                                        G_TYPE_OBJECT);
    }
  return type;
}
Exemplo n.º 29
0
GType
gst_child_proxy_get_type (void)
{
  static volatile gsize type = 0;

  if (g_once_init_enter (&type)) {
    GType _type;
    static const GTypeInfo info = {
      sizeof (GstChildProxyInterface),
      gst_child_proxy_base_init,        /* base_init */
      NULL,                     /* base_finalize */
      gst_child_proxy_class_init,       /* class_init */
      NULL,                     /* class_finalize */
      NULL,                     /* class_data */
      0,
      0,                        /* n_preallocs */
      NULL                      /* instance_init */
    };

    _type =
        g_type_register_static (G_TYPE_INTERFACE, "GstChildProxy", &info, 0);

    g_type_interface_add_prerequisite (_type, G_TYPE_OBJECT);
    g_once_init_leave (&type, (gsize) _type);
  }
  return type;
}
Exemplo n.º 30
0
GType
iris_progress_monitor_get_type (void)
{
	static GType progress_monitor_type = 0;

	if (! progress_monitor_type) {
		const GTypeInfo progress_monitor_info = {
			sizeof (IrisProgressMonitorInterface), /* class_size */
			iris_progress_monitor_base_init,       /* base_init */
			NULL,                                  /* base_finalize */
			NULL,
			NULL,                                  /* class_finalize */
			NULL,                                  /* class_data */
			0,
			0,                                     /* n_preallocs */
			NULL
		};

		progress_monitor_type =
		  g_type_register_static (G_TYPE_INTERFACE, "IrisProgressMonitor",
		                          &progress_monitor_info, 0);

		g_type_interface_add_prerequisite (progress_monitor_type,
		                                   G_TYPE_OBJECT);
	}

	return progress_monitor_type;
}