~ubuntu-branches/debian/experimental/xfce4-panel/experimental

« back to all changes in this revision

Viewing changes to panel/plugins.h

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez
  • Date: 2008-05-19 08:08:22 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20080519080822-c8ptdv1s8o9r4ou0
Tags: 4.4.2-6
* switch to triggers:
  - debian/postinst: remove xfce-mcs-manager refresh.
  - debian/prerm dropped.
  - debian/control: conflicts against non-triggers-enable xfce4-mcs-manager.
* debian/control: remove useless Conflicts/Replaces against Sarge stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*  $Id: plugins.h 4225 2004-11-18 22:29:53Z jasper $
2
 
 *  
3
 
 *  Copyright 2002-2004 Jasper Huijsmans (jasper@xfce.org)
4
 
 *
5
 
 *  This program is free software; you can redistribute it and/or modify
6
 
 *  it under the terms of the GNU General Public License as published by
7
 
 *  the Free Software Foundation; either version 2 of the License, or
8
 
 *  (at your option) any later version.
9
 
 *
10
 
 *  This program 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
13
 
 *  GNU General Public License for more details.
14
 
 *
15
 
 *  You should have received a copy of the GNU General Public License
16
 
 *  along with this program; if not, write to the Free Software
17
 
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18
 
*/
19
 
 
20
 
#ifndef _XFCE_PLUGINS_H
21
 
#define _XFCE_PLUGINS_H
22
 
 
23
 
#include <glib.h>
24
 
#include <gmodule.h>
25
 
 
26
 
#include <panel/xfce.h>
27
 
 
28
 
#define XFCE_PLUGIN_API_VERSION 7
29
 
 
30
 
G_BEGIN_DECLS
31
 
 
32
 
/* prototype for plugin init function 
33
 
 * (must be implemented by plugin) */
34
 
G_MODULE_IMPORT void xfce_control_class_init (ControlClass * control);
35
 
 
36
 
/* plugin version check function (implemented by xfce4 in controls.c) */
37
 
G_MODULE_IMPORT gchar *xfce_plugin_check_version (gint version);
38
 
 
39
 
/* nifty idea, I think from dia:
40
 
 * every module just has to include this header and put 
41
 
 * XFCE_PLUGIN_CHECK_INIT
42
 
 * somewhere in the file (e.g. at the end :), and the API version will
43
 
 * be checked on opening the GModule.
44
 
*/
45
 
#define XFCE_PLUGIN_CHECK_INIT \
46
 
        G_MODULE_EXPORT const gchar *g_module_check_init(GModule *gmodule); \
47
 
        const gchar * \
48
 
        g_module_check_init(GModule *gmodule) \
49
 
        { \
50
 
            return xfce_plugin_check_version(XFCE_PLUGIN_API_VERSION); \
51
 
        }
52
 
 
53
 
G_END_DECLS
54
 
 
55
 
#endif                          /* _XFCE_PLUGIN_H */