repo: Fix list_objects annotations

Without the element-type annotations, bindings don't know how to handle
the elements of the hash table. Since the table is created with destroy
functions, the caller does not own the elements, so transfer container
is used.

Closes: #635
Approved by: cgwalters
This commit is contained in:
Dan Nicholson 2016-09-22 11:53:19 -07:00 committed by Atomic Bot
parent dd3cda401b
commit 300752e55a
1 changed files with 4 additions and 2 deletions

View File

@ -3548,7 +3548,8 @@ ostree_repo_load_commit (OstreeRepo *self,
* ostree_repo_list_objects: * ostree_repo_list_objects:
* @self: Repo * @self: Repo
* @flags: Flags controlling enumeration * @flags: Flags controlling enumeration
* @out_objects: (out): Map of serialized object name to variant data * @out_objects: (out) (transfer container) (element-type GVariant GVariant):
* Map of serialized object name to variant data
* @cancellable: Cancellable * @cancellable: Cancellable
* @error: Error * @error: Error
* *
@ -3605,7 +3606,8 @@ ostree_repo_list_objects (OstreeRepo *self,
* ostree_repo_list_commit_objects_starting_with: * ostree_repo_list_commit_objects_starting_with:
* @self: Repo * @self: Repo
* @start: List commits starting with this checksum * @start: List commits starting with this checksum
* @out_commits: Array of GVariants * @out_commits: (out) (transfer container) (element-type GVariant GVariant):
* Map of serialized commit name to variant data
* @cancellable: Cancellable * @cancellable: Cancellable
* @error: Error * @error: Error
* *