diff options
Diffstat (limited to 'src/libostree/ostree-repo-finder-override.h')
-rw-r--r-- | src/libostree/ostree-repo-finder-override.h | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/src/libostree/ostree-repo-finder-override.h b/src/libostree/ostree-repo-finder-override.h index 1e18a8f3..978dc508 100644 --- a/src/libostree/ostree-repo-finder-override.h +++ b/src/libostree/ostree-repo-finder-override.h @@ -23,8 +23,8 @@ #pragma once #include <gio/gio.h> -#include <glib.h> #include <glib-object.h> +#include <glib.h> #include "ostree-repo-finder.h" #include "ostree-types.h" @@ -35,24 +35,36 @@ G_BEGIN_DECLS /* Manually expanded version of the following, omitting autoptr support (for GLib < 2.44): _OSTREE_PUBLIC -G_DECLARE_FINAL_TYPE (OstreeRepoFinderOverride, ostree_repo_finder_override, OSTREE, REPO_FINDER_OVERRIDE, GObject) */ +G_DECLARE_FINAL_TYPE (OstreeRepoFinderOverride, ostree_repo_finder_override, OSTREE, +REPO_FINDER_OVERRIDE, GObject) */ _OSTREE_PUBLIC GType ostree_repo_finder_override_get_type (void); G_GNUC_BEGIN_IGNORE_DEPRECATIONS typedef struct _OstreeRepoFinderOverride OstreeRepoFinderOverride; -typedef struct { GObjectClass parent_class; } OstreeRepoFinderOverrideClass; +typedef struct +{ + GObjectClass parent_class; +} OstreeRepoFinderOverrideClass; -static inline OstreeRepoFinderOverride *OSTREE_REPO_FINDER_OVERRIDE (gpointer ptr) { return G_TYPE_CHECK_INSTANCE_CAST (ptr, ostree_repo_finder_override_get_type (), OstreeRepoFinderOverride); } -static inline gboolean OSTREE_IS_REPO_FINDER_OVERRIDE (gpointer ptr) { return G_TYPE_CHECK_INSTANCE_TYPE (ptr, ostree_repo_finder_override_get_type ()); } +static inline OstreeRepoFinderOverride * +OSTREE_REPO_FINDER_OVERRIDE (gpointer ptr) +{ + return G_TYPE_CHECK_INSTANCE_CAST (ptr, ostree_repo_finder_override_get_type (), + OstreeRepoFinderOverride); +} +static inline gboolean +OSTREE_IS_REPO_FINDER_OVERRIDE (gpointer ptr) +{ + return G_TYPE_CHECK_INSTANCE_TYPE (ptr, ostree_repo_finder_override_get_type ()); +} G_GNUC_END_IGNORE_DEPRECATIONS _OSTREE_PUBLIC OstreeRepoFinderOverride *ostree_repo_finder_override_new (void); _OSTREE_PUBLIC -void ostree_repo_finder_override_add_uri (OstreeRepoFinderOverride *self, - const gchar *uri); +void ostree_repo_finder_override_add_uri (OstreeRepoFinderOverride *self, const gchar *uri); G_END_DECLS |