2 * gtkappchoosermodule.c: an extension point for online integration
4 * Copyright (C) 2010 Red Hat, Inc.
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public License as
8 * published by the Free Software Foundation; either version 2 of the
9 * License, or (at your option) any later version.
11 * This library 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 GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
19 * Authors: Cosimo Cecchi <ccecchi@redhat.com>
24 #include "gtkappchoosermodule.h"
28 #include "gtkappchooseronline.h"
30 #ifdef ENABLE_PACKAGEKIT
31 #include "gtkappchooseronlinepk.h"
34 G_LOCK_DEFINE_STATIC (registered_ep);
37 _gtk_app_chooser_module_ensure (void)
39 static gboolean registered_ep = FALSE;
40 GIOExtensionPoint *ep;
42 G_LOCK (registered_ep);
48 ep = g_io_extension_point_register ("gtkappchooser-online");
49 g_io_extension_point_set_required_type (ep, GTK_TYPE_APP_CHOOSER_ONLINE);
51 #ifdef ENABLE_PACKAGEKIT
52 _gtk_app_chooser_online_pk_get_type ();
56 G_UNLOCK (registered_ep);