| OSTree API references | ||||
|---|---|---|---|---|
| Top | Description | ||||
enum OstreeDiffFlags; struct OstreeDiffItem; OstreeDiffItem * ostree_diff_item_ref (OstreeDiffItem *diffitem); void ostree_diff_item_unref (OstreeDiffItem *diffitem); gboolean ostree_diff_dirs (OstreeDiffFlags flags,GFile *a,GFile *b,GPtrArray *modified,GPtrArray *removed,GPtrArray *added,GCancellable *cancellable,GError **error); gboolean ostree_diff_dirs_with_options (OstreeDiffFlags flags,GFile *a,GFile *b,GPtrArray *modified,GPtrArray *removed,GPtrArray *added,OstreeDiffDirsOptions *options,GCancellable *cancellable,GError **error); void ostree_diff_print (GFile *a,GFile *b,GPtrArray *modified,GPtrArray *removed,GPtrArray *added);
typedef enum {
OSTREE_DIFF_FLAGS_NONE = 0,
OSTREE_DIFF_FLAGS_IGNORE_XATTRS = (1 << 0)
} OstreeDiffFlags;
struct OstreeDiffItem {
volatile gint refcount;
GFile *src;
GFile *target;
GFileInfo *src_info;
GFileInfo *target_info;
char *src_checksum;
char *target_checksum;
};
gboolean ostree_diff_dirs (OstreeDiffFlags flags,GFile *a,GFile *b,GPtrArray *modified,GPtrArray *removed,GPtrArray *added,GCancellable *cancellable,GError **error);
Compute the difference between directory a and b as 3 separate
sets of OstreeDiffItem in modified, removed, and added.
|
Flags |
|
First directory path, or NULL
|
|
First directory path |
|
Modified files. [element-type OstreeDiffItem] |
|
Removed files. [element-type Gio.File] |
|
Added files. [element-type Gio.File] |
|
Cancellable |
|
Error |
gboolean ostree_diff_dirs_with_options (OstreeDiffFlags flags,GFile *a,GFile *b,GPtrArray *modified,GPtrArray *removed,GPtrArray *added,OstreeDiffDirsOptions *options,GCancellable *cancellable,GError **error);
Compute the difference between directory a and b as 3 separate
sets of OstreeDiffItem in modified, removed, and added.
|
Flags |
|
First directory path, or NULL
|
|
First directory path |
|
Modified files. [element-type OstreeDiffItem] |
|
Removed files. [element-type Gio.File] |
|
Added files. [element-type Gio.File] |
|
Cancellable |
|
Options. [allow-none] |
|
Error |
void ostree_diff_print (GFile *a,GFile *b,GPtrArray *modified,GPtrArray *removed,GPtrArray *added);
Print the contents of a diff to stdout.
|
First directory path |
|
First directory path |
|
Modified files. [element-type OstreeDiffItem] |
|
Removed files. [element-type Gio.File] |
|
Added files. [element-type Gio.File] |