Top |
OstreeCollectionRef * | ostree_collection_ref_new () |
OstreeCollectionRef * | ostree_collection_ref_dup () |
void | ostree_collection_ref_free () |
guint | ostree_collection_ref_hash () |
gboolean | ostree_collection_ref_equal () |
OstreeCollectionRef ** | ostree_collection_ref_dupv () |
void | ostree_collection_ref_freev () |
OstreeCollectionRef * ostree_collection_ref_new (const gchar *collection_id
,const gchar *ref_name
);
Create a new OstreeCollectionRef containing (collection_id
, ref_name
). If
collection_id
is NULL
, this is equivalent to a plain ref name string (not a
refspec; no remote name is included), which can be used for non-P2P
operations.
Since: 2018.6
OstreeCollectionRef *
ostree_collection_ref_dup (const OstreeCollectionRef *ref
);
Create a copy of the given ref
.
Since: 2018.6
void
ostree_collection_ref_free (OstreeCollectionRef *ref
);
Free the given ref
.
Since: 2018.6
guint
ostree_collection_ref_hash (gconstpointer ref
);
Hash the given ref
. This function is suitable for use with GHashTable.
ref
must be non-NULL
.
Since: 2018.6
gboolean ostree_collection_ref_equal (gconstpointer ref1
,gconstpointer ref2
);
Compare ref1
and ref2
and return TRUE
if they have the same collection ID and
ref name, and FALSE
otherwise. Both ref1
and ref2
must be non-NULL
.
ref1 |
an OstreeCollectionRef. |
[not nullable][type OstreeCollectionRef] |
ref2 |
another OstreeCollectionRef. |
[not nullable][type OstreeCollectionRef] |
Since: 2018.6
OstreeCollectionRef **
ostree_collection_ref_dupv (const OstreeCollectionRef *const *refs
);
Copy an array of OstreeCollectionRefs, including deep copies of all its
elements. refs
must be NULL
-terminated; it may be empty, but must not be
NULL
.
Since: 2018.6