| Top |  |  |  |  | 
| GrlCaps * | grl_caps_new () | 
| GList * | grl_caps_get_key_filter () | 
| GList * | grl_caps_get_key_range_filter () | 
| GrlTypeFilter | grl_caps_get_type_filter () | 
| gboolean | grl_caps_is_key_filter () | 
| gboolean | grl_caps_is_key_range_filter () | 
| void | grl_caps_set_key_filter () | 
| void | grl_caps_set_key_range_filter () | 
| void | grl_caps_set_type_filter () | 
| gboolean | grl_caps_test_option () | 
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.
| 1 2 3 4 5 6 7 | GrlCaps *caps = grl_metadata_source_get_caps (GRL_METADATA_SOURCE (my_source),
                                                 GRL_OP_SEARCH);
   GrlOperationOptions *supported_options;
   if (grl_operation_options_obey_caps (my_options, caps, &supported_options, NULL))
     grl_media_source_search (my_source, "blah", interesting_keys, my_options, ...);
   else // only use a subset of the options we wanted to pass
     grl_media_source_search (my_source, "blah", interesting_keys, supported_options, ...); | 
A GrlCaps can also be passed to grl_operation_options_new(). The created
GrlOperationOptions instance would then check any change against its caps.
gboolean grl_caps_is_key_filter (GrlCaps *caps,GrlKeyID key);
Checks if key
 is supported for filtering in caps
.
Since 0.2.0
gboolean grl_caps_is_key_range_filter (GrlCaps *caps,GrlKeyID key);
Checks if key
 is supported for filtering by range in caps
.
Since 0.2.0
void grl_caps_set_key_range_filter (GrlCaps *caps,GList *keys);
Since 0.2.0
void grl_caps_set_type_filter (GrlCaps *caps,GrlTypeFilter filter);
Sets the supported filter capability.
Since 0.2.0
Type of media to allow.
| allow no content (only GrlMediaBox) | ||
| allow audio content | ||
| allow video content | ||
| allow image content | ||
| allow any type of content |