command-line-formatter: Stop uselessly looping over options
[platform/upstream/gstreamer.git] / ges / ges-gerror.h
1 /* GStreamer Editing Services
2  * Copyright (C) 2013 Thibault Saunier <thibault.saunier@collabora.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19 #pragma once
20
21 /**
22  * SECTION: ges-gerror
23  * @title: GESErrors
24  * @short_description: GError — Categorized error messages
25  */
26
27 G_BEGIN_DECLS
28
29 /**
30  * GES_ERROR:
31  *
32  * An error happened in GES
33  */
34 #define GES_ERROR g_quark_from_static_string("GES_ERROR")
35
36 /**
37  * GESError:
38  * @GES_ERROR_ASSET_WRONG_ID: The ID passed is malformed
39  * @GES_ERROR_ASSET_LOADING: An error happened while loading the asset
40  * @GES_ERROR_FORMATTER_MALFORMED_INPUT_FILE: The formatted files was malformed
41  * @GES_ERROR_INVALID_FRAME_NUMBER: The frame number is invalid
42  * @GES_ERROR_NEGATIVE_LAYER: The operation would lead to a negative
43  * #GES_TIMELINE_ELEMENT_LAYER_PRIORITY. (Since: 1.18)
44  * @GES_ERROR_NEGATIVE_TIME: The operation would lead to a negative time.
45  * E.g. for the #GESTimelineElement:start #GESTimelineElement:duration or
46  * #GESTimelineElement:in-point. (Since: 1.18)
47  * @GES_ERROR_NOT_ENOUGH_INTERNAL_CONTENT: Some #GESTimelineElement does
48  * not have a large enough #GESTimelineElement:max-duration to cover the
49  * desired operation. (Since: 1.18)
50  * @GES_ERROR_INVALID_OVERLAP_IN_TRACK: The operation would break one of
51  * the overlap conditions for the #GESTimeline. (Since: 1.18)
52  */
53 typedef enum
54 {
55   GES_ERROR_ASSET_WRONG_ID,
56   GES_ERROR_ASSET_LOADING,
57   GES_ERROR_FORMATTER_MALFORMED_INPUT_FILE,
58   GES_ERROR_INVALID_FRAME_NUMBER,
59   GES_ERROR_NEGATIVE_LAYER,
60   GES_ERROR_NEGATIVE_TIME,
61   GES_ERROR_NOT_ENOUGH_INTERNAL_CONTENT,
62   GES_ERROR_INVALID_OVERLAP_IN_TRACK,
63   GES_ERROR_INVALID_EFFECT_BIN_DESCRIPTION,
64 } GESError;
65
66 G_END_DECLS