From 2a7078e1e7cbaafa22c02fcb03c5abe1ef15e5cc Mon Sep 17 00:00:00 2001 From: Thomas Vander Stichele Date: Fri, 2 Sep 2005 23:36:24 +0000 Subject: [PATCH] whitespace cleanups Original commit message from CVS: whitespace cleanups --- gst/gsturi.h | 68 +++++++++++++++++++++++++++++++----------------------------- 1 file changed, 35 insertions(+), 33 deletions(-) diff --git a/gst/gsturi.h b/gst/gsturi.h index 20118ab..8111685 100644 --- a/gst/gsturi.h +++ b/gst/gsturi.h @@ -40,9 +40,9 @@ typedef enum { /* uri handler functions */ #define GST_TYPE_URI_HANDLER (gst_uri_handler_get_type ()) -#define GST_URI_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_URI_HANDLER, GstURIHandler)) -#define GST_IS_URI_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_URI_HANDLER)) -#define GST_URI_HANDLER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_URI_HANDLER, GstURIHandlerInterface)) +#define GST_URI_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GST_TYPE_URI_HANDLER, GstURIHandler)) +#define GST_IS_URI_HANDLER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GST_TYPE_URI_HANDLER)) +#define GST_URI_HANDLER_GET_INTERFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GST_TYPE_URI_HANDLER, GstURIHandlerInterface)) #define GST_URI_HANDLER_CLASS(obj) (G_TYPE_CHECK_CLASS_CAST ((obj), GST_TYPE_URI_HANDLER, GstURIHandler)) typedef struct _GstURIHandler GstURIHandler; @@ -52,53 +52,55 @@ struct _GstURIHandlerInterface { GTypeInterface parent; /* signals */ - void (* new_uri) (GstURIHandler * handler, - const gchar * uri); + void (* new_uri) (GstURIHandler * handler, + const gchar * uri); /* idea for the future ? - gboolean (* require_password) (GstURIHandler * handler, - gchar ** username, - gchar ** password); + gboolean (* require_password) (GstURIHandler * handler, + gchar ** username, + gchar ** password); */ /* vtable */ /* querying capabilities */ - GstURIType (* get_type) (void); - gchar ** (* get_protocols) (void); + GstURIType (* get_type) (void); + gchar ** (* get_protocols) (void); /* using the interface */ - G_CONST_RETURN gchar *(* get_uri) (GstURIHandler * handler); - gboolean (* set_uri) (GstURIHandler * handler, - const gchar * uri); - - /* we might want to add functions here to query features, someone with gnome-vfs knowledge go ahead */ + G_CONST_RETURN gchar *(* get_uri) (GstURIHandler * handler); + gboolean (* set_uri) (GstURIHandler * handler, + const gchar * uri); + + /* we might want to add functions here to query features, + * someone with gnome-vfs knowledge go ahead */ gpointer _gst_reserved[GST_PADDING]; }; /* general URI functions */ -gboolean gst_uri_protocol_is_valid (const gchar * protocol); -gboolean gst_uri_is_valid (const gchar * uri); -gchar * gst_uri_get_protocol (const gchar * uri); -gchar * gst_uri_get_location (const gchar * uri); -gchar * gst_uri_construct (const gchar * protocol, - const gchar * location); +gboolean gst_uri_protocol_is_valid (const gchar * protocol); +gboolean gst_uri_is_valid (const gchar * uri); +gchar * gst_uri_get_protocol (const gchar * uri); +gchar * gst_uri_get_location (const gchar * uri); +gchar * gst_uri_construct (const gchar * protocol, + const gchar * location); -GstElement * gst_element_make_from_uri (const GstURIType type, - const gchar * uri, - const gchar * elementname); +GstElement * gst_element_make_from_uri (const GstURIType type, + const gchar * uri, + const gchar * elementname); /* accessing the interface */ -GType gst_uri_handler_get_type (void); - -guint gst_uri_handler_get_uri_type (GstURIHandler * handler); -gchar ** gst_uri_handler_get_protocols (GstURIHandler * handler); -G_CONST_RETURN gchar * gst_uri_handler_get_uri (GstURIHandler * handler); -gboolean gst_uri_handler_set_uri (GstURIHandler * handler, - const gchar * uri); -void gst_uri_handler_new_uri (GstURIHandler * handler, - const gchar * uri); +GType gst_uri_handler_get_type (void); + +guint gst_uri_handler_get_uri_type (GstURIHandler * handler); +gchar ** gst_uri_handler_get_protocols (GstURIHandler * handler); +G_CONST_RETURN +gchar * gst_uri_handler_get_uri (GstURIHandler * handler); +gboolean gst_uri_handler_set_uri (GstURIHandler * handler, + const gchar * uri); +void gst_uri_handler_new_uri (GstURIHandler * handler, + const gchar * uri); G_END_DECLS -- 2.7.4