dir: Export flatpak_dir_find_latest_rev

Closes: #1787
Approved by: alexlarsson
This commit is contained in:
Alexander Larsson
2018-06-14 14:15:15 +02:00
committed by Atomic Bot
parent 0a6f676161
commit 641e416280
2 changed files with 9 additions and 10 deletions

View File

@@ -740,6 +740,14 @@ GPtrArray * flatpak_dir_find_local_related (FlatpakDir *self,
gboolean deployed,
GCancellable *cancellable,
GError **error);
gboolean flatpak_dir_find_latest_rev (FlatpakDir *self,
FlatpakRemoteState *state,
const char *ref,
const char *checksum_or_latest,
char **out_rev,
OstreeRepoFinderResult ***out_results,
GCancellable *cancellable,
GError **error);
char ** flatpak_dir_get_default_locale_languages (FlatpakDir *self);
char ** flatpak_dir_get_locale_languages (FlatpakDir *self);

View File

@@ -96,15 +96,6 @@ static gboolean _flatpak_dir_fetch_remote_state_metadata_branch (FlatpakDir *
GError **error);
#endif
static gboolean flatpak_dir_find_latest_rev (FlatpakDir *self,
FlatpakRemoteState *state,
const char *ref,
const char *checksum_or_latest,
char **out_rev,
OstreeRepoFinderResult ***out_results,
GCancellable *cancellable,
GError **error);
typedef struct
{
GBytes *bytes;
@@ -2304,7 +2295,7 @@ async_result_cb (GObject *obj,
}
#endif /* FLATPAK_ENABLE_P2P */
static gboolean
gboolean
flatpak_dir_find_latest_rev (FlatpakDir *self,
FlatpakRemoteState *state,
const char *ref,