/usr/include/gstreamermm-0.10/gstreamermm/error.h is in libgstreamermm-0.10-dev 0.10.11-0ubuntu2.
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 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 | // -*- c++ -*-
// Generated by gtkmmproc -- DO NOT MODIFY!
#ifndef _GSTREAMERMM_ERROR_H
#define _GSTREAMERMM_ERROR_H
#include <glibmm/ustring.h>
#include <sigc++/sigc++.h>
/* gstreamermm - a C++ wrapper for gstreamer
*
* Copyright 2008 The gstreamermm Development Team
*
* 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; either
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
namespace Gst
{
/** The GStreamer core GError type.
* GStreamer elements can throw non-fatal warnings and fatal errors.
* Higher-level elements and applications can programatically filter the ones
* they are interested in or can recover from, and have a default handler
* handle the rest of them. Both warnings and fatal errors are treated
* similarly.
*
* Core errors are errors inside the core GStreamer library:
*
* - FAILED - a general error which doesn't fit in any other category. Make
* sure you add a custom message to the error call.
* - TOO_LAZY - do not use this except as a placeholder for deciding where to
* go while developing code.
* - NOT_IMPLEMENTED - use this when you do not want to implement this
* functionality yet.
* - STATE_CHANGE - used for state change errors.
* - PAD - used for pad-related errors.
* - THREAD - used for thread-related errors.
* - NEGOTIATION - used for negotiation-related errors.
* - EVENT - used for event-related errors.
* - SEEK - used for seek-related errors.
* - CAPS - used for caps-related errors.
* - TAG - used for negotiation-related errors.
* - MISSING_PLUGIN - used if a plugin is missing.
* - CLOCK - used for clock related errors.
* - DISABLED - used if functionality has been disabled at compile time (Since:
* 0.10.13).
* - NUM_ERRORS - the number of core error types.
*
* Elements do not have the context required to decide what to do with
* errors. As such, they should only inform about errors, and stop their
* processing. In short, an element doesn't know what it is being used for.
*
* It is the application or compound element using the given element that has
* more context about the use of the element. Errors can be received by
* listening to the Gst::Bus of the element/pipeline for Gst::Message objects
* with the type Gst::MESSAGE_ERROR or Gst::MESSAGE_WARNING. The thrown
* errors should be inspected, and filtered if appropriate.
*
* An application is expected to, by default, present the user with a dialog
* box (or an equivalent) showing the error message. The dialog should also
* allow a way to get at the additional debug information, so the user can
* provide bug reporting information.
*
* A compound element is expected to forward errors by default higher up the
* hierarchy; this is done by default in the same way as for other types of
* Gst::Message.
*
* When applications or compound elements trigger errors that they can
* recover from, they can filter out these errors and take appropriate
* action. For example, an application that gets an error from xvimagesink
* that indicates all XVideo ports are taken, the application can attempt to
* use another sink instead.
*/
class CoreError : public Glib::Error
{
public:
enum Code
{
FAILED = 1,
TOO_LAZY,
NOT_IMPLEMENTED,
STATE_CHANGE,
PAD,
THREAD,
NEGOTIATION,
EVENT,
SEEK,
CAPS,
TAG,
MISSING_PLUGIN,
CLOCK,
DISABLED,
NUM_ERRORS
};
CoreError(Code error_code, const Glib::ustring& error_message);
explicit CoreError(GError* gobject);
Code code() const;
#ifndef DOXYGEN_SHOULD_SKIP_THIS
private:
static void throw_func(GError* gobject);
friend void wrap_init(); // uses throw_func()
#endif //DOXYGEN_SHOULD_SKIP_THIS
};
/** Gets the error domain for core system. Errors in this domain will be from
* the Gst::CoreError enumeration.
*
* @return The quark associated with the core error domain.
*/
Glib::QueryQuark get_core_error_quark();
/** The GStreamer library GError type.
* GStreamer elements can throw non-fatal warnings and fatal errors.
* Higher-level elements and applications can programatically filter the ones
* they are interested in or can recover from, and have a default handler
* handle the rest of them. Both warnings and fatal errors are treated
* similarly.
*
* Library errors are for errors from the library being used by elements
* (initializing, finalizing, settings, ...)
*
* - FAILED - a general error which doesn't fit in any other category. Make
* sure you add a custom message to the error call.
* - TOO_LAZY - do not use this except as a placeholder for deciding where to
* go while developing code.
* - INIT - used when the library could not be opened.
* - SHUTDOWN - used when the library could not be closed.
* - SETTINGS - used when the library doesn't accept settings.
* - ENCODE - used when the library generated an encoding error.
* - NUM_ERRORS - the number of library error types.
*
* Elements do not have the context required to decide what to do with
* errors. As such, they should only inform about errors, and stop their
* processing. In short, an element doesn't know what it is being used for.
*
* It is the application or compound element using the given element that has
* more context about the use of the element. Errors can be received by
* listening to the Gst::Bus of the element/pipeline for Gst::Message objects
* with the type Gst::MESSAGE_ERROR or Gst::MESSAGE_WARNING. The thrown
* errors should be inspected, and filtered if appropriate.
*
* An application is expected to, by default, present the user with a dialog
* box (or an equivalent) showing the error message. The dialog should also
* allow a way to get at the additional debug information, so the user can
* provide bug reporting information.
*
* A compound element is expected to forward errors by default higher up the
* hierarchy; this is done by default in the same way as for other types of
* Gst::Message.
*
* When applications or compound elements trigger errors that they can
* recover from, they can filter out these errors and take appropriate
* action. For example, an application that gets an error from xvimagesink
* that indicates all XVideo ports are taken, the application can attempt to
* use another sink instead.
*/
class LibraryError : public Glib::Error
{
public:
enum Code
{
FAILED = 1,
TOO_LAZY,
INIT,
SHUTDOWN,
SETTINGS,
ENCODE,
NUM_ERRORS
};
LibraryError(Code error_code, const Glib::ustring& error_message);
explicit LibraryError(GError* gobject);
Code code() const;
#ifndef DOXYGEN_SHOULD_SKIP_THIS
private:
static void throw_func(GError* gobject);
friend void wrap_init(); // uses throw_func()
#endif //DOXYGEN_SHOULD_SKIP_THIS
};
/** Gets the error domain for library loading. Errors in this domain will be
* from the gst::libraryerror enumeration.
*
* @return The quark associated with the library error domain.
*/
Glib::QueryQuark get_library_error_quark();
/** The GStreamer resource GError type.
* GStreamer elements can throw non-fatal warnings and fatal errors.
* Higher-level elements and applications can programatically filter the ones
* they are interested in or can recover from, and have a default handler
* handle the rest of them. Both warnings and fatal errors are treated
* similarly.
*
* Resource errors are for any resource used by an element: memory, files,
* network connections, process space, ... They're typically used by source and
* sink elements.
*
* - FAILED - a general error which doesn't fit in any other category. Make
* sure you add a custom message to the error call.
* - TOO_LAZY - do not use this except as a placeholder for deciding where to
* go while developing code.
* - NOT_FOUND - used when the resource could not be found.
* - BUSY - used when resource is busy.
* - OPEN_READ - used when resource fails to open for reading.
* - OPEN_WRITE - used when resource fails to open for writing.
* - OPEN_READ_WRITE - used when resource cannot be opened for both reading and
* writing, or either (but unspecified which).
* - CLOSE - used when the resource can't be closed.
* - READ - used when the resource can't be read from.
* - WRITE - used when the resource can't be written to.
* - SEEK - used when a seek on the resource fails.
* - SYNC - used when a synchronize on the resource fails.
* - SETTINGS - used when settings can't be manipulated on.
* - NO_SPACE_LEFT - used when the resource has no space left.
* - NUM_ERRORS - the number of resource error types.
*
* Elements do not have the context required to decide what to do with
* errors. As such, they should only inform about errors, and stop their
* processing. In short, an element doesn't know what it is being used for.
*
* It is the application or compound element using the given element that has
* more context about the use of the element. Errors can be received by
* listening to the Gst::Bus of the element/pipeline for Gst::Message objects
* with the type Gst::MESSAGE_ERROR or Gst::MESSAGE_WARNING. The thrown
* errors should be inspected, and filtered if appropriate.
*
* An application is expected to, by default, present the user with a dialog
* box (or an equivalent) showing the error message. The dialog should also
* allow a way to get at the additional debug information, so the user can
* provide bug reporting information.
*
* A compound element is expected to forward errors by default higher up the
* hierarchy; this is done by default in the same way as for other types of
* Gst::Message.
*
* When applications or compound elements trigger errors that they can
* recover from, they can filter out these errors and take appropriate
* action. For example, an application that gets an error from xvimagesink
* that indicates all XVideo ports are taken, the application can attempt to
* use another sink instead.
*/
class ResourceError : public Glib::Error
{
public:
enum Code
{
FAILED = 1,
TOO_LAZY,
NOT_FOUND,
BUSY,
OPEN_READ,
OPEN_WRITE,
OPEN_READ_WRITE,
CLOSE,
READ,
WRITE,
SEEK,
SYNC,
SETTINGS,
NO_SPACE_LEFT,
NUM_ERRORS
};
ResourceError(Code error_code, const Glib::ustring& error_message);
explicit ResourceError(GError* gobject);
Code code() const;
#ifndef DOXYGEN_SHOULD_SKIP_THIS
private:
static void throw_func(GError* gobject);
friend void wrap_init(); // uses throw_func()
#endif //DOXYGEN_SHOULD_SKIP_THIS
};
/** Gets error domain for resource handling. Errors in this domain will be
* from the Gst::ResourceError enumeration.
*
* @return The quark associated with the resource error domain.
*/
Glib::QueryQuark get_resource_error_quark();
/** The GStreamer stream GError type.
* GStreamer elements can throw non-fatal warnings and fatal errors.
* Higher-level elements and applications can programatically filter the ones
* they are interested in or can recover from, and have a default handler
* handle the rest of them. Both warnings and fatal errors are treated
* similarly.
*
* Stream errors are for anything related to the stream being processed: format
* errors, media type errors, ... They're typically used by decoders, demuxers,
* converters, ...
*
* - FAILED - a general error which doesn't fit in any other category. Make
* sure you add a custom message to the error call.
* - TOO_LAZY - do not use this except as a placeholder for deciding where to
* go while developing code.
* - NOT_IMPLEMENTED - use this when you do not want to implement this
* functionality yet.
* - TYPE_NOT_FOUND - used when the element doesn't know the stream's type.
* - WRONG_TYPE - used when the element doesn't handle this type of stream.
* - CODEC_NOT_FOUND - used when there's no codec to handle the stream's type.
* - DECODE - used when decoding fails.
* - ENCODE - used when encoding fails.
* - DEMUX - used when demuxing fails.
* - MUX - used when muxing fails.
* - FORMAT - used when the stream is of the wrong format (for example, wrong
* caps).
* - DECRYPT - used when the stream is encrypted and can't be decrypted because
* this is not supported by the element. (Since: 0.10.20)
* - DECRYPT_NOKEY - used when the stream is encrypted and can't be decrypted
* because no suitable key is available. (Since: 0.10.20)
* - NUM_ERRORS - the number of stream error types.
*
* Elements do not have the context required to decide what to do with
* errors. As such, they should only inform about errors, and stop their
* processing. In short, an element doesn't know what it is being used for.
*
* It is the application or compound element using the given element that has
* more context about the use of the element. Errors can be received by
* listening to the Gst::Bus of the element/pipeline for Gst::Message objects
* with the type Gst::MESSAGE_ERROR or Gst::MESSAGE_WARNING. The thrown
* errors should be inspected, and filtered if appropriate.
*
* An application is expected to, by default, present the user with a dialog
* box (or an equivalent) showing the error message. The dialog should also
* allow a way to get at the additional debug information, so the user can
* provide bug reporting information.
*
* A compound element is expected to forward errors by default higher up the
* hierarchy; this is done by default in the same way as for other types of
* Gst::Message.
*
* When applications or compound elements trigger errors that they can
* recover from, they can filter out these errors and take appropriate
* action. For example, an application that gets an error from xvimagesink
* that indicates all XVideo ports are taken, the application can attempt to
* use another sink instead.
*/
class StreamError : public Glib::Error
{
public:
enum Code
{
FAILED = 1,
TOO_LAZY,
NOT_IMPLEMENTED,
TYPE_NOT_FOUND,
WRONG_TYPE,
CODEC_NOT_FOUND,
DECODE,
ENCODE,
DEMUX,
MUX,
FORMAT,
DECRYPT,
DECRYPT_NOKEY,
NUM_ERRORS
};
StreamError(Code error_code, const Glib::ustring& error_message);
explicit StreamError(GError* gobject);
Code code() const;
#ifndef DOXYGEN_SHOULD_SKIP_THIS
private:
static void throw_func(GError* gobject);
friend void wrap_init(); // uses throw_func()
#endif //DOXYGEN_SHOULD_SKIP_THIS
};
/** Gets error domain for media stream processing. Errors in this domain will
* be from the Gst::StreamError enumeration.
*
* @return The quark associated with the media stream error domain.
*/
Glib::QueryQuark get_stream_error_quark();
} // namespace Gst
#endif /* _GSTREAMERMM_ERROR_H */
|