mirror of
https://github.com/flatpak/flatpak.git
synced 2026-05-18 05:38:34 -04:00
utils: Move more repository functionality into repo-utils
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
committed by
Georges Basile Stavracas Neto
parent
31590889f8
commit
06970e015f
@@ -34,6 +34,7 @@
|
||||
#include "libglnx.h"
|
||||
|
||||
#include "flatpak-builtins.h"
|
||||
#include "flatpak-repo-utils-private.h"
|
||||
#include "flatpak-utils-private.h"
|
||||
#include "flatpak-oci-registry-private.h"
|
||||
#include "flatpak-chain-input-stream-private.h"
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "libglnx.h"
|
||||
|
||||
#include "flatpak-builtins.h"
|
||||
#include "flatpak-repo-utils-private.h"
|
||||
#include "flatpak-utils-private.h"
|
||||
#include "parse-datetime.h"
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "libglnx.h"
|
||||
|
||||
#include "flatpak-builtins.h"
|
||||
#include "flatpak-repo-utils-private.h"
|
||||
#include "flatpak-utils-private.h"
|
||||
#include "parse-datetime.h"
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "libglnx.h"
|
||||
|
||||
#include "flatpak-builtins.h"
|
||||
#include "flatpak-repo-utils-private.h"
|
||||
#include "flatpak-utils-private.h"
|
||||
#include "flatpak-oci-registry-private.h"
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
#include "libglnx.h"
|
||||
|
||||
#include "flatpak-builtins.h"
|
||||
#include "flatpak-repo-utils-private.h"
|
||||
#include "flatpak-builtins-utils.h"
|
||||
#include "flatpak-utils-private.h"
|
||||
#include "flatpak-error.h"
|
||||
|
||||
@@ -127,3 +127,47 @@ guint flatpak_repo_get_summary_history_length (OstreeRepo *repo);
|
||||
gboolean flatpak_repo_set_gpg_keys (OstreeRepo *repo,
|
||||
GBytes *bytes,
|
||||
GError **error);
|
||||
|
||||
gboolean flatpak_repo_collect_sizes (OstreeRepo *repo,
|
||||
GFile *root,
|
||||
guint64 *installed_size,
|
||||
guint64 *download_size,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
GVariant *flatpak_commit_get_extra_data_sources (GVariant *commitv,
|
||||
GError **error);
|
||||
GVariant *flatpak_repo_get_extra_data_sources (OstreeRepo *repo,
|
||||
const char *rev,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void flatpak_repo_parse_extra_data_sources (GVariant *extra_data_sources,
|
||||
int index,
|
||||
const char **name,
|
||||
guint64 *download_size,
|
||||
guint64 *installed_size,
|
||||
const guchar **sha256,
|
||||
const char **uri);
|
||||
GVariant *flatpak_repo_load_summary (OstreeRepo *repo,
|
||||
GError **error);
|
||||
GVariant *flatpak_repo_load_summary_index (OstreeRepo *repo,
|
||||
GError **error);
|
||||
GVariant *flatpak_repo_load_digested_summary (OstreeRepo *repo,
|
||||
const char *digest,
|
||||
GError **error);
|
||||
|
||||
GBytes *flatpak_summary_apply_diff (GBytes *old,
|
||||
GBytes *diff,
|
||||
GError **error);
|
||||
|
||||
typedef enum
|
||||
{
|
||||
FLATPAK_REPO_UPDATE_FLAG_NONE = 0,
|
||||
FLATPAK_REPO_UPDATE_FLAG_DISABLE_INDEX = 1 << 0,
|
||||
} FlatpakRepoUpdateFlags;
|
||||
|
||||
gboolean flatpak_repo_update (OstreeRepo *repo,
|
||||
FlatpakRepoUpdateFlags flags,
|
||||
const char **gpg_key_ids,
|
||||
const char *gpg_homedir,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -114,13 +114,6 @@ gboolean flatpak_variant_save (GFile *dest,
|
||||
GVariant *variant,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
GVariant *flatpak_repo_load_summary (OstreeRepo *repo,
|
||||
GError **error);
|
||||
GVariant *flatpak_repo_load_summary_index (OstreeRepo *repo,
|
||||
GError **error);
|
||||
GVariant *flatpak_repo_load_digested_summary (OstreeRepo *repo,
|
||||
const char *digest,
|
||||
GError **error);
|
||||
GPtrArray *flatpak_summary_match_subrefs (GVariant *summary,
|
||||
const char *collection_id,
|
||||
FlatpakDecomposed *ref);
|
||||
@@ -198,40 +191,6 @@ GBytes *flatpak_zlib_compress_bytes (GBytes *bytes,
|
||||
GBytes *flatpak_zlib_decompress_bytes (GBytes *bytes,
|
||||
GError **error);
|
||||
|
||||
GBytes *flatpak_summary_apply_diff (GBytes *old,
|
||||
GBytes *diff,
|
||||
GError **error);
|
||||
|
||||
typedef enum {
|
||||
FLATPAK_REPO_UPDATE_FLAG_NONE = 0,
|
||||
FLATPAK_REPO_UPDATE_FLAG_DISABLE_INDEX = 1 << 0,
|
||||
} FlatpakRepoUpdateFlags;
|
||||
|
||||
gboolean flatpak_repo_update (OstreeRepo *repo,
|
||||
FlatpakRepoUpdateFlags flags,
|
||||
const char **gpg_key_ids,
|
||||
const char *gpg_homedir,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
gboolean flatpak_repo_collect_sizes (OstreeRepo *repo,
|
||||
GFile *root,
|
||||
guint64 *installed_size,
|
||||
guint64 *download_size,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
GVariant *flatpak_commit_get_extra_data_sources (GVariant *commitv,
|
||||
GError **error);
|
||||
GVariant *flatpak_repo_get_extra_data_sources (OstreeRepo *repo,
|
||||
const char *rev,
|
||||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
void flatpak_repo_parse_extra_data_sources (GVariant *extra_data_sources,
|
||||
int index,
|
||||
const char **name,
|
||||
guint64 *download_size,
|
||||
guint64 *installed_size,
|
||||
const guchar **sha256,
|
||||
const char **uri);
|
||||
gboolean flatpak_mtree_ensure_dir_metadata (OstreeRepo *repo,
|
||||
OstreeMutableTree *mtree,
|
||||
GCancellable *cancellable,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -59,6 +59,7 @@ common/flatpak-oci-registry.c
|
||||
common/flatpak-progress.c
|
||||
common/flatpak-ref-utils.c
|
||||
common/flatpak-remote.c
|
||||
common/flatpak-repo-utils.c
|
||||
common/flatpak-run.c
|
||||
common/flatpak-run-dbus.c
|
||||
common/flatpak-transaction.c
|
||||
|
||||
Reference in New Issue
Block a user