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>
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include <gio/gio.h>
|
||||
#include <libgsystem.h>
|
||||
#include <string.h> /* Yeah...let's just do that here. */
|
||||
#include <gsystem-local-alloc.h>
|
||||
|
||||
#define ot_gobject_refz(o) (o ? g_object_ref (o) : o)
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "ot-admin-builtins.h"
|
||||
#include "ot-admin-functions.h"
|
||||
#include "ostree.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "ot-admin-deploy.h"
|
||||
#include "ot-ordered-hash.h"
|
||||
#include "ostree.h"
|
||||
#include "otutil.h"
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "ot-admin-builtins.h"
|
||||
#include "ot-admin-functions.h"
|
||||
#include "ostree.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "ot-admin-builtins.h"
|
||||
#include "ot-admin-functions.h"
|
||||
#include "otutil.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "ot-admin-builtins.h"
|
||||
#include "ot-admin-functions.h"
|
||||
#include "otutil.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "ot-admin-builtins.h"
|
||||
#include "ot-admin-functions.h"
|
||||
#include "ostree.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
|
||||
@@ -20,13 +20,14 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "ot-admin-builtins.h"
|
||||
#include "ot-admin-functions.h"
|
||||
#include "ot-admin-deploy.h"
|
||||
#include "ot-ordered-hash.h"
|
||||
#include "ostree.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include "otutil.h"
|
||||
|
||||
static GOptionEntry options[] = {
|
||||
{ NULL }
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "ot-admin-deploy.h"
|
||||
#include "ostree.h"
|
||||
#include "otutil.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -21,9 +21,9 @@
|
||||
#include "config.h"
|
||||
|
||||
#include "ot-bootloader-syslinux.h"
|
||||
#include "libgsystem.h"
|
||||
#include "otutil.h"
|
||||
#include "ot-admin-functions.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "ot-bootloader.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
G_DEFINE_INTERFACE (OtBootloader, ot_bootloader, G_TYPE_OBJECT)
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include "ot-main.h"
|
||||
#include "ostree.h"
|
||||
#include "ostree-repo-file.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "ot-builtins.h"
|
||||
#include "ostree.h"
|
||||
#include "otutil.h"
|
||||
|
||||
#include <gio/gunixoutputstream.h>
|
||||
|
||||
|
||||
@@ -22,10 +22,12 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include <string.h>
|
||||
#include <gio/gunixinputstream.h>
|
||||
|
||||
#include "ot-builtins.h"
|
||||
#include "ostree.h"
|
||||
|
||||
#include <gio/gunixinputstream.h>
|
||||
#include "otutil.h"
|
||||
|
||||
static gboolean opt_user_mode;
|
||||
static gboolean opt_allow_noent;
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "ot-builtins.h"
|
||||
#include "ostree.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
static GOptionEntry options[] = {
|
||||
{ NULL }
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "ot-builtins.h"
|
||||
#include "ostree.h"
|
||||
#include "otutil.h"
|
||||
|
||||
static char *opt_subject;
|
||||
static char *opt_body;
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "ot-builtins.h"
|
||||
#include "ostree.h"
|
||||
#include "otutil.h"
|
||||
|
||||
static GOptionEntry options[] = {
|
||||
{ NULL }
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "ot-builtins.h"
|
||||
#include "ostree.h"
|
||||
#include "otutil.h"
|
||||
|
||||
static gboolean opt_stats;
|
||||
static gboolean opt_fs_diff;
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "ot-builtins.h"
|
||||
#include "ostree.h"
|
||||
#include "otutil.h"
|
||||
|
||||
static gboolean opt_quiet;
|
||||
static gboolean opt_delete;
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "ot-builtins.h"
|
||||
#include "ostree.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
static gboolean opt_archive;
|
||||
static char *opt_mode = NULL;
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "ot-builtins.h"
|
||||
#include "ostree.h"
|
||||
#include "ostree-repo-file.h"
|
||||
#include "otutil.h"
|
||||
|
||||
static gboolean opt_dironly;
|
||||
static gboolean opt_recursive;
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "ot-builtins.h"
|
||||
#include "ostree.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
static gboolean opt_no_prune;
|
||||
static gint opt_depth = -1;
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
|
||||
#include "ot-builtins.h"
|
||||
#include "ostree.h"
|
||||
#include "otutil.h"
|
||||
|
||||
static char *opt_remote;
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "ot-builtins.h"
|
||||
#include "ostree.h"
|
||||
#include "otutil.h"
|
||||
|
||||
gboolean opt_related;
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "ot-builtins.h"
|
||||
#include "ostree.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
static gboolean opt_delete;
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "ot-builtins.h"
|
||||
#include "ostree.h"
|
||||
#include "otutil.h"
|
||||
|
||||
static GOptionEntry options[] = {
|
||||
{ NULL }
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "ot-builtins.h"
|
||||
#include "ostree.h"
|
||||
#include "otutil.h"
|
||||
|
||||
static GOptionEntry options[] = {
|
||||
{ NULL }
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "ot-builtins.h"
|
||||
#include "ostree.h"
|
||||
#include "otutil.h"
|
||||
|
||||
static gboolean opt_print_related;
|
||||
static char* opt_print_variant_type;
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
|
||||
#include "ot-builtins.h"
|
||||
#include "ostree.h"
|
||||
#include "otutil.h"
|
||||
|
||||
static char *opt_port_file = NULL;
|
||||
static gboolean opt_daemonize;
|
||||
|
||||
@@ -22,12 +22,13 @@
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "ot-builtins.h"
|
||||
#include "ostree.h"
|
||||
|
||||
#include <gio/gunixoutputstream.h>
|
||||
#include <gio/gunixinputstream.h>
|
||||
|
||||
#include "ot-builtins.h"
|
||||
#include "ostree.h"
|
||||
#include "otutil.h"
|
||||
|
||||
static GOptionEntry options[] = {
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#include "ot-deployment.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
struct _OtDeployment
|
||||
{
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
|
||||
#include "ot-main.h"
|
||||
#include "otutil.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
int
|
||||
ostree_usage (char **argv,
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "config.h"
|
||||
|
||||
#include "ot-ordered-hash.h"
|
||||
#include "libgsystem.h"
|
||||
|
||||
OtOrderedHash *
|
||||
ot_ordered_hash_new (void)
|
||||
|
||||
Reference in new issue
Block a user