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:
Colin Walters committed 2013-07-26 19:25:07 -04:00
1 parent 74b2c7aab3
commit a5d43bb959
57 files changed
+162 -47

No files matched your search

+11
View File
@@ -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
+1 -2
View File
@@ -20,9 +20,8 @@
#include "config.h"
#include <gio/gio.h>
#include "ostree-chain-input-stream.h"
#include "libgsystem.h"
enum {
PROP_0,
+1 -2
View File
@@ -20,9 +20,8 @@
#include "config.h"
#include <gio/gio.h>
#include "ostree-checksum-input-stream.h"
#include "libgsystem.h"
enum {
PROP_0,
+5 -5
View File
@@ -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)))
+1 -1
View File
@@ -22,7 +22,7 @@
#pragma once
#include <otutil.h>
#include <gio/gio.h>
G_BEGIN_DECLS
+1
View File
@@ -24,6 +24,7 @@
#include "ostree.h"
#include "otutil.h"
#include "libgsystem.h"
static gboolean
get_file_checksum (GFile *f,
+2
View File
@@ -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,
+1
View File
@@ -25,6 +25,7 @@
#include "ostree-mutable-tree.h"
#include "otutil.h"
#include "ostree-core.h"
#include "libgsystem.h"
struct OstreeMutableTree
{
+3
View File
@@ -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>
+1
View File
@@ -22,6 +22,7 @@
#include "config.h"
#include "otutil.h"
#include "ostree-repo-file-enumerator.h"
#include "ostree-repo.h"
+2
View File
@@ -31,6 +31,8 @@
#include "ostree-libarchive-input-stream.h"
#endif
#include "otutil.h"
#ifdef HAVE_LIBARCHIVE
static GFileInfo *
+2 -1
View File
@@ -22,7 +22,8 @@
#include "config.h"
#include "ostree-repo.h"
#include "ostree.h"
#include "otutil.h"
typedef struct {
OstreeRepo *repo;
+1
View File
@@ -69,6 +69,7 @@
#include "ostree.h"
#include "ostree-fetcher.h"
#include "otutil.h"
typedef struct {
enum {
+12
View File
@@ -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,
+1
View File
@@ -24,6 +24,7 @@
#include "ostree.h"
#include "otutil.h"
#include "libgsystem.h"
GHashTable *
ostree_repo_traverse_new_reachable (void)
+12 -6
View File
@@ -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.
+1 -1
View File
@@ -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,
-2
View File
@@ -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>
+1
View File
@@ -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)
+1
View File
@@ -25,6 +25,7 @@
#include "ot-admin-builtins.h"
#include "ot-admin-functions.h"
#include "ostree.h"
#include "libgsystem.h"
#include <glib/gi18n.h>
+1
View File
@@ -27,6 +27,7 @@
#include "ot-admin-deploy.h"
#include "ot-ordered-hash.h"
#include "ostree.h"
#include "otutil.h"
#include <glib/gi18n.h>
+1
View File
@@ -25,6 +25,7 @@
#include "ot-admin-builtins.h"
#include "ot-admin-functions.h"
#include "ostree.h"
#include "libgsystem.h"
#include <glib/gi18n.h>
+1
View File
@@ -25,6 +25,7 @@
#include "ot-admin-builtins.h"
#include "ot-admin-functions.h"
#include "otutil.h"
#include "libgsystem.h"
#include <glib/gi18n.h>
+1
View File
@@ -25,6 +25,7 @@
#include "ot-admin-builtins.h"
#include "ot-admin-functions.h"
#include "otutil.h"
#include "libgsystem.h"
#include <glib/gi18n.h>
+1
View File
@@ -25,6 +25,7 @@
#include "ot-admin-builtins.h"
#include "ot-admin-functions.h"
#include "ostree.h"
#include "libgsystem.h"
#include <glib/gi18n.h>
+3 -2
View File
@@ -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 }
+1
View File
@@ -27,6 +27,7 @@
#include "ot-admin-deploy.h"
#include "ostree.h"
#include "otutil.h"
#include "libgsystem.h"
#include <unistd.h>
#include <stdlib.h>
+1 -1
View File
@@ -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>
+1
View File
@@ -20,6 +20,7 @@
#include "config.h"
#include "ot-bootloader.h"
#include "libgsystem.h"
G_DEFINE_INTERFACE (OtBootloader, ot_bootloader, G_TYPE_OBJECT)
+1
View File
@@ -28,6 +28,7 @@
#include "ot-main.h"
#include "ostree.h"
#include "ostree-repo-file.h"
#include "libgsystem.h"
#include <glib/gi18n.h>
+1
View File
@@ -24,6 +24,7 @@
#include "ot-builtins.h"
#include "ostree.h"
#include "otutil.h"
#include <gio/gunixoutputstream.h>
+4 -2
View File
@@ -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;
+1
View File
@@ -24,6 +24,7 @@
#include "ot-builtins.h"
#include "ostree.h"
#include "libgsystem.h"
static GOptionEntry options[] = {
{ NULL }
+1
View File
@@ -24,6 +24,7 @@
#include "ot-builtins.h"
#include "ostree.h"
#include "otutil.h"
static char *opt_subject;
static char *opt_body;
+1
View File
@@ -24,6 +24,7 @@
#include "ot-builtins.h"
#include "ostree.h"
#include "otutil.h"
static GOptionEntry options[] = {
{ NULL }
+1
View File
@@ -24,6 +24,7 @@
#include "ot-builtins.h"
#include "ostree.h"
#include "otutil.h"
static gboolean opt_stats;
static gboolean opt_fs_diff;
+1
View File
@@ -24,6 +24,7 @@
#include "ot-builtins.h"
#include "ostree.h"
#include "otutil.h"
static gboolean opt_quiet;
static gboolean opt_delete;
+1
View File
@@ -24,6 +24,7 @@
#include "ot-builtins.h"
#include "ostree.h"
#include "libgsystem.h"
static gboolean opt_archive;
static char *opt_mode = NULL;
+1
View File
@@ -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;
+1
View File
@@ -24,6 +24,7 @@
#include "ot-builtins.h"
#include "ostree.h"
#include "libgsystem.h"
static gboolean opt_no_prune;
static gint opt_depth = -1;
+1
View File
@@ -27,6 +27,7 @@
#include "ot-builtins.h"
#include "ostree.h"
#include "otutil.h"
static char *opt_remote;
+1
View File
@@ -24,6 +24,7 @@
#include "ot-builtins.h"
#include "ostree.h"
#include "otutil.h"
gboolean opt_related;
+1
View File
@@ -24,6 +24,7 @@
#include "ot-builtins.h"
#include "ostree.h"
#include "libgsystem.h"
static gboolean opt_delete;
+1
View File
@@ -24,6 +24,7 @@
#include "ot-builtins.h"
#include "ostree.h"
#include "otutil.h"
static GOptionEntry options[] = {
{ NULL }
+1
View File
@@ -24,6 +24,7 @@
#include "ot-builtins.h"
#include "ostree.h"
#include "otutil.h"
static GOptionEntry options[] = {
{ NULL }
+1
View File
@@ -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;
+1
View File
@@ -24,6 +24,7 @@
#include "ot-builtins.h"
#include "ostree.h"
#include "otutil.h"
static char *opt_port_file = NULL;
static gboolean opt_daemonize;
+4 -3
View File
@@ -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 }
};
+1
View File
@@ -21,6 +21,7 @@
#include "config.h"
#include "ot-deployment.h"
#include "libgsystem.h"
struct _OtDeployment
{
+1
View File
@@ -28,6 +28,7 @@
#include "ot-main.h"
#include "otutil.h"
#include "libgsystem.h"
int
ostree_usage (char **argv,
+1
View File
@@ -21,6 +21,7 @@
#include "config.h"
#include "ot-ordered-hash.h"
#include "libgsystem.h"
OtOrderedHash *
ot_ordered_hash_new (void)