Compile all with -Werror
[mmediamanager.git] / src / mm-module.h
blob65353d8e0e7b91e972150751d36c175d5a6cd94e
1 /* MManager - a Desktop wide manager for multimedia applications.
3 * Copyright (C) 2008 Cosimo Cecchi <cosimoc@gnome.org>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef __MM_MODULE_H__
22 #define __MM_MODULE_H__
24 #include <glib-object.h>
25 #include <glib.h>
27 #include "mm-hit-collection-provider.h"
28 #include "mm-application-provider.h"
29 #include "mm-category-provider.h"
31 #define MM_TYPE_MODULE (mm_module_get_type ())
32 #define MM_MODULE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),\
33 MM_TYPE_MODULE, MMModule))
34 #define MM_MODULE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),\
35 MM_TYPE_MODULE, MMModule))
36 #define MM_IS_MODULE(obj) (G_TYPE_INSTANCE_CHECK_TYPE ((obj),\
37 MM_TYPE_MODULE))
38 #define MM_IS_MODULE_CLASS(klass) (G_TYPE_CLASS_CHECK_CLASS_TYPE ((klass),\
39 MM_TYPE_MODULE))
41 typedef struct _MMModule MMModule;
42 typedef struct _MMModuleDetails MMModuleDetails;
43 typedef struct _MMModuleClass MMModuleClass;
45 struct _MMModule {
46 GTypeModule parent;
48 MMModuleDetails *details;
50 /* module symbols here */
51 void (* initialize) (GTypeModule *module);
52 void (* shutdown) (void);
53 void (* get_types) (GType **gtypes);
56 struct _MMModuleClass {
57 GTypeModuleClass parent_class;
60 /* public methods */
61 GType mm_module_get_type (void);
62 MMModule* mm_module_load_file (const char *path);
64 MMApplicationProvider* mm_module_get_application_provider (MMModule *module);
65 MMCategoryProvider* mm_module_get_category_provider (MMModule *module);
66 MMHitCollectionProvider* mm_module_get_hit_collection_provider (MMModule *module);
68 #endif /* __MM_MODULE_H__ */