summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-remote.c
diff options
context:
space:
mode:
authorMatthew Leeds <matthew.leeds@endlessm.com>2018-05-22 15:55:14 -0700
committerAtomic Bot <atomic-devel@projectatomic.io>2018-06-04 19:20:10 +0000
commit8fbf19c9f54ba34ae7ebbc540b08566b8dd18848 (patch)
tree524d9b3ab52563ba2f788771b3056a1c2361ea39 /src/libostree/ostree-remote.c
parentf1d9196076d4aea1f64e0d2cbd17bfa2891b8c4c (diff)
downloadostree-8fbf19c9f54ba34ae7ebbc540b08566b8dd18848.tar.gz
Make P2P API public (no longer experimental)
Currently the API that allows P2P operations (e.g. pulling an ostree ref from a LAN or USB source) is hidden behind the configure flag --enable-experimental-api. This commit makes the API public and makes that flag essentially a no-op (leaving it in place in case we want to use it again in the future). The P2P API has been tested over the last several months and proven to work. This means that since we're no longer using the "experimental" feature flag, P2P builds of Flatpak will fail when using versions of OSTree from this commit onwards, until Flatpak is patched in the near future. If you want to build Flatpak < 0.11.8 with P2P enabled and link against OSTree 2018.6, you'll have to patch Flatpak. However, since Flatpak won't yet have a hard dependency on OSTree 2018.6, it needs a new way to determine if the P2P API in OSTree is available, so this commit adds a "p2p" feature flag. This way the feature set is more semantically correct than if we had continued to use the "experimental" feature flag. In addition to making the P2P API public, this commit makes the P2P unit tests run by default, removes the f27-experimental CI instance that's no longer needed, changes a few man pages to reflect the changes, and updates the bash completion script to accept the new commands and options. Closes: #1596 Approved by: cgwalters
Diffstat (limited to 'src/libostree/ostree-remote.c')
-rw-r--r--src/libostree/ostree-remote.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/libostree/ostree-remote.c b/src/libostree/ostree-remote.c
index da325d18..2b068e15 100644
--- a/src/libostree/ostree-remote.c
+++ b/src/libostree/ostree-remote.c
@@ -50,7 +50,7 @@
* refs are currently on a remote, or the commits they currently point to. Use
* #OstreeRepo in combination with an #OstreeRemote to query that information.
*
- * Since: 2017.6
+ * Since: 2018.6
*/
OstreeRemote *
@@ -119,7 +119,7 @@ ostree_remote_new_from_keyfile (GKeyFile *keyfile,
* Increase the reference count on the given @remote.
*
* Returns: (transfer full): a copy of @remote, for convenience
- * Since: 2017.6
+ * Since: 2018.6
*/
OstreeRemote *
ostree_remote_ref (OstreeRemote *remote)
@@ -138,7 +138,7 @@ ostree_remote_ref (OstreeRemote *remote)
* Decrease the reference count on the given @remote and free it if the
* reference count reaches 0.
*
- * Since: 2017.6
+ * Since: 2018.6
*/
void
ostree_remote_unref (OstreeRemote *remote)
@@ -158,11 +158,9 @@ ostree_remote_unref (OstreeRemote *remote)
}
}
-#ifdef OSTREE_ENABLE_EXPERIMENTAL_API
G_DEFINE_BOXED_TYPE(OstreeRemote, ostree_remote,
ostree_remote_ref,
ostree_remote_unref);
-#endif
/**
* ostree_remote_get_name:
@@ -173,7 +171,7 @@ G_DEFINE_BOXED_TYPE(OstreeRemote, ostree_remote,
* arbitrary, string.
*
* Returns: remote’s name
- * Since: 2017.7
+ * Since: 2018.6
*/
const gchar *
ostree_remote_get_name (OstreeRemote *remote)
@@ -191,7 +189,7 @@ ostree_remote_get_name (OstreeRemote *remote)
* Get the URL from the remote.
*
* Returns: (transfer full): the remote's URL
- * Since: 2017.14
+ * Since: 2018.6
*/
gchar *
ostree_remote_get_url (OstreeRemote *remote)