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:
Colin Walters 2013-09-07 21:56:36 -04:00
parent 27c3e7884e
commit 0c2ea54e68
5 changed files with 12 additions and 11 deletions

View File

@ -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.
*/

View File

@ -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;

View File

@ -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,

View File

@ -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;
}

View File

@ -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;
}
}