summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-core.h
diff options
context:
space:
mode:
authorDan Nicholson <nicholson@endlessm.com>2016-07-14 09:09:12 -0700
committerAtomic Bot <atomic-devel@projectatomic.io>2016-07-15 02:18:27 +0000
commitdb974b0596a881f545c62de11fc95b68c4890f75 (patch)
tree09359c4e487dd73a37063ff88de92f75549b4c3f /src/libostree/ostree-core.h
parent2e97e721230c52a5e980f1567a988a5c355289c0 (diff)
downloadostree-db974b0596a881f545c62de11fc95b68c4890f75.tar.gz
core: Add allocating b64 checksum functions
The checksum_b64_inplace variants can't be used in bindings. Provide versions that allocate and return the output rather than working on a passed in buffer. These can then be used in GI bindings to get the ostree modified base64 encodings. Closes: #398 Approved by: cgwalters
Diffstat (limited to 'src/libostree/ostree-core.h')
-rw-r--r--src/libostree/ostree-core.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libostree/ostree-core.h b/src/libostree/ostree-core.h
index 415369d5..d1f76cf1 100644
--- a/src/libostree/ostree-core.h
+++ b/src/libostree/ostree-core.h
@@ -192,6 +192,8 @@ guchar *ostree_checksum_to_bytes (const char *checksum);
_OSTREE_PUBLIC
GVariant *ostree_checksum_to_bytes_v (const char *checksum);
_OSTREE_PUBLIC
+guchar *ostree_checksum_b64_to_bytes (const char *checksum);
+_OSTREE_PUBLIC
void ostree_checksum_b64_inplace_to_bytes (const char *checksum,
guint8 *buf);
@@ -199,6 +201,8 @@ _OSTREE_PUBLIC
char * ostree_checksum_from_bytes (const guchar *csum);
_OSTREE_PUBLIC
char * ostree_checksum_from_bytes_v (GVariant *csum_v);
+_OSTREE_PUBLIC
+char * ostree_checksum_b64_from_bytes (const guchar *csum);
_OSTREE_PUBLIC
void ostree_checksum_inplace_from_bytes (const guchar *csum,