core: Make ostree_set_xattrs() private
Nothing external uses it. We keep ostree_get_xattrs_for_file() public because it's convenient for external consumers to get xattrs in exactly the format we desire. https://bugzilla.gnome.org/show_bug.cgi?id=707733
This commit is contained in:
parent
27c3e7884e
commit
0c2ea54e68
|
|
@ -80,6 +80,10 @@ _ostree_set_xattrs_fd (int fd,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
|
gboolean _ostree_set_xattrs (GFile *f, GVariant *xattrs,
|
||||||
|
GCancellable *cancellable, GError **error);
|
||||||
|
|
||||||
|
|
||||||
/* XX + / + checksum-2 + . + extension, but let's just use 256 for a
|
/* XX + / + checksum-2 + . + extension, but let's just use 256 for a
|
||||||
* bit of overkill.
|
* bit of overkill.
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1073,8 +1073,8 @@ _ostree_set_xattrs_fd (int fd,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/*
|
||||||
* ostree_set_xattrs:
|
* _ostree_set_xattrs:
|
||||||
* @f: a file
|
* @f: a file
|
||||||
* @xattrs: Extended attribute list
|
* @xattrs: Extended attribute list
|
||||||
* @cancellable: Cancellable
|
* @cancellable: Cancellable
|
||||||
|
|
@ -1085,10 +1085,10 @@ _ostree_set_xattrs_fd (int fd,
|
||||||
* attributes.
|
* attributes.
|
||||||
*/
|
*/
|
||||||
gboolean
|
gboolean
|
||||||
ostree_set_xattrs (GFile *f,
|
_ostree_set_xattrs (GFile *f,
|
||||||
GVariant *xattrs,
|
GVariant *xattrs,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
const char *path;
|
const char *path;
|
||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
|
|
|
||||||
|
|
@ -176,9 +176,6 @@ gboolean ostree_get_xattrs_for_file (GFile *f,
|
||||||
GCancellable *cancellable,
|
GCancellable *cancellable,
|
||||||
GError **error);
|
GError **error);
|
||||||
|
|
||||||
gboolean ostree_set_xattrs (GFile *f, GVariant *xattrs,
|
|
||||||
GCancellable *cancellable, GError **error);
|
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
ostree_content_stream_parse (gboolean compressed,
|
ostree_content_stream_parse (gboolean compressed,
|
||||||
GInputStream *input,
|
GInputStream *input,
|
||||||
|
|
|
||||||
|
|
@ -217,7 +217,7 @@ create_file_from_input (GFile *dest_file,
|
||||||
|
|
||||||
if (xattrs != NULL)
|
if (xattrs != NULL)
|
||||||
{
|
{
|
||||||
if (!ostree_set_xattrs (dest_file, xattrs, cancellable, error))
|
if (!_ostree_set_xattrs (dest_file, xattrs, cancellable, error))
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ commit_loose_object_trusted (OstreeRepo *self,
|
||||||
*/
|
*/
|
||||||
if (xattrs != NULL)
|
if (xattrs != NULL)
|
||||||
{
|
{
|
||||||
if (!ostree_set_xattrs (temp_file, xattrs, cancellable, error))
|
if (!_ostree_set_xattrs (temp_file, xattrs, cancellable, error))
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue