1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
2
3 caja-sidebar-provider.c: register and create CajaSidebars
4
5 Copyright (C) 2004 Red Hat Inc.
6
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License as
9 published by the Free Software Foundation; either version 2 of the
10 License, or (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 General Public License for more details.
16
17 You should have received a copy of the GNU General Public
18 License along with this program; if not, write to the
19 Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
20 Boston, MA 02110-1301, USA.
21
22 Author: Alexander Larsson <alexl@redhat.com>
23 */
24
25 #include <string.h>
26 #include "caja-sidebar-provider.h"
27
28 static void
caja_sidebar_provider_base_init(gpointer g_class)29 caja_sidebar_provider_base_init (gpointer g_class)
30 {
31 }
32
33 GType
caja_sidebar_provider_get_type(void)34 caja_sidebar_provider_get_type (void)
35 {
36 static GType type = 0;
37
38 if (!type)
39 {
40 const GTypeInfo info =
41 {
42 sizeof (CajaSidebarProviderIface),
43 caja_sidebar_provider_base_init,
44 NULL,
45 NULL,
46 NULL,
47 NULL,
48 0,
49 0,
50 NULL
51 };
52
53 type = g_type_register_static (G_TYPE_INTERFACE,
54 "CajaSidebarProvider",
55 &info, 0);
56 g_type_interface_add_prerequisite (type, G_TYPE_OBJECT);
57 }
58
59 return type;
60 }
61
62 CajaSidebar *
caja_sidebar_provider_create(CajaSidebarProvider * provider,CajaWindowInfo * window)63 caja_sidebar_provider_create (CajaSidebarProvider *provider,
64 CajaWindowInfo *window)
65 {
66 return (* CAJA_SIDEBAR_PROVIDER_GET_IFACE (provider)->create) (provider, window);
67 }
68
69
70 GList *
caja_list_sidebar_providers(void)71 caja_list_sidebar_providers (void)
72 {
73 return NULL;
74 }
75