diff options
author | Philip Withnall <withnall@endlessm.com> | 2017-06-14 12:28:52 +0100 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-06-20 21:52:22 +0000 |
commit | 20dc9454b3ba257778a74b42699c8506996372db (patch) | |
tree | 7a690cc64f04c41239f0c11b3d0cb110ae0dbacd /src/libostree/ostree-core.h | |
parent | fd50c9732231895b18cd8158726e7f77bc8dcae6 (diff) | |
download | ostree-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.h | 3 |
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, |