mirror of
https://github.com/flatpak/flatpak.git
synced 2026-02-01 19:41:27 -05:00
When listing refs installed or from a remote, only the refs matching the main collection-id were being returned. However, it is very important to have access to all refs, independently from their collection-id, especially when trying to list remotes coming from a USB repository. These changes add the mentioned refs and update the places that use this list, both in the lib and in the CLI. For the implementation to become easier, we introduce also a FlatpakCollectionRef, that should be replaced by OstreeCollectionRef once the latter becomes part of the general API (currently it is in the experimental one). Closes: #1587 Approved by: mwleeds
37 lines
1.3 KiB
C
37 lines
1.3 KiB
C
/*
|
|
* Copyright © 2015 Red Hat, Inc
|
|
*
|
|
* This program is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
*
|
|
* This library is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
* Authors:
|
|
* Alexander Larsson <alexl@redhat.com>
|
|
*/
|
|
|
|
#if !defined(__FLATPAK_H_INSIDE__) && !defined(FLATPAK_COMPILATION)
|
|
#error "Only <flatpak.h> can be included directly."
|
|
#endif
|
|
|
|
#ifndef __FLATPAK_REMOTE_REF_PRIVATE_H__
|
|
#define __FLATPAK_REMOTE_REF_PRIVATE_H__
|
|
|
|
#include <flatpak-remote-ref.h>
|
|
#include <flatpak-dir.h>
|
|
|
|
FlatpakRemoteRef *flatpak_remote_ref_new (FlatpakCollectionRef *coll_ref,
|
|
const char *commit,
|
|
const char *remote_name,
|
|
FlatpakRemoteState *remote_state);
|
|
|
|
#endif /* __FLATPAK_REMOTE_REF_PRIVATE_H__ */
|