Rizin
unix-like reverse engineering framework and cli tools
|
#include "sdb.h"
Go to the source code of this file.
Classes | |
struct | sdb_diff_ctx_t |
struct | sdb_diff_kv_cb_ctx |
Macros | |
#define | APPENDF(...) |
#define | DIFF(ctx, c, ret) |
Typedefs | |
typedef struct sdb_diff_ctx_t | SdbDiffCtx |
typedef struct sdb_diff_kv_cb_ctx | SdbDiffKVCbCtx |
Functions | |
RZ_API int | sdb_diff_format (char *str, int size, const SdbDiff *diff) |
static void | sdb_diff_report_ns (SdbDiffCtx *ctx, SdbNs *ns, bool add) |
static void | sdb_diff_report_kv (SdbDiffCtx *ctx, const char *k, const char *v, bool add) |
static bool | sdb_diff_report_kv_cb (void *user, const char *k, const char *v) |
static void | sdb_diff_report (SdbDiffCtx *ctx, Sdb *sdb, bool add) |
static bool | sdb_diff_kv_cb (void *user, const char *k, const char *v) |
static void | sdb_diff_ctx (SdbDiffCtx *ctx) |
RZ_API bool | sdb_diff (Sdb *a, Sdb *b, SdbDiffCallback cb, void *cb_user) |
#define APPENDF | ( | ... | ) |
typedef struct sdb_diff_ctx_t SdbDiffCtx |
typedef struct sdb_diff_kv_cb_ctx SdbDiffKVCbCtx |
RZ_API bool sdb_diff | ( | Sdb * | a, |
Sdb * | b, | ||
SdbDiffCallback | cb, | ||
void * | cb_user | ||
) |
|
static |
Definition at line 117 of file diff.c.
References a, sdb_diff_kv_cb_ctx::add, b, DIFF, ls_foreach, ls_pop(), ls_push, sdb_ns_t::name, sdb_ns_t::sdb, sdb_diff_kv_cb(), sdb_diff_report(), sdb_diff_report_ns(), sdb_foreach(), and sdb_ns().
Referenced by sdb_diff().
Definition at line 6 of file diff.c.
References sdb_diff_t::add, APPENDF, sdb_diff_t::k, ls_foreach, sdb_diff_t::path, r, and sdb_diff_t::v.
Referenced by dbdiff_cb().
Definition at line 100 of file diff.c.
References DIFF, k, NULL, sdb_const_get(), sdb_diff_report_kv(), and v.
Referenced by sdb_diff_ctx().
|
static |
just report everything from sdb to buf with prefix
Definition at line 87 of file diff.c.
References add(), ls_foreach, ls_pop(), ls_push, sdb_ns_t::name, sdb_t::ns, sdb_ns_t::sdb, sdb_diff_report_kv_cb(), sdb_diff_report_ns(), and sdb_foreach().
Referenced by sdb_diff_ctx().
|
static |
Definition at line 78 of file diff.c.
References k, sdb_diff_report_kv(), and v.
Referenced by sdb_diff_report().
|
static |
Definition at line 63 of file diff.c.
References add(), sdb_ns_t::name, and NULL.
Referenced by sdb_diff_ctx(), and sdb_diff_report().