parole: Parole Plugins Reference Manual

## parole parole |

## Functions

#define | PAROLE_CHECK_VERSION()
#define | PAROLE_DEFINE_TYPE()
#define | PAROLE_DEFINE_TYPE_EXTENDED()
#define | PAROLE_DEFINE_TYPE_WITH_CODE()
#define | PAROLE_DEFINE_ABSTRACT_TYPE()
#define | PAROLE_DEFINE_ABSTRACT_TYPE_WITH_CODE()
#define | PAROLE_IMPLEMENT_INTERFACE()
GtkRecentFilter * | parole_get_supported_recent_files_filter ()
GtkRecentFilter * | parole_get_supported_recent_media_filter ()

## Types and Values

#define | PAROLE_MAJOR_VERSION
#define | PAROLE_MINOR_VERSION
#define | PAROLE_MICRO_VERSION

## Description

## Functions

### PAROLE_CHECK_VERSION()

    #define             PAROLE_CHECK_VERSION(major,minor,micro)

Checks the parole version.

#### Parameters

major | major version number |
minor | minor version number |
micro | micro version number |

Since: 0.2

### PAROLE_DEFINE_TYPE()

    #define PAROLE_DEFINE_TYPE(TN, t_n, T_P) PAROLE_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, {})

Create a new type definition.

#### Parameters

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

### PAROLE_DEFINE_TYPE_EXTENDED()

    #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()

Create a new type definition, passing flags and custom code to be inserted in the *_get_type() function.

#### Parameters

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

### PAROLE_DEFINE_TYPE_WITH_CODE()

    #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()

Create a new type definition, passing custom code to be inserted in the *_get_type() function.

#### Parameters

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

### PAROLE_DEFINE_ABSTRACT_TYPE()

    #define PAROLE_DEFINE_ABSTRACT_TYPE(TN, t_n, T_P) PAROLE_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT, {})

Create a new abstract type definition.

#### Parameters

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

### PAROLE_DEFINE_ABSTRACT_TYPE_WITH_CODE()

    #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_)

Create a new abstract type definition, passing custom code to be inserted in the *_get_type() function.

#### Parameters

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

### PAROLE_IMPLEMENT_INTERFACE()

    #define             PAROLE_IMPLEMENT_INTERFACE(TYPE_IFACE, iface_init)

Convenience function for interface implementation.

#### Parameters

TYPE_IFACE | the GType of the interface to add |
iface_init | The interface init function |

### parole_get_supported_recent_files_filter ()

    GtkRecentFilter *
    parole_get_supported_recent_files_filter
                                   (void);

Get a GtkRecentFilter according to the supported Parole file mime types, including audio/video/playlist formats.

#### Returns

A GtkRecentFilter for supported files formats

Since: 0.2

### parole_get_supported_recent_media_filter ()

    GtkRecentFilter *
    parole_get_supported_recent_media_filter
                                   (void);

Get a GtkRecentFilter according to the supported Parole file mime types, including audio/video/playlist formats.

#### Returns

A GtkRecentFilter for supported files formats

Since: 0.2

## Types and Values

### PAROLE_MAJOR_VERSION

    #define PAROLE_MAJOR_VERSION		1

Major version number.

Since: 0.2

### PAROLE_MINOR_VERSION

    #define PAROLE_MINOR_VERSION		0

Minor version number.

Since: 0.2

### PAROLE_MICRO_VERSION

    #define PAROLE_MICRO_VERSION		3

Micro version number.

Since: 0.2