]> git.0d.be Git - empathy.git/blob - goa-mc-plugin/mission-control-plugin.c
Reorder header inclusions accordingly to the Telepathy coding style
[empathy.git] / goa-mc-plugin / mission-control-plugin.c
1 /*
2  * mission-control-plugin.c
3  *
4  * A Mission Control plugin to expose GNOME Online Accounts with chat
5  * capabilities (e.g. Facebook) to Mission Control
6  *
7  * Copyright (C) 2010-2011 Collabora Ltd.
8  *
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.
13  *
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.
18  *
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/>.
21  *
22  * Authors:
23  *    Danielle Madeley <danielle.madeley@collabora.co.uk>
24  */
25
26 #include "config.h"
27
28 #include <mission-control-plugins/mission-control-plugins.h>
29
30 #include "mcp-account-manager-goa.h"
31
32 GObject *
33 mcp_plugin_ref_nth_object (guint n)
34 {
35   static void *plugin_0 = NULL;
36
37   switch (n)
38     {
39       case 0:
40         if (plugin_0 == NULL)
41           plugin_0 = g_object_new (MCP_TYPE_ACCOUNT_MANAGER_GOA, NULL);
42         else
43           g_object_ref (plugin_0);
44
45         return plugin_0;
46
47       default:
48         return NULL;
49     }
50 }