diff options
author | Colin Walters <walters@verbum.org> | 2023-05-03 08:24:21 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-03 08:24:21 -0400 |
commit | 8a2993a9d01cc358e4c2d936ca132174aabdc714 (patch) | |
tree | 5402001ab710dadfd51ba3e9071b044016030e3e /src/libostree/ostree-repo-finder-avahi.h | |
parent | dd70c9b78cc34ccc7e638eda4c2df1ddd8ee3add (diff) | |
parent | c1044a02b28982ef6dd58af98b23a40482d26487 (diff) | |
download | ostree-8a2993a9d01cc358e4c2d936ca132174aabdc714.tar.gz |
Merge pull request #2565 from cgwalters/clang-format
Add .clang-format file + tree-wide: Run `clang-format`
Diffstat (limited to 'src/libostree/ostree-repo-finder-avahi.h')
-rw-r--r-- | src/libostree/ostree-repo-finder-avahi.h | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/src/libostree/ostree-repo-finder-avahi.h b/src/libostree/ostree-repo-finder-avahi.h index 92b15f22..3885df6e 100644 --- a/src/libostree/ostree-repo-finder-avahi.h +++ b/src/libostree/ostree-repo-finder-avahi.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,27 +35,39 @@ G_BEGIN_DECLS /* Manually expanded version of the following, omitting autoptr support (for GLib < 2.44): _OSTREE_PUBLIC -G_DECLARE_FINAL_TYPE (OstreeRepoFinderAvahi, ostree_repo_finder_avahi, OSTREE, REPO_FINDER_AVAHI, GObject) */ +G_DECLARE_FINAL_TYPE (OstreeRepoFinderAvahi, ostree_repo_finder_avahi, OSTREE, REPO_FINDER_AVAHI, +GObject) */ _OSTREE_PUBLIC GType ostree_repo_finder_avahi_get_type (void); G_GNUC_BEGIN_IGNORE_DEPRECATIONS typedef struct _OstreeRepoFinderAvahi OstreeRepoFinderAvahi; -typedef struct { GObjectClass parent_class; } OstreeRepoFinderAvahiClass; +typedef struct +{ + GObjectClass parent_class; +} OstreeRepoFinderAvahiClass; -static inline OstreeRepoFinderAvahi *OSTREE_REPO_FINDER_AVAHI (gpointer ptr) { return G_TYPE_CHECK_INSTANCE_CAST (ptr, ostree_repo_finder_avahi_get_type (), OstreeRepoFinderAvahi); } -static inline gboolean OSTREE_IS_REPO_FINDER_AVAHI (gpointer ptr) { return G_TYPE_CHECK_INSTANCE_TYPE (ptr, ostree_repo_finder_avahi_get_type ()); } +static inline OstreeRepoFinderAvahi * +OSTREE_REPO_FINDER_AVAHI (gpointer ptr) +{ + return G_TYPE_CHECK_INSTANCE_CAST (ptr, ostree_repo_finder_avahi_get_type (), + OstreeRepoFinderAvahi); +} +static inline gboolean +OSTREE_IS_REPO_FINDER_AVAHI (gpointer ptr) +{ + return G_TYPE_CHECK_INSTANCE_TYPE (ptr, ostree_repo_finder_avahi_get_type ()); +} G_GNUC_END_IGNORE_DEPRECATIONS _OSTREE_PUBLIC OstreeRepoFinderAvahi *ostree_repo_finder_avahi_new (GMainContext *context); _OSTREE_PUBLIC -void ostree_repo_finder_avahi_start (OstreeRepoFinderAvahi *self, - GError **error); +void ostree_repo_finder_avahi_start (OstreeRepoFinderAvahi *self, GError **error); _OSTREE_PUBLIC -void ostree_repo_finder_avahi_stop (OstreeRepoFinderAvahi *self); +void ostree_repo_finder_avahi_stop (OstreeRepoFinderAvahi *self); G_END_DECLS |