diff options
Diffstat (limited to 'src/libostree/ostree-repo-finder-config.h')
-rw-r--r-- | src/libostree/ostree-repo-finder-config.h | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/src/libostree/ostree-repo-finder-config.h b/src/libostree/ostree-repo-finder-config.h index 2ba10418..4570e5f4 100644 --- a/src/libostree/ostree-repo-finder-config.h +++ b/src/libostree/ostree-repo-finder-config.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,17 +35,30 @@ G_BEGIN_DECLS /* Manually expanded version of the following, omitting autoptr support (for GLib < 2.44): _OSTREE_PUBLIC -G_DECLARE_FINAL_TYPE (OstreeRepoFinderConfig, ostree_repo_finder_config, OSTREE, REPO_FINDER_CONFIG, GObject) */ +G_DECLARE_FINAL_TYPE (OstreeRepoFinderConfig, ostree_repo_finder_config, OSTREE, +REPO_FINDER_CONFIG, GObject) */ _OSTREE_PUBLIC GType ostree_repo_finder_config_get_type (void); G_GNUC_BEGIN_IGNORE_DEPRECATIONS typedef struct _OstreeRepoFinderConfig OstreeRepoFinderConfig; -typedef struct { GObjectClass parent_class; } OstreeRepoFinderConfigClass; +typedef struct +{ + GObjectClass parent_class; +} OstreeRepoFinderConfigClass; -static inline OstreeRepoFinderConfig *OSTREE_REPO_FINDER_CONFIG (gpointer ptr) { return G_TYPE_CHECK_INSTANCE_CAST (ptr, ostree_repo_finder_config_get_type (), OstreeRepoFinderConfig); } -static inline gboolean OSTREE_IS_REPO_FINDER_CONFIG (gpointer ptr) { return G_TYPE_CHECK_INSTANCE_TYPE (ptr, ostree_repo_finder_config_get_type ()); } +static inline OstreeRepoFinderConfig * +OSTREE_REPO_FINDER_CONFIG (gpointer ptr) +{ + return G_TYPE_CHECK_INSTANCE_CAST (ptr, ostree_repo_finder_config_get_type (), + OstreeRepoFinderConfig); +} +static inline gboolean +OSTREE_IS_REPO_FINDER_CONFIG (gpointer ptr) +{ + return G_TYPE_CHECK_INSTANCE_TYPE (ptr, ostree_repo_finder_config_get_type ()); +} G_GNUC_END_IGNORE_DEPRECATIONS _OSTREE_PUBLIC |