summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-core.h
diff options
context:
space:
mode:
authorPhilip Withnall <withnall@endlessm.com>2017-06-14 12:28:52 +0100
committerAtomic Bot <atomic-devel@projectatomic.io>2017-06-20 21:52:22 +0000
commit20dc9454b3ba257778a74b42699c8506996372db (patch)
tree7a690cc64f04c41239f0c11b3d0cb110ae0dbacd /src/libostree/ostree-core.h
parentfd50c9732231895b18cd8158726e7f77bc8dcae6 (diff)
downloadostree-20dc9454b3ba257778a74b42699c8506996372db.tar.gz
lib/core: Add ostree_validate_remote_name() for remote names
There are a few places in the code where ad-hoc validation was being performed. Might as well formalise it a bit more. Signed-off-by: Philip Withnall <withnall@endlessm.com> Closes: #948 Approved by: cgwalters
Diffstat (limited to 'src/libostree/ostree-core.h')
-rw-r--r--src/libostree/ostree-core.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libostree/ostree-core.h b/src/libostree/ostree-core.h
index c1e014e2..dc64d89b 100644
--- a/src/libostree/ostree-core.h
+++ b/src/libostree/ostree-core.h
@@ -243,6 +243,9 @@ _OSTREE_PUBLIC
gboolean ostree_validate_rev (const char *rev, GError **error);
_OSTREE_PUBLIC
+gboolean ostree_validate_remote_name (const char *remote_name, GError **error);
+
+_OSTREE_PUBLIC
gboolean ostree_parse_refspec (const char *refspec,
char **out_remote,
char **out_ref,