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

View File

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

View File

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

View File

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

View File

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