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,
|
||||
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
|
||||
* bit of overkill.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -1073,8 +1073,8 @@ _ostree_set_xattrs_fd (int fd,
|
|||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* ostree_set_xattrs:
|
||||
/*
|
||||
* _ostree_set_xattrs:
|
||||
* @f: a file
|
||||
* @xattrs: Extended attribute list
|
||||
* @cancellable: Cancellable
|
||||
|
|
@ -1085,10 +1085,10 @@ _ostree_set_xattrs_fd (int fd,
|
|||
* attributes.
|
||||
*/
|
||||
gboolean
|
||||
ostree_set_xattrs (GFile *f,
|
||||
GVariant *xattrs,
|
||||
GCancellable *cancellable,
|
||||
GError **error)
|
||||
_ostree_set_xattrs (GFile *f,
|
||||
GVariant *xattrs,
|
||||
GCancellable *cancellable,
|
||||
GError **error)
|
||||
{
|
||||
const char *path;
|
||||
gboolean ret = FALSE;
|
||||
|
|
|
|||
|
|
@ -176,9 +176,6 @@ gboolean ostree_get_xattrs_for_file (GFile *f,
|
|||
GCancellable *cancellable,
|
||||
GError **error);
|
||||
|
||||
gboolean ostree_set_xattrs (GFile *f, GVariant *xattrs,
|
||||
GCancellable *cancellable, GError **error);
|
||||
|
||||
gboolean
|
||||
ostree_content_stream_parse (gboolean compressed,
|
||||
GInputStream *input,
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ create_file_from_input (GFile *dest_file,
|
|||
|
||||
if (xattrs != NULL)
|
||||
{
|
||||
if (!ostree_set_xattrs (dest_file, xattrs, cancellable, error))
|
||||
if (!_ostree_set_xattrs (dest_file, xattrs, cancellable, error))
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ commit_loose_object_trusted (OstreeRepo *self,
|
|||
*/
|
||||
if (xattrs != NULL)
|
||||
{
|
||||
if (!ostree_set_xattrs (temp_file, xattrs, cancellable, error))
|
||||
if (!_ostree_set_xattrs (temp_file, xattrs, cancellable, error))
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue