/usr/include/grilo-0.3/grl-operation-options.h is in libgrilo-0.3-dev 0.3.4-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 | /*
* Copyright (C) 2011 Igalia S.L.
*
* Contact: Iago Toral Quiroga <itoral@igalia.com>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; version 2.1 of
* the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
#if !defined (_GRILO_H_INSIDE_) && !defined (GRILO_COMPILATION)
#error "Only <grilo.h> can be included directly."
#endif
#include <grl-caps.h>
#include <grl-metadata-key.h>
#if !defined (_GRL_OPERATION_OPTIONS_H_)
#define _GRL_OPERATION_OPTIONS_H_
G_BEGIN_DECLS
typedef struct _GrlOperationOptionsPrivate GrlOperationOptionsPrivate;
typedef struct {
GObject parent;
/*< private >*/
GrlOperationOptionsPrivate *priv;
gpointer _grl_reserved[GRL_PADDING_SMALL];
} GrlOperationOptions;
/**
* GrlOperationOptionsClass:
* @parent: the parent class structure
*
* Grilo Operation Options class.
*/
typedef struct {
GObjectClass parent;
/*< private >*/
gpointer _grl_reserved[GRL_PADDING];
} GrlOperationOptionsClass;
#define GRL_TYPE_OPERATION_OPTIONS (grl_operation_options_get_type ())
#define GRL_OPERATION_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GRL_TYPE_OPERATION_OPTIONS, GrlOperationOptions))
#define GRL_OPERATION_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GRL_TYPE_OPERATION_OPTIONS, GrlOperationOptionsClass))
#define GRL_IS_OPERATION_OPTIONS(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GRL_TYPE_OPERATION_OPTIONS))
#define GRL_IS_OPERATION_OPTIONS_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GRL_TYPE_OPERATION_OPTIONS))
#define GRL_OPERATION_OPTIONS_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GRL_TYPE_OPERATION_OPTIONS, GrlOperationOptionsClass))
/* Keep this macro for backwards compatibility */
#define GRL_OPERATION_OPTIONS_TYPE (GRL_TYPE_OPERATION_OPTIONS)
/**
* GrlResolutionFlags:
* @GRL_RESOLVE_NORMAL: Normal mode.
* @GRL_RESOLVE_FULL: Try other plugins if necessary.
* @GRL_RESOLVE_IDLE_RELAY: Use idle loop to relay results.
* @GRL_RESOLVE_FAST_ONLY: Only resolve fast metadata keys.
*
* Resolution flags
*/
typedef enum {
GRL_RESOLVE_NORMAL = 0, /* Normal mode */
GRL_RESOLVE_FULL = (1 << 0), /* Try other plugins if necessary */
GRL_RESOLVE_IDLE_RELAY = (1 << 1), /* Use idle loop to relay results */
GRL_RESOLVE_FAST_ONLY = (1 << 2) /* Only resolve fast metadata keys */
} GrlResolutionFlags;
/**
* GrlWriteFlags:
* @GRL_WRITE_NORMAL: Normal mode.
* @GRL_WRITE_FULL: Try other plugins if necessary.
*
* Flags for writing operations.
*/
typedef enum {
GRL_WRITE_NORMAL = 0, /* Normal mode */
GRL_WRITE_FULL = (1 << 0) /* Try other plugins if necessary */
} GrlWriteFlags;
#define GRL_COUNT_INFINITY (-1)
GType grl_operation_options_get_type (void);
GrlOperationOptions *grl_operation_options_new (GrlCaps *caps);
gboolean grl_operation_options_obey_caps (GrlOperationOptions *options,
GrlCaps *caps,
GrlOperationOptions **supported_options,
GrlOperationOptions **unsupported_options);
GrlOperationOptions *grl_operation_options_copy (GrlOperationOptions *options);
gboolean grl_operation_options_set_skip (GrlOperationOptions *options, guint skip);
guint grl_operation_options_get_skip (GrlOperationOptions *options);
gboolean grl_operation_options_set_count (GrlOperationOptions *options, gint count);
gint grl_operation_options_get_count (GrlOperationOptions *options);
gboolean grl_operation_options_set_resolution_flags (GrlOperationOptions *options,
GrlResolutionFlags flags);
GrlResolutionFlags
grl_operation_options_get_resolution_flags (GrlOperationOptions *options);
gboolean grl_operation_options_set_type_filter (GrlOperationOptions *options,
GrlTypeFilter filter);
GrlTypeFilter grl_operation_options_get_type_filter (GrlOperationOptions *options);
gboolean grl_operation_options_set_key_filter_value (GrlOperationOptions *options,
GrlKeyID key,
GValue *value);
gboolean grl_operation_options_set_key_filters (GrlOperationOptions *options,
...) G_GNUC_NULL_TERMINATED;
gboolean grl_operation_options_set_key_filter_dictionary (GrlOperationOptions *options,
GHashTable *filters);
GValue *grl_operation_options_get_key_filter (GrlOperationOptions *options,
GrlKeyID key);
GList *grl_operation_options_get_key_filter_list (GrlOperationOptions *options);
gboolean grl_operation_options_set_key_range_filter_value (GrlOperationOptions *options,
GrlKeyID key,
GValue *min_value,
GValue *max_value);
gboolean grl_operation_options_set_key_range_filter (GrlOperationOptions *options,
...);
void grl_operation_options_get_key_range_filter (GrlOperationOptions *options,
GrlKeyID key,
GValue **min_value,
GValue **max_value);
GList *grl_operation_options_get_key_range_filter_list (GrlOperationOptions *options);
G_END_DECLS
#endif /* _GRL_OPERATION_OPTIONS_H_ */
|