Install a shared library
This required a fair bit of surgery because previously ostree.h included otutil.h, but that's supposed to be a private library.
This commit is contained in:
1 parent
74b2c7aab3
commit
a5d43bb959
57 files changed
+162
-47
No files matched your search
@@ -0,0 +1,11 @@
|
||||
prefix=@prefix@
|
||||
exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
|
||||
Name: OSTree
|
||||
Description: Git for operating system binaries
|
||||
Version: @VERSION@
|
||||
Requires: gio-unix-2.0
|
||||
Libs: -L${libdir} -lostree-1
|
||||
Cflags: -I${includedir}/ostree-1
|
||||
@@ -20,9 +20,8 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
|
||||
#include <gio/gio.h>
|
||||
#include "ostree-chain-input-stream.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
enum {
|
||||
PROP_0,
|
||||
|
||||
@@ -20,9 +20,8 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
|
||||
#include <gio/gio.h>
|
||||
#include "ostree-checksum-input-stream.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
enum {
|
||||
PROP_0,
|
||||
|
||||
@@ -22,15 +22,15 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "ostree.h"
|
||||
#include "otutil.h"
|
||||
|
||||
#include <gio/gfiledescriptorbased.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <gio/gfiledescriptorbased.h>
|
||||
#include <attr/xattr.h>
|
||||
#include "ostree.h"
|
||||
#include "ostree-chain-input-stream.h"
|
||||
#include "otutil.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
#define ALIGN_VALUE(this, boundary) \
|
||||
(( ((unsigned long)(this)) + (((unsigned long)(boundary)) -1)) & (~(((unsigned long)(boundary))-1)))
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <otutil.h>
|
||||
#include <gio/gio.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "ostree.h"
|
||||
#include "otutil.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
static gboolean
|
||||
get_file_checksum (GFile *f,
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
|
||||
#include "ostree-fetcher.h"
|
||||
#include "ostree.h"
|
||||
#include "otutil.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
typedef enum {
|
||||
OSTREE_FETCHER_STATE_PENDING,
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
#include <archive.h>
|
||||
#include <gio/gio.h>
|
||||
#include "ostree-libarchive-input-stream.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
enum {
|
||||
PROP_0,
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "ostree-mutable-tree.h"
|
||||
#include "otutil.h"
|
||||
#include "ostree-core.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
struct OstreeMutableTree
|
||||
{
|
||||
|
||||
@@ -22,6 +22,9 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <glib-unix.h>
|
||||
#include "otutil.h"
|
||||
|
||||
#include "ostree-repo-file.h"
|
||||
#include "ostree-repo-private.h"
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "libgsystem.h"
|
||||
#include "ostree-repo-file-enumerator.h"
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "otutil.h"
|
||||
#include "ostree-repo-file-enumerator.h"
|
||||
#include "ostree-repo.h"
|
||||
|
||||
|
||||
@@ -31,6 +31,8 @@
|
||||
#include "ostree-libarchive-input-stream.h"
|
||||
#endif
|
||||
|
||||
#include "otutil.h"
|
||||
|
||||
#ifdef HAVE_LIBARCHIVE
|
||||
|
||||
static GFileInfo *
|
||||
|
||||
@@ -22,7 +22,8 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "ostree-repo.h"
|
||||
#include "ostree.h"
|
||||
#include "otutil.h"
|
||||
|
||||
typedef struct {
|
||||
OstreeRepo *repo;
|
||||
|
||||
@@ -69,6 +69,7 @@
|
||||
|
||||
#include "ostree.h"
|
||||
#include "ostree-fetcher.h"
|
||||
#include "otutil.h"
|
||||
|
||||
typedef struct {
|
||||
enum {
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#include "ostree-repo-private.h"
|
||||
#include "otutil.h"
|
||||
|
||||
static gboolean
|
||||
add_ref_to_set (const char *remote,
|
||||
@@ -350,6 +351,17 @@ resolve_refspec (OstreeRepo *self,
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
* ostree_repo_resolve_rev:
|
||||
* @self:
|
||||
* @refspec: A refspec
|
||||
* @allow_noent: Do not throw an error if refspec does not exist
|
||||
* @out_rev: (out) (transfer full): A checksum,or %NULL if @allow_noent is true and it does not exist
|
||||
* @error:
|
||||
*
|
||||
* Look up the given refspec, returning the checksum it references in
|
||||
* the parameter @out_rev.
|
||||
*/
|
||||
gboolean
|
||||
ostree_repo_resolve_rev (OstreeRepo *self,
|
||||
const char *refspec,
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "ostree.h"
|
||||
#include "otutil.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
GHashTable *
|
||||
ostree_repo_traverse_new_reachable (void)
|
||||
|
||||
@@ -22,12 +22,6 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "ostree-repo-private.h"
|
||||
#include "ostree-mutable-tree.h"
|
||||
#include "ostree-checksum-input-stream.h"
|
||||
#include "otutil.h"
|
||||
#include "ostree-repo-file-enumerator.h"
|
||||
|
||||
#include <gio/gunixoutputstream.h>
|
||||
#include <gio/gunixinputstream.h>
|
||||
#include <glib/gstdio.h>
|
||||
@@ -35,6 +29,13 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "ostree-repo-private.h"
|
||||
#include "ostree-mutable-tree.h"
|
||||
#include "ostree-checksum-input-stream.h"
|
||||
#include "otutil.h"
|
||||
#include "libgsystem.h"
|
||||
#include "ostree-repo-file-enumerator.h"
|
||||
|
||||
typedef struct {
|
||||
GObjectClass parent_class;
|
||||
} OstreeRepoClass;
|
||||
@@ -2292,6 +2293,11 @@ ostree_repo_load_variant_if_exists (OstreeRepo *self,
|
||||
|
||||
/**
|
||||
* ostree_repo_load_variant:
|
||||
* @self:
|
||||
* @objtype: Expected object type
|
||||
* @sha256: Checksum string
|
||||
* @out_variant: (out): (transfer full): Metadata object
|
||||
* @error:
|
||||
*
|
||||
* Load the metadata object @sha256 of type @objtype, storing the
|
||||
* result in @out_variant.
|
||||
|
||||
@@ -164,7 +164,7 @@ gboolean ostree_repo_stage_content_finish (OstreeRepo *self,
|
||||
gboolean ostree_repo_resolve_rev (OstreeRepo *self,
|
||||
const char *refspec,
|
||||
gboolean allow_noent,
|
||||
char **out_resolved,
|
||||
char **out_rev,
|
||||
GError **error);
|
||||
|
||||
gboolean ostree_repo_write_ref (OstreeRepo *self,
|
||||
|
||||
@@ -22,8 +22,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <ostree-checksum-input-stream.h>
|
||||
#include <ostree-chain-input-stream.h>
|
||||
#include <ostree-core.h>
|
||||
#include <ostree-repo.h>
|
||||
#include <ostree-mutable-tree.h>
|
||||
|
||||
Reference in new issue
Block a user