diff options
Diffstat (limited to 'src/libostree/ostree-repo-file.h')
-rw-r--r-- | src/libostree/ostree-repo-file.h | 61 |
1 files changed, 27 insertions, 34 deletions
diff --git a/src/libostree/ostree-repo-file.h b/src/libostree/ostree-repo-file.h index bfe2ab04..309e2964 100644 --- a/src/libostree/ostree-repo-file.h +++ b/src/libostree/ostree-repo-file.h @@ -25,14 +25,17 @@ G_BEGIN_DECLS -#define OSTREE_TYPE_REPO_FILE (ostree_repo_file_get_type ()) -#define OSTREE_REPO_FILE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), OSTREE_TYPE_REPO_FILE, OstreeRepoFile)) -#define OSTREE_REPO_FILE_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), OSTREE_TYPE_REPO_FILE, OstreeRepoFileClass)) -#define OSTREE_IS_REPO_FILE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), OSTREE_TYPE_REPO_FILE)) -#define OSTREE_IS_REPO_FILE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), OSTREE_TYPE_REPO_FILE)) -#define OSTREE_REPO_FILE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), OSTREE_TYPE_REPO_FILE, OstreeRepoFileClass)) - -typedef struct _OstreeRepoFileClass OstreeRepoFileClass; +#define OSTREE_TYPE_REPO_FILE (ostree_repo_file_get_type ()) +#define OSTREE_REPO_FILE(o) \ + (G_TYPE_CHECK_INSTANCE_CAST ((o), OSTREE_TYPE_REPO_FILE, OstreeRepoFile)) +#define OSTREE_REPO_FILE_CLASS(k) \ + (G_TYPE_CHECK_CLASS_CAST ((k), OSTREE_TYPE_REPO_FILE, OstreeRepoFileClass)) +#define OSTREE_IS_REPO_FILE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), OSTREE_TYPE_REPO_FILE)) +#define OSTREE_IS_REPO_FILE_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), OSTREE_TYPE_REPO_FILE)) +#define OSTREE_REPO_FILE_GET_CLASS(o) \ + (G_TYPE_INSTANCE_GET_CLASS ((o), OSTREE_TYPE_REPO_FILE, OstreeRepoFileClass)) + +typedef struct _OstreeRepoFileClass OstreeRepoFileClass; struct _OstreeRepoFileClass { @@ -40,32 +43,28 @@ struct _OstreeRepoFileClass }; _OSTREE_PUBLIC -GType ostree_repo_file_get_type (void) G_GNUC_CONST; +GType ostree_repo_file_get_type (void) G_GNUC_CONST; _OSTREE_PUBLIC -gboolean ostree_repo_file_ensure_resolved (OstreeRepoFile *self, - GError **error); +gboolean ostree_repo_file_ensure_resolved (OstreeRepoFile *self, GError **error); _OSTREE_PUBLIC -gboolean ostree_repo_file_get_xattrs (OstreeRepoFile *self, - GVariant **out_xattrs, - GCancellable *cancellable, - GError **error); +gboolean ostree_repo_file_get_xattrs (OstreeRepoFile *self, GVariant **out_xattrs, + GCancellable *cancellable, GError **error); _OSTREE_PUBLIC -OstreeRepo * ostree_repo_file_get_repo (OstreeRepoFile *self); +OstreeRepo *ostree_repo_file_get_repo (OstreeRepoFile *self); _OSTREE_PUBLIC -OstreeRepoFile * ostree_repo_file_get_root (OstreeRepoFile *self); +OstreeRepoFile *ostree_repo_file_get_root (OstreeRepoFile *self); _OSTREE_PUBLIC -void ostree_repo_file_tree_set_metadata (OstreeRepoFile *self, - const char *checksum, - GVariant *metadata); +void ostree_repo_file_tree_set_metadata (OstreeRepoFile *self, const char *checksum, + GVariant *metadata); _OSTREE_PUBLIC -const char *ostree_repo_file_tree_get_contents_checksum (OstreeRepoFile *self); +const char *ostree_repo_file_tree_get_contents_checksum (OstreeRepoFile *self); _OSTREE_PUBLIC -const char *ostree_repo_file_tree_get_metadata_checksum (OstreeRepoFile *self); +const char *ostree_repo_file_tree_get_metadata_checksum (OstreeRepoFile *self); _OSTREE_PUBLIC GVariant *ostree_repo_file_tree_get_contents (OstreeRepoFile *self); @@ -73,21 +72,15 @@ _OSTREE_PUBLIC GVariant *ostree_repo_file_tree_get_metadata (OstreeRepoFile *self); _OSTREE_PUBLIC -const char * ostree_repo_file_get_checksum (OstreeRepoFile *self); +const char *ostree_repo_file_get_checksum (OstreeRepoFile *self); _OSTREE_PUBLIC -int ostree_repo_file_tree_find_child (OstreeRepoFile *self, - const char *name, - gboolean *is_dir, - GVariant **out_container); +int ostree_repo_file_tree_find_child (OstreeRepoFile *self, const char *name, gboolean *is_dir, + GVariant **out_container); _OSTREE_PUBLIC -gboolean ostree_repo_file_tree_query_child (OstreeRepoFile *self, - int n, - const char *attributes, - GFileQueryInfoFlags flags, - GFileInfo **out_info, - GCancellable *cancellable, - GError **error); +gboolean ostree_repo_file_tree_query_child (OstreeRepoFile *self, int n, const char *attributes, + GFileQueryInfoFlags flags, GFileInfo **out_info, + GCancellable *cancellable, GError **error); G_END_DECLS |