GrlCaps
GrlCaps — Describes the capabilities of a source for a given
operation.
|
|
Object Hierarchy
GObject
╰── GrlCaps
Includes
#include <grilo.h>
Description
A GrlCaps instance is here to help you know if a given set of operation
options is supported for a given operation.
Here is an example of how this would be used.
A GrlCaps can also be passed to grl_operation_options_new()
. The created
GrlOperationOptions instance would then check any change against its caps.
Functions
grl_caps_new ()
GrlCaps *
grl_caps_new (void
);
Creates a new caps object.
Returns
a new caps object.
Since 0.2.0
grl_caps_get_key_filter ()
GList *
grl_caps_get_key_filter (GrlCaps *caps
);
Returns
.
[transfer none][element-type GrlKeyID]
Since 0.2.0
grl_caps_get_key_range_filter ()
GList *
grl_caps_get_key_range_filter (GrlCaps *caps
);
Returns
.
[transfer none][element-type GrlKeyID]
Since 0.2.0
grl_caps_is_key_filter ()
gboolean
grl_caps_is_key_filter (GrlCaps *caps
,
GrlKeyID key
);
Checks if key
is supported for filtering in caps
.
Returns
TRUE
if key
can be used for filtering
Since 0.2.0
grl_caps_is_key_range_filter ()
gboolean
grl_caps_is_key_range_filter (GrlCaps *caps
,
GrlKeyID key
);
Checks if key
is supported for filtering by range in caps
.
Returns
TRUE
if key
can be used for filtering
Since 0.2.0
grl_caps_set_key_filter ()
void
grl_caps_set_key_filter (GrlCaps *caps
,
GList *keys
);
Since 0.2.0
grl_caps_set_key_range_filter ()
void
grl_caps_set_key_range_filter (GrlCaps *caps
,
GList *keys
);
Since 0.2.0
grl_caps_set_type_filter ()
void
grl_caps_set_type_filter (GrlCaps *caps
,
GrlTypeFilter filter
);
Sets the supported filter capability.
Since 0.2.0
grl_caps_test_option ()
gboolean
grl_caps_test_option (GrlCaps *caps
,
const gchar *key
,
const GValue *value
);
Checks whether (key
, value
) are authorized by caps
.
Returns
TRUE
if (key
, value
) obey to caps
, FALSE
otherwise.
Since 0.2.0
Types and Values
GrlCaps
typedef struct _GrlCaps GrlCaps;
GrlCapsClass
typedef struct {
GObjectClass parent;
} GrlCapsClass;
Grilo Capabilities class.
enum GrlTypeFilter
Type of media to allow.