Back to index

libindicator  12.10.0
indicator.h
Go to the documentation of this file.
00001 /*
00002 An interface for indicators to link to for creation.
00003 
00004 Copyright 2009 Canonical Ltd.
00005 
00006 Authors:
00007     Ted Gould <ted@canonical.com>
00008 
00009 This library is free software; you can redistribute it and/or
00010 modify it under the terms of the GNU General Public License
00011 version 3.0 as published by the Free Software Foundation.
00012 
00013 This library is distributed in the hope that it will be useful,
00014 but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 GNU General Public License version 3.0 for more details.
00017 
00018 You should have received a copy of the GNU General Public
00019 License along with this library. If not, see
00020 <http://www.gnu.org/licenses/>.
00021 */
00022 
00023 #ifndef __LIBINDICATOR_INDICATOR_H_SEEN__
00024 #define __LIBINDICATOR_INDICATOR_H_SEEN__ 1
00025 
00026 #include <gtk/gtk.h>
00027 
00028 #define INDICATOR_GET_VERSION_S "get_version"
00029 typedef gchar * (*get_version_t) (void);
00030 gchar * get_version (void);
00031 
00032 #define INDICATOR_VERSION "0.3.0"
00033 #define INDICATOR_SET_VERSION  gchar * get_version(void) { return INDICATOR_VERSION; }
00034 #define INDICATOR_VERSION_CHECK(x)  (!g_strcmp0(x, INDICATOR_VERSION))
00035 
00036 #define INDICATOR_GET_TYPE_S "get_type"
00037 typedef GType (*get_type_t) (void);
00038 #define INDICATOR_SET_TYPE(x)  GType get_type (void) { return x; }
00039 
00040 #endif /* __LIBINDICATOR_INDICATOR_H_SEEN__ */
00041