2008-03-29 Cosimo Cecchi <cosimoc@gnome.org>
[nautilus.git] / libnautilus-private / nautilus-sidebar-provider.h
blob11498857493babbc32a64c8ff1f96e9fa4e73d6d
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
3 nautilus-sidebar-provider.h: register and create NautilusSidebars
5 Copyright (C) 2004 Red Hat Inc.
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.
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.
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., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.
22 Author: Alexander Larsson <alexl@redhat.com>
25 #ifndef NAUTILUS_SIDEBAR_PROVIDER_H
26 #define NAUTILUS_SIDEBAR_PROVIDER_H
28 #include <libnautilus-private/nautilus-sidebar.h>
29 #include <libnautilus-private/nautilus-window-info.h>
31 G_BEGIN_DECLS
33 #define NAUTILUS_TYPE_SIDEBAR_PROVIDER (nautilus_sidebar_provider_get_type ())
34 #define NAUTILUS_SIDEBAR_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NAUTILUS_TYPE_SIDEBAR_PROVIDER, NautilusSidebarProvider))
35 #define NAUTILUS_IS_SIDEBAR_PROVIDER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NAUTILUS_TYPE_SIDEBAR_PROVIDER))
36 #define NAUTILUS_SIDEBAR_PROVIDER_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), NAUTILUS_TYPE_SIDEBAR_PROVIDER, NautilusSidebarProviderIface))
38 typedef struct _NautilusSidebarProvider NautilusSidebarProvider;
39 typedef struct _NautilusSidebarProviderIface NautilusSidebarProviderIface;
41 struct _NautilusSidebarProviderIface {
42 GTypeInterface g_iface;
44 NautilusSidebar * (*create) (NautilusSidebarProvider *provider,
45 NautilusWindowInfo *window);
48 /* Interface Functions */
49 GType nautilus_sidebar_provider_get_type (void);
50 NautilusSidebar * nautilus_sidebar_provider_create (NautilusSidebarProvider *provider,
51 NautilusWindowInfo *window);
52 GList * nautilus_list_sidebar_providers (void);
54 G_END_DECLS
56 #endif /* NAUTILUS_SIDEBAR_PROVIDER_H */