mirror of
https://github.com/ostreedev/ostree.git
synced 2025-03-19 22:50:35 +03:00
core: Make ostree_get_relative_object_path() private
I plan to rename all of these APIs to use the term 'loose', so that it makes more sense after pack files are introduced. External users should not use them; instead use _load_variant() or _read_commit().
This commit is contained in:
parent
7f9eefb62d
commit
8592922c2c
@ -28,7 +28,6 @@ ostree_object_name_serialize
|
||||
ostree_object_name_deserialize
|
||||
ostree_object_to_string
|
||||
ostree_object_from_string
|
||||
ostree_get_relative_object_path
|
||||
ostree_get_xattrs_for_file
|
||||
ostree_set_xattrs
|
||||
ostree_content_stream_parse
|
||||
|
@ -95,6 +95,11 @@ _ostree_make_temporary_symlink_at (int tmp_dirfd,
|
||||
*/
|
||||
#define _OSTREE_LOOSE_PATH_MAX (256)
|
||||
|
||||
char *
|
||||
_ostree_get_relative_object_path (const char *checksum,
|
||||
OstreeObjectType type,
|
||||
gboolean compressed);
|
||||
|
||||
void
|
||||
_ostree_loose_path (char *buf,
|
||||
const char *checksum,
|
||||
|
@ -1497,8 +1497,8 @@ _ostree_loose_path_with_suffix (char *buf,
|
||||
suffix);
|
||||
}
|
||||
|
||||
/**
|
||||
* ostree_get_relative_object_path:
|
||||
/*
|
||||
* _ostree_get_relative_object_path:
|
||||
* @checksum: ASCII checksum string
|
||||
* @type: Object type
|
||||
* @compressed: Whether or not the repository object is compressed
|
||||
@ -1506,9 +1506,9 @@ _ostree_loose_path_with_suffix (char *buf,
|
||||
* Returns: (transfer full): Relative path for a loose object
|
||||
*/
|
||||
char *
|
||||
ostree_get_relative_object_path (const char *checksum,
|
||||
OstreeObjectType type,
|
||||
gboolean compressed)
|
||||
_ostree_get_relative_object_path (const char *checksum,
|
||||
OstreeObjectType type,
|
||||
gboolean compressed)
|
||||
{
|
||||
GString *path;
|
||||
|
||||
|
@ -167,10 +167,6 @@ void ostree_object_from_string (const char *str,
|
||||
gchar **out_checksum,
|
||||
OstreeObjectType *out_objtype);
|
||||
|
||||
char *ostree_get_relative_object_path (const char *checksum,
|
||||
OstreeObjectType type,
|
||||
gboolean compressed);
|
||||
|
||||
gboolean ostree_get_xattrs_for_file (GFile *f,
|
||||
GVariant **out_xattrs,
|
||||
GCancellable *cancellable,
|
||||
|
@ -1012,7 +1012,7 @@ _ostree_repo_get_object_path (OstreeRepo *self,
|
||||
|
||||
compressed = (type == OSTREE_OBJECT_TYPE_FILE
|
||||
&& ostree_repo_get_mode (self) == OSTREE_REPO_MODE_ARCHIVE_Z2);
|
||||
relpath = ostree_get_relative_object_path (checksum, type, compressed);
|
||||
relpath = _ostree_get_relative_object_path (checksum, type, compressed);
|
||||
ret = g_file_resolve_relative_path (self->repodir, relpath);
|
||||
g_free (relpath);
|
||||
|
||||
|
@ -994,7 +994,7 @@ enqueue_one_object_request (OtPullData *pull_data,
|
||||
}
|
||||
else
|
||||
{
|
||||
objpath = ostree_get_relative_object_path (checksum, objtype, TRUE);
|
||||
objpath = _ostree_get_relative_object_path (checksum, objtype, TRUE);
|
||||
obj_uri = suburi_new (pull_data->base_uri, objpath, NULL);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user