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>
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, MMModuleClass))
36 #define MM_IS_MODULE(obj) (G_TYPE_INSTANCE_CHECK_TYPE ((obj),\
38 #define MM_IS_MODULE_CLASS(klass) (G_TYPE_CLASS_CHECK_CLASS_TYPE ((klass),\
41 typedef struct _MMModule MMModule
;
42 typedef struct _MMModuleDetails MMModuleDetails
;
43 typedef struct _MMModuleClass MMModuleClass
;
48 MMModuleDetails
*details
;
50 /* module symbols here */
51 void (* initialize
) (GTypeModule
*module
);
52 void (* shutdown
) (void);
53 void (* get_types
) (GType
**gtypes
);
54 void (* get_name
) (char **name
);
57 struct _MMModuleClass
{
58 GTypeModuleClass parent_class
;
62 GType
mm_module_get_type (void);
63 MMModule
* mm_module_load_file (const char *path
);
65 MMApplicationProvider
* mm_module_get_application_provider (MMModule
*module
);
66 MMCategoryProvider
* mm_module_get_category_provider (MMModule
*module
);
67 MMHitCollectionProvider
* mm_module_get_hit_collection_provider (MMModule
*module
);
68 char* mm_module_get_name (MMModule
*module
);
70 #endif /* __MM_MODULE_H__ */