/usr/include/parole/parole.h is in parole-dev 0.2.0.6-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 | /*
* * Copyright (C) 2009-2011 Ali <aliov@xfce.org>
*
* Licensed under the GNU General Public License Version 2
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __PAROLE_H_
#define __PAROLE_H_
#define __PAROLE_H_INSIDE__
#include <glib-object.h>
#include <parole/parole-provider-plugin.h>
#include <parole/parole-provider-player.h>
#include <parole/parole-file.h>
#include <parole/parole-stream.h>
#include <parole/parole-pl-parser.h>
#include <parole/parole-filters.h>
#include <parole/parole-debug.h>
#include <libxfce4util/libxfce4util.h>
#define PAROLE_MAJOR_VERSION 0
#define PAROLE_MINOR_VERSION 2
#define PAROLE_MICRO_VERSION 0.6
/**
* PAROLE_CHECK_VERSION:
* @major: major version number.
* @minor: minor version number.
* @micro: micor version number.
*
* Checks the parole version.
*
* Since: 0.2
*/
#define PAROLE_CHECK_VERSION(major,minor,micro) \
(PAROLE_MAJOR_VERSION > (major) || \
(PAROLE_MAJOR_VERSION == (major) && PAROLE_MINOR_VERSION > (minor)) || \
(PAROLE_MAJOR_VERSION == (major) && PAROLE_MINOR_VERSION == (minor) && \
PAROLE_MICRO_VERSION >= (micro)))
/*
* GType module registration macros.
*/
/**
* PAROLE_DEFINE_TYPE:
* @TN: The name of the new type, in Camel case.
* @t_n: The name of the new type, in lowercase, with words separated by '_'.
* @T_P: The #GType of the parent type.
*
* Since: 0.2
*/
#define PAROLE_DEFINE_TYPE(TN, t_n, T_P) PAROLE_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, {})
/**
* PAROLE_DEFINE_TYPE_EXTENDED:
* @TN: The name of the new type, in Camel case.
* @t_n: The name of the new type, in lowercase, with words separated by '_'.
* @T_P: The #GType of the parent type.
* @_f_: #GTypeFlags to pass to g_type_module_register_type ().
* @_C_: Custom code that gets inserted in *_get_type() function.
*
* Since: 0.2
*/
#define PAROLE_DEFINE_TYPE_EXTENDED(TN, t_n, T_P, _f_, _C_) _PAROLE_DEFINE_TYPE_EXTENDED_BEGIN(TN, t_n, T_P, _f_) {_C_;} _PAROLE_DEFINE_TYPE_EXTENDED_END()
/**
* PAROLE_DEFINE_TYPE_WITH_CODE:
* @TN: The name of the new type, in Camel case.
* @t_n: The name of the new type, in lowercase, with words separated by '_'.
* @T_P: The #GType of the parent type.
* @_C_: Custom code that gets inserted in *_get_type() function.
*
* Since: 0.2
*/
#define PAROLE_DEFINE_TYPE_WITH_CODE(TN, t_n, T_P, _C_) _PAROLE_DEFINE_TYPE_EXTENDED_BEGIN(TN, t_n, T_P, 0) {_C_;} _PAROLE_DEFINE_TYPE_EXTENDED_END()
/**
* PAROLE_DEFINE_ABSTRACT_TYPE:
* @TN: The name of the new type, in Camel case.
* @t_n: The name of the new type, in lowercase, with words separated by '_'.
* @T_P: The #GType of the parent type.
*
* Since: 0.2
*/
#define PAROLE_DEFINE_ABSTRACT_TYPE(TN, t_n, T_P) PAROLE_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT, {})
/**
* PAROLE_DEFINE_ABSTRACT_TYPE_WITH_CODE:
* @TN: The name of the new type, in Camel case.
* @t_n: The name of the new type, in lowercase, with words separated by '_'.
* @T_P: The #GType of the parent type.
* @_C_: Custom code that gets inserted in *_get_type() function.
*
* Since: 0.2
*/
#define PAROLE_DEFINE_ABSTRACT_TYPE_WITH_CODE(TN, t_n, T_P, _C_) PAROLE_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT, _C_)
#define _PAROLE_DEFINE_TYPE_EXTENDED_BEGIN(TypeName, type_name, TYPE_PARENT, flags) \
\
static gpointer type_name##_parent_class = NULL; \
static GType type_name##_type = G_TYPE_INVALID; \
\
static void type_name##_init (TypeName *self); \
static void type_name##_class_init (TypeName##Class *klass); \
static void type_name##_class_intern_init (TypeName##Class *klass) \
{ \
type_name##_parent_class = g_type_class_peek_parent (klass); \
type_name##_class_init (klass); \
} \
\
GType \
type_name##_get_type (void) \
{ \
return type_name##_type; \
} \
\
void \
type_name##_register_type (ParoleProviderPlugin *provider_plugin_def) \
{ \
GType parole_define_type_id; \
\
static const GTypeInfo parole_define_type_info = \
{ \
sizeof (TypeName##Class), \
NULL, \
NULL, \
(GClassInitFunc) type_name##_class_intern_init, \
NULL, \
NULL, \
sizeof (TypeName), \
0, \
(GInstanceInitFunc) type_name##_init, \
NULL, \
}; \
\
parole_define_type_id = \
g_type_module_register_type ((GTypeModule*)provider_plugin_def, \
TYPE_PARENT, \
#TypeName, \
&parole_define_type_info, \
flags); \
type_name##_type = parole_define_type_id; \
\
{ /* Code */
#define _PAROLE_DEFINE_TYPE_EXTENDED_END() \
} \
}
/**
* PAROLE_IMPLEMENT_INTERFACE:
* @TYPE_IFACE: the #GType of the interface to add.
* @iface_init: The interface init function.
*/
#define PAROLE_IMPLEMENT_INTERFACE(TYPE_IFACE, iface_init) \
{ \
static const GInterfaceInfo parole_implement_interface_info = \
{ \
(GInterfaceInitFunc) iface_init \
}; \
\
g_type_module_add_interface ((GTypeModule*)provider_plugin_def, \
parole_define_type_id, \
TYPE_IFACE, \
&parole_implement_interface_info); \
}
#undef __PAROLE_H_INSIDE__
#endif /*__PAROLE_H_*/
|