diff --git a/src/backend.h b/src/backend.h index 82934dc..44c9174 100644 --- a/src/backend.h +++ b/src/backend.h @@ -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_conf const *conf, + struct bookmarkfs_backend_create_resp *resp ); typedef void (bookmarkfs_backend_free_func) ( @@ -116,8 +116,8 @@ typedef int (bookmarkfs_backend_mkfs_func) ( ); typedef int (bookmarkfs_backend_sandbox_func) ( - void *backend_ctx, - struct bookmarkfs_backend_init_resp *resp + void *backend_ctx, + struct bookmarkfs_backend_create_resp *resp ); typedef int (bookmarkfs_backend_sync_func) ( @@ -248,7 +248,7 @@ struct bookmarkfs_backend { bookmarkfs_bookmark_rename_func *bookmark_rename; bookmarkfs_bookmark_set_func *bookmark_set; - bookmarkfs_object_free_func *object_free; + bookmarkfs_object_free_func *object_free; }; struct bookmarkfs_backend_conf { @@ -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; diff --git a/src/backend_chromium.c b/src/backend_chromium.c index ce8939e..8ee2bde 100644 --- a/src/backend_chromium.c +++ b/src/backend_chromium.c @@ -1691,8 +1691,8 @@ store_load ( static int backend_create ( - struct bookmarkfs_backend_conf const *conf, - struct bookmarkfs_backend_init_resp *resp + struct bookmarkfs_backend_conf const *conf, + struct bookmarkfs_backend_create_resp *resp ) { #ifndef BOOKMARKFS_BACKEND_CHROMIUM_WRITE if (!(conf->flags & BOOKMARKFS_READONLY)) { @@ -1819,8 +1819,8 @@ backend_init ( static int backend_sandbox ( - void *backend_ctx, - struct bookmarkfs_backend_init_resp *UNUSED_VAR(resp) + void *backend_ctx, + struct bookmarkfs_backend_create_resp *UNUSED_VAR(resp) ) { struct backend_ctx *ctx = backend_ctx; diff --git a/src/backend_firefox.c b/src/backend_firefox.c index d96bc43..8b011b4 100644 --- a/src/backend_firefox.c +++ b/src/backend_firefox.c @@ -2660,8 +2660,8 @@ store_check_cb ( static int backend_create ( - struct bookmarkfs_backend_conf const *conf, - struct bookmarkfs_backend_init_resp *resp + struct bookmarkfs_backend_conf const *conf, + struct bookmarkfs_backend_create_resp *resp ) { bool readonly = conf->flags & BOOKMARKFS_BACKEND_READONLY; if (!readonly) { @@ -2840,8 +2840,8 @@ backend_init ( static int backend_sandbox ( - void *backend_ctx, - struct bookmarkfs_backend_init_resp *resp + void *backend_ctx, + struct bookmarkfs_backend_create_resp *resp ) { struct backend_ctx *ctx = backend_ctx; diff --git a/src/fsck_offline.c b/src/fsck_offline.c index e5b9156..7aa50c8 100644 --- a/src/fsck_offline.c +++ b/src/fsck_offline.c @@ -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)) { diff --git a/src/mount.c b/src/mount.c index aa649eb..d509194 100644 --- a/src/mount.c +++ b/src/mount.c @@ -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 = "",