Commit ff2180b2 authored by Thibault Saunier's avatar Thibault Saunier 🌵

ges: Use #pragma once everywhere

parent 0012c6a3
Pipeline #121973 waiting for manual action with stages
in 17 seconds
......@@ -19,8 +19,7 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef _GES_ASSET_
#define _GES_ASSET_
#pragma once
#include <glib-object.h>
#include <ges/ges-extractable.h>
......@@ -145,4 +144,3 @@ gboolean ges_asset_needs_reload (GType extractable_type,
const gchar * id);
G_END_DECLS
#endif /* _GES_ASSET */
......@@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_AUDIO_SOURCE
#define _GES_AUDIO_SOURCE
#pragma once
#include <glib-object.h>
#include <gst/gst.h>
......@@ -68,5 +67,3 @@ struct _GESAudioSourceClass {
};
G_END_DECLS
#endif /* _GES_AUDIO_SOURCE */
......@@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_AUDIO_TEST_SOURCE
#define _GES_AUDIO_TEST_SOURCE
#pragma once
#include <glib-object.h>
#include <ges/ges-types.h>
......@@ -66,6 +65,3 @@ double ges_audio_test_source_get_freq(GESAudioTestSource *self);
GES_API
double ges_audio_test_source_get_volume(GESAudioTestSource *self);
G_END_DECLS
#endif /* _GES_AUDIO_TEST_SOURCE */
......@@ -17,8 +17,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_AUDIO_TRACK_H_
#define _GES_AUDIO_TRACK_H_
#pragma once
#include <glib-object.h>
......@@ -52,5 +51,4 @@ struct _GESAudioTrack
GES_API
GESAudioTrack* ges_audio_track_new (void);
G_END_DECLS
#endif /* _GES_AUDIO_TRACK_H_ */
G_END_DECLS
\ No newline at end of file
......@@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_AUDIO_TRANSITION
#define _GES_AUDIO_TRANSITION
#pragma once
#include <glib-object.h>
#include <ges/ges-types.h>
......@@ -56,6 +55,3 @@ GES_API
GESAudioTransition* ges_audio_transition_new (void);
G_END_DECLS
#endif /* _GES_TRACK_AUDIO_transition */
......@@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_AUDIO_URI_SOURCE
#define _GES_AUDIO_URI_SOURCE
#pragma once
#include <glib-object.h>
#include <ges/ges-types.h>
......@@ -54,6 +53,3 @@ struct _GESAudioUriSourceClass {
};
G_END_DECLS
#endif /* _GES_AUDIO_URI_SOURCE */
......@@ -17,8 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.";
*/
#ifndef _GES_AUTO_TRANSITION_H_
#define _GES_AUTO_TRANSITION_H_
#pragma once
#include <glib-object.h>
#include "ges-track-element.h"
......@@ -68,5 +67,4 @@ G_GNUC_INTERNAL GESAutoTransition * ges_auto_transition_new (GESTrackElement * t
GESTrackElement * previous_source,
GESTrackElement * next_source);
G_END_DECLS
#endif /* _GES_AUTO_TRANSITION_H_ */
G_END_DECLS
\ No newline at end of file
......@@ -17,8 +17,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_BASE_EFFECT_CLIP
#define _GES_BASE_EFFECT_CLIP
#pragma once
#include <glib-object.h>
#include <ges/ges-types.h>
......@@ -54,5 +53,4 @@ struct _GESBaseEffectClipClass {
gpointer _ges_reserved[GES_PADDING];
};
G_END_DECLS
#endif /* _GES_BASE_EFFECT_CLIP */
G_END_DECLS
\ No newline at end of file
......@@ -17,8 +17,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_BASE_EFFECT
#define _GES_BASE_EFFECT
#pragma once
#include <glib-object.h>
#include <ges/ges-types.h>
......@@ -57,4 +56,3 @@ struct _GESBaseEffectClass
};
G_END_DECLS
#endif /* _GES_BASE_EFFECT */
......@@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_BASE_TRANSITION_CLIP
#define _GES_BASE_TRANSITION_CLIP
#pragma once
#include "ges-operation-clip.h"
......@@ -59,5 +58,3 @@ struct _GESBaseTransitionClipClass {
};
G_END_DECLS
#endif /* _GES_BASE_TRANSITION_CLIP */
......@@ -20,8 +20,7 @@
#include "ges-formatter.h"
#ifndef GES_BASE_XML_FORMATTER_H
#define GES_BASE_XML_FORMATTER_H
#pragma once
G_BEGIN_DECLS
typedef struct _GESBaseXmlFormatter GESBaseXmlFormatter;
......@@ -61,4 +60,3 @@ struct _GESBaseXmlFormatterClass
};
G_END_DECLS
#endif /* _GES_BASE_XML_FORMATTER_H */
......@@ -20,8 +20,7 @@
*/
#ifndef GES_CLIP_ASSET_H
#define GES_CLIP_ASSET_H
#pragma once
#include <glib-object.h>
#include <ges/ges-types.h>
......@@ -56,4 +55,3 @@ GES_API
GESTrackType ges_clip_asset_get_supported_formats (GESClipAsset *self);
G_END_DECLS
#endif /* _GES_CLIP_ASSET_H */
......@@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_CLIP
#define _GES_CLIP
#pragma once
#include <glib-object.h>
#include <gst/gst.h>
......@@ -186,5 +185,4 @@ gboolean ges_clip_set_top_effect_index (GESClip *clip, GESBaseEffect *effect,
GES_API
GESClip* ges_clip_split (GESClip *clip, guint64 position);
G_END_DECLS
#endif /* _GES_CLIP */
G_END_DECLS
\ No newline at end of file
......@@ -18,8 +18,7 @@
* Boston, MA 02111-1307, USA.
*/
#ifndef _GES_COMMAND_LINE_FORMATTER_H_
#define _GES_COMMAND_LINE_FORMATTER_H_
#pragma once
#include <glib-object.h>
#include "ges-formatter.h"
......@@ -48,6 +47,3 @@ GES_API
gchar * ges_command_line_formatter_get_help (gint nargs, gchar ** commands);
G_END_DECLS
#endif /* _GES_COMMAND_LINE_FORMATTER_H_ */
......@@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_CONTAINER
#define _GES_CONTAINER
#pragma once
#include <glib-object.h>
#include <gst/gst.h>
......@@ -157,4 +156,3 @@ gboolean ges_container_edit (GESContainer * container,
guint64 position);
G_END_DECLS
#endif /* _GES_CONTAINER */
......@@ -18,8 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.";
*/
#ifndef _GES_EFFECT_ASSET_H_
#define _GES_EFFECT_ASSET_H_
#pragma once
#include <glib-object.h>
#include "ges-track-element-asset.h"
......@@ -46,6 +45,3 @@ struct _GESEffectAsset
};
G_END_DECLS
#endif /* _GES_EFFECT_ASSET_H_ */
......@@ -17,8 +17,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_EFFECT_CLIP
#define _GES_EFFECT_CLIP
#pragma once
#include <glib-object.h>
#include <ges/ges-types.h>
......@@ -58,5 +57,4 @@ GES_API GESEffectClip *
ges_effect_clip_new (const gchar * video_bin_description,
const gchar * audio_bin_description);
G_END_DECLS
#endif /* _GES_EFFECT_CLIP */
G_END_DECLS
\ No newline at end of file
......@@ -17,8 +17,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_EFFECT
#define _GES_EFFECT
#pragma once
#include <glib-object.h>
#include <ges/ges-types.h>
......@@ -65,5 +64,4 @@ ges_effect_new (const gchar * bin_description);
GES_API gboolean
ges_effect_class_register_rate_property (GESEffectClass *klass, const gchar *element_name, const gchar *property_name);
G_END_DECLS
#endif /* _GES_EFFECT */
G_END_DECLS
\ No newline at end of file
......@@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef __GES_ENUMS_H__
#define __GES_ENUMS_H__
#pragma once
#include <gst/gst.h>
#include <ges/ges-prelude.h>
......@@ -478,5 +477,3 @@ GType ges_edge_get_type (void);
GES_API
const gchar * ges_track_type_name (GESTrackType type);
G_END_DECLS
#endif /* __GES_ENUMS_H__ */
......@@ -18,8 +18,7 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef _GES_EXTRACTABLE_
#define _GES_EXTRACTABLE_
#pragma once
typedef struct _GESExtractable GESExtractable;
......@@ -147,5 +146,4 @@ gboolean ges_extractable_set_asset (GESExtractable *self,
GES_API
gchar * ges_extractable_get_id (GESExtractable *self);
G_END_DECLS
#endif /* _GES_EXTRACTABLE_ */
G_END_DECLS
\ No newline at end of file
......@@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_FORMATTER
#define _GES_FORMATTER
#pragma once
#include <glib-object.h>
#include <ges/ges-timeline.h>
......@@ -157,5 +156,3 @@ GES_API
GESAsset *ges_find_formatter_for_uri (const gchar *uri);
G_END_DECLS
#endif /* _GES_FORMATTER */
......@@ -16,9 +16,7 @@
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __GES_ERROR_H__
#define __GES_ERROR_H__
#pragma once
/**
* SECTION: ges-gerror
......@@ -48,5 +46,4 @@ typedef enum
GES_ERROR_FORMATTER_MALFORMED_INPUT_FILE,
} GESError;
G_END_DECLS
#endif /* __GES_ERROR_H__ */
G_END_DECLS
\ No newline at end of file
......@@ -17,8 +17,7 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef GES_GROUP_H
#define GES_GROUP_H
#pragma once
#include <glib-object.h>
#include <ges/ges-types.h>
......@@ -49,4 +48,3 @@ GES_API
GESGroup *ges_group_new (void);
G_END_DECLS
#endif /* _GES_GROUP_H */
......@@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_IMAGE_SOURCE
#define _GES_IMAGE_SOURCE
#pragma once
#include <glib-object.h>
#include <ges/ges-types.h>
......@@ -53,6 +52,3 @@ struct _GESImageSourceClass {
};
G_END_DECLS
#endif /* _GES_IMAGE_SOURCE */
......@@ -18,8 +18,8 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef __GES_INTERNAL_H__
#define __GES_INTERNAL_H__
#pragma once
#include <gst/gst.h>
#include <gst/pbutils/encoding-profile.h>
#include <gio/gio.h>
......@@ -504,5 +504,3 @@ G_GNUC_INTERNAL gboolean ges_nle_composition_remove_object (GstElement *comp, Gs
G_GNUC_INTERNAL gboolean ges_nle_object_commit (GstElement * nlesource, gboolean recurse);
G_END_DECLS
#endif /* __GES_INTERNAL_H__ */
......@@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_LAYER
#define _GES_LAYER
#pragma once
#include <glib-object.h>
#include <ges/ges-types.h>
......@@ -124,5 +123,3 @@ GES_API
GstClockTime ges_layer_get_duration (GESLayer *layer);
G_END_DECLS
#endif /* _GES_LAYER */
......@@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_MARKER_LIST
#define _GES_MARKER_LIST
#pragma once
#include <glib-object.h>
#include <ges/ges-types.h>
......@@ -56,5 +55,3 @@ GES_API
gboolean ges_marker_list_move (GESMarkerList *list, GESMarker *marker, GstClockTime position);
G_END_DECLS
#endif /* _GES_MARKER_LIST */
......@@ -16,9 +16,7 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef _GES_META_CONTAINER
#define _GES_META_CONTAINER
#pragma once
#include <glib-object.h>
#include <gst/gst.h>
......@@ -334,4 +332,3 @@ ges_meta_container_add_metas_from_string (GESMetaContainer *container,
const gchar *str);
G_END_DECLS
#endif /* _GES_META_CONTAINER */
......@@ -17,8 +17,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_MULTI_FILE_SOURCE
#define _GES_MULTI_FILE_SOURCE
#pragma once
#include <glib-object.h>
#include <ges/ges-types.h>
......@@ -58,4 +57,3 @@ GESMultiFileSource *ges_multi_file_source_new (gchar * uri);
#define GES_MULTI_FILE_URI_PREFIX "multifile://"
G_END_DECLS
#endif /* _GES_MULTI_FILE_SOURCE */
......@@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_OPERATION_CLIP
#define _GES_OPERATION_CLIP
#pragma once
#include <glib-object.h>
#include <gst/gst.h>
......@@ -59,6 +58,3 @@ struct _GESOperationClipClass {
};
G_END_DECLS
#endif /* _GES_OPERATION_CLIP */
......@@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_OPERATION
#define _GES_OPERATION
#pragma once
#include <glib-object.h>
#include <gst/gst.h>
......@@ -61,5 +60,3 @@ struct _GESOperationClass {
};
G_END_DECLS
#endif /* _GES_OPERATION */
......@@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_OVERLAY_CLIP
#define _GES_OVERLAY_CLIP
#pragma once
#include <glib-object.h>
#include <ges/ges-types.h>
......@@ -57,6 +56,3 @@ struct _GESOverlayClipClass {
gpointer _ges_reserved[GES_PADDING];
};
G_END_DECLS
#endif /* _GES_OVERLAY_CLIP */
......@@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_PIPELINE
#define _GES_PIPELINE
#pragma once
#include <glib-object.h>
#include <ges/ges.h>
......@@ -104,6 +103,3 @@ ges_pipeline_preview_set_audio_sink (GESPipeline * self,
GstElement * sink);
G_END_DECLS
#endif /* _GES_PIPELINE */
......@@ -17,8 +17,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef _GES_PITIVI_FORMATTER
#define _GES_PITIVI_FORMATTER
#pragma once
G_BEGIN_DECLS
......@@ -54,5 +53,3 @@ GES_API
GESPitiviFormatter *ges_pitivi_formatter_new (void);
G_END_DECLS
#endif /* _GES_PITIVI_FORMATTER */
......@@ -18,9 +18,7 @@
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef __GST_GES_PRELUDE_H__
#define __GST_GES_PRELUDE_H__
#pragma once
#include <gst/gst.h>
......@@ -39,5 +37,3 @@
#define GES_DEPRECATED G_DEPRECATED GES_API
#define GES_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) GES_API
#endif
#endif /* __GST_GES_PRELUDE_H__ */
......@@ -17,8 +17,7 @@
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef _GES_PROJECT_
#define _GES_PROJECT_
#pragma once
#include <glib-object.h>
#include <gio/gio.h>
......@@ -121,5 +120,3 @@ GES_API
void ges_project_add_formatter (GESProject * project, GESFormatter * formatter);
G_END_DECLS
#endif /* _GES_PROJECT */
......@@ -18,8 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
#ifndef __GES_SCREENSHOT_H__
#define __GES_SCREENSHOT_H__
#pragma once
#include <gst/gst.h>
#include <ges/ges-prelude.h>
......@@ -30,5 +29,3 @@ GES_DEPRECATED GstSample *
ges_play_sink_convert_frame (GstElement * playsink, GstCaps * caps);
G_END_DECLS
#endif /* __GES_SCREENSHOT_H__ */
......@@ -17,8 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.";
*/
#ifndef _GES_SMART_ADDER_H_
#define _GES_SMART_ADDER_H_
#pragma once
#include <glib-object.h>
#include <gst/gst.h>
......@@ -68,4 +67,3 @@ GES_API
GstElement* ges_smart_adder_new (GESTrack *track);
G_END_DECLS
#endif /* _GES_SMART_ADDER_H_ */
......@@ -17,8 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.";
*/
#ifndef _GES_SMART_MIXER_H_
#define _GES_SMART_MIXER_H_
#pragma once