lib/repo: Make ost_repo_remove_remote() available internally

Make it an internal, not static, API; like _ostree_repo_add_remote(). It
will be used in many the same situations.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Closes: #875
Approved by: cgwalters
This commit is contained in:
Philip Withnall 2017-05-18 08:28:03 +01:00 committed by Atomic Bot
parent b6ac28b0da
commit 242a0fd779
2 changed files with 7 additions and 4 deletions

View File

@ -354,6 +354,9 @@ _ostree_repo_update_mtime (OstreeRepo *self,
gboolean gboolean
_ostree_repo_add_remote (OstreeRepo *self, _ostree_repo_add_remote (OstreeRepo *self,
OstreeRemote *remote); OstreeRemote *remote);
gboolean
_ostree_repo_remove_remote (OstreeRepo *self,
OstreeRemote *remote);
OstreeRemote * OstreeRemote *
_ostree_repo_get_remote (OstreeRepo *self, _ostree_repo_get_remote (OstreeRepo *self,
const char *name, const char *name,

View File

@ -169,9 +169,9 @@ _ostree_repo_add_remote (OstreeRepo *self,
return already_existed; return already_existed;
} }
static gboolean gboolean
ost_repo_remove_remote (OstreeRepo *self, _ostree_repo_remove_remote (OstreeRepo *self,
OstreeRemote *remote) OstreeRemote *remote)
{ {
gboolean removed; gboolean removed;
@ -1040,7 +1040,7 @@ impl_repo_remote_delete (OstreeRepo *self,
if (!ot_ensure_unlinked_at (self->repo_dir_fd, remote->keyring, error)) if (!ot_ensure_unlinked_at (self->repo_dir_fd, remote->keyring, error))
return FALSE; return FALSE;
ost_repo_remove_remote (self, remote); _ostree_repo_remove_remote (self, remote);
return TRUE; return TRUE;
} }