Help: Use stable 'if' namespace instead of experimental
[empathy-mirror.git] / goa-mc-plugin / mission-control-plugin.c
blobd4e8ae29720e0d20b5a75efe943bd7c47bca77ef
1 /*
2 * mission-control-plugin.c
4 * A Mission Control plugin to expose GNOME Online Accounts with chat
5 * capabilities (e.g. Facebook) to Mission Control
7 * Copyright (C) 2010-2011 Collabora Ltd.
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
22 * Authors:
23 * Danielle Madeley <danielle.madeley@collabora.co.uk>
26 #include "config.h"
28 #include "mcp-account-manager-goa.h"
30 GObject *
31 mcp_plugin_ref_nth_object (guint n)
33 static void *plugin_0 = NULL;
35 switch (n)
37 case 0:
38 if (plugin_0 == NULL)
39 plugin_0 = g_object_new (MCP_TYPE_ACCOUNT_MANAGER_GOA, NULL);
40 else
41 g_object_ref (plugin_0);
43 return plugin_0;
45 default:
46 return NULL;