summaryrefslogtreecommitdiff
path: root/src/libostree/ostree-remote.h
Commit message (Collapse)AuthorAgeFilesLines
* Update FSF license notices to use URL instead of addressJoseph Marrero2021-12-071-3/+1
|
* Make P2P API public (no longer experimental)Matthew Leeds2018-06-041-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add SPDX-License-Identifier to source filesMarcus Folkesson2018-01-301-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | SPDX License List is a list of (common) open source licenses that can be referred to by a “short identifier”. It has several advantages compared to the common "license header texts" usually found in source files. Some of the advantages: * It is precise; there is no ambiguity due to variations in license header text * It is language neutral * It is easy to machine process * It is concise * It is simple and can be used without much cost in interpreted environments like java Script, etc. * An SPDX license identifier is immutable. * It provides simple guidance for developers who want to make sure the license for their code is respected See http://spdx.org for further reading. Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com> Closes: #1439 Approved by: cgwalters
* lib/remote: Add a method to return the URLJoaquim Rocha2017-11-281-0/+3
| | | | | | | | | | | | | | | | | | | | | | When using dynamic remotes (LAN and USB), we cannot use their name with the common remote related ops (ostree_repo_remote_...) because ostree doesn't keep this type of remotes in its internal hash table. Unfortunately this means that we cannot access the URL of those remotes either (in order to e.g. set the right URL for those remotes in Flatpak). Since the URL is actually stored in a key file that belongs to the OstreeRemote, then we can simply allow users access to it through a getter. So this patch adds a method that allows to return the URL directly from the OstreeRemote without having to go through the OstreeRepo. The test-repo-finder-config is also updated by this patch to check if the URL is correct. Closes: #1353 Approved by: cgwalters
* lib: Include OstreeRemote and OstreeCollectionRef in GIRDan Nicholson2017-11-101-2/+0
| | | | | | | | | | | | | | Now that g-ir-scanner is being told about ENABLE_EXPERIMENTAL_API, it can include these types correctly. Drop the __GI_SCANNER__ guards in the header files so that all the declarations are found. After this, you can actually construct the types normally: >>> OSTree.CollectionRef.new('com.example.Foo', 'bar') <OSTree.CollectionRef object at 0x7f2bba4c7528 (OstreeCollectionRef at 0x55c033ff2f30)> Closes: #1337 Approved by: pwithnall
* tree-wide: Remove Emacs modelinesColin Walters2017-09-211-2/+1
| | | | | | | | | We added a `.dir-locals.el` in commit: 9a77017d87b74c5e2895cdd64ad098018929403f There's no need to have it per-file, with that people might think to add other editors, which is the wrong direction. Closes: #1206 Approved by: jlebon
* lib/remote: Fix ‘Since’ line for OstreeRemotePhilip Withnall2017-06-211-1/+1
| | | | | | | | | | There was a typo in it when it was first introduced. Let’s not live in the past. Signed-off-by: Philip Withnall <withnall@endlessm.com> Closes: #950 Approved by: cgwalters
* lib/remote: Fix compilation with --enable-experimental-apiPhilip Withnall2017-05-191-4/+1
| | | | | | | | | | | | The whole ostree-remote.h file is only included in the public ostree.h header if OSTREE_ENABLE_EXPERIMENTAL_API is defined, so there’s no need to change the set of methods defined in it according to whether we’re compiling with experimental API. Signed-off-by: Philip Withnall <withnall@endlessm.com> Closes: #875 Approved by: cgwalters
* lib/remote: Add a getter for OstreeRemote.namePhilip Withnall2017-05-191-0/+3
| | | | | | | | | | Now that we’ve got a public, sealed OstreeRemote structure, we can start carefully exposing members of it as API. Signed-off-by: Philip Withnall <withnall@endlessm.com> Closes: #875 Approved by: cgwalters
* lib/remote: Box OstreeRemote if experimental-apiColin Walters2017-05-161-0/+7
| | | | | | | To avoid an introspection warning. Otherwise, don't box it. Closes: #858 Approved by: pwithnall
* libostree: Make OstreeRemote a public and internal APIPhilip Withnall2017-05-081-0/+56
Previously it was static to ostree-repo.c. Make it usable throughout libostree so it can be used by an upcoming commit, but also expose the typedef and reference counting functions so that opaque OstreeRemote pointers can be used by user code, in anticipation of exposing more of its API publicly in future. Signed-off-by: Philip Withnall <withnall@endlessm.com> Closes: #832 Approved by: cgwalters