mirror of
https://git.sr.ht/~cismonx/bookmarkfs
synced 2025-06-07 19:58:50 +00:00
backend: rename struct
`bookmarkfs_backend_init_resp` -> `bookmarkfs_backend_create_resp`, since it is used for `backend_create` instead of `backend_init`.
This commit is contained in:
parent
b699a613ef
commit
22263e48f2
5 changed files with 19 additions and 19 deletions
|
@ -90,13 +90,13 @@ enum bookmarkfs_object_type {
|
|||
};
|
||||
|
||||
struct bookmarkfs_backend_conf;
|
||||
struct bookmarkfs_backend_init_resp;
|
||||
struct bookmarkfs_backend_create_resp;
|
||||
struct bookmarkfs_bookmark_entry;
|
||||
struct bookmarkfs_bookmark_stat;
|
||||
|
||||
typedef int (bookmarkfs_backend_create_func) (
|
||||
struct bookmarkfs_backend_conf const *conf,
|
||||
struct bookmarkfs_backend_init_resp *resp
|
||||
struct bookmarkfs_backend_create_resp *resp
|
||||
);
|
||||
|
||||
typedef void (bookmarkfs_backend_free_func) (
|
||||
|
@ -117,7 +117,7 @@ typedef int (bookmarkfs_backend_mkfs_func) (
|
|||
|
||||
typedef int (bookmarkfs_backend_sandbox_func) (
|
||||
void *backend_ctx,
|
||||
struct bookmarkfs_backend_init_resp *resp
|
||||
struct bookmarkfs_backend_create_resp *resp
|
||||
);
|
||||
|
||||
typedef int (bookmarkfs_backend_sync_func) (
|
||||
|
@ -259,7 +259,7 @@ struct bookmarkfs_backend_conf {
|
|||
struct bookmarkfs_conf_opt *opts;
|
||||
};
|
||||
|
||||
struct bookmarkfs_backend_init_resp {
|
||||
struct bookmarkfs_backend_create_resp {
|
||||
char const *name;
|
||||
void *backend_ctx;
|
||||
uint64_t bookmarks_root_id;
|
||||
|
|
|
@ -1692,7 +1692,7 @@ store_load (
|
|||
static int
|
||||
backend_create (
|
||||
struct bookmarkfs_backend_conf const *conf,
|
||||
struct bookmarkfs_backend_init_resp *resp
|
||||
struct bookmarkfs_backend_create_resp *resp
|
||||
) {
|
||||
#ifndef BOOKMARKFS_BACKEND_CHROMIUM_WRITE
|
||||
if (!(conf->flags & BOOKMARKFS_READONLY)) {
|
||||
|
@ -1820,7 +1820,7 @@ backend_init (
|
|||
static int
|
||||
backend_sandbox (
|
||||
void *backend_ctx,
|
||||
struct bookmarkfs_backend_init_resp *UNUSED_VAR(resp)
|
||||
struct bookmarkfs_backend_create_resp *UNUSED_VAR(resp)
|
||||
) {
|
||||
struct backend_ctx *ctx = backend_ctx;
|
||||
|
||||
|
|
|
@ -2661,7 +2661,7 @@ store_check_cb (
|
|||
static int
|
||||
backend_create (
|
||||
struct bookmarkfs_backend_conf const *conf,
|
||||
struct bookmarkfs_backend_init_resp *resp
|
||||
struct bookmarkfs_backend_create_resp *resp
|
||||
) {
|
||||
bool readonly = conf->flags & BOOKMARKFS_BACKEND_READONLY;
|
||||
if (!readonly) {
|
||||
|
@ -2841,7 +2841,7 @@ backend_init (
|
|||
static int
|
||||
backend_sandbox (
|
||||
void *backend_ctx,
|
||||
struct bookmarkfs_backend_init_resp *resp
|
||||
struct bookmarkfs_backend_create_resp *resp
|
||||
) {
|
||||
struct backend_ctx *ctx = backend_ctx;
|
||||
|
||||
|
|
|
@ -293,7 +293,7 @@ fsck_create (
|
|||
.store_path = path,
|
||||
.opts = opts,
|
||||
};
|
||||
struct bookmarkfs_backend_init_resp resp = {
|
||||
struct bookmarkfs_backend_create_resp resp = {
|
||||
.bookmarks_root_id = UINT64_MAX,
|
||||
.tags_root_id = UINT64_MAX,
|
||||
};
|
||||
|
@ -437,7 +437,7 @@ fsck_sandbox (
|
|||
) {
|
||||
struct fsck_ctx *ctx = fsck_ctx;
|
||||
|
||||
struct bookmarkfs_backend_init_resp info = {
|
||||
struct bookmarkfs_backend_create_resp info = {
|
||||
.bookmarks_root_id = UINT64_MAX,
|
||||
};
|
||||
if (0 != BACKEND_CALL(ctx, backend_sandbox, &info)) {
|
||||
|
|
|
@ -115,7 +115,7 @@ enter_sandbox (
|
|||
return 0;
|
||||
}
|
||||
|
||||
struct bookmarkfs_backend_init_resp resp = {
|
||||
struct bookmarkfs_backend_create_resp resp = {
|
||||
.bookmarks_root_id = UINT64_MAX,
|
||||
.tags_root_id = UINT64_MAX,
|
||||
};
|
||||
|
@ -213,7 +213,7 @@ init_backend (
|
|||
}
|
||||
}
|
||||
|
||||
struct bookmarkfs_backend_init_resp resp = {
|
||||
struct bookmarkfs_backend_create_resp resp = {
|
||||
.bookmarks_root_id = UINT64_MAX,
|
||||
.tags_root_id = UINT64_MAX,
|
||||
.bookmark_attrs = "",
|
||||
|
|
Loading…
Add table
Reference in a new issue