mirror of
https://git.sr.ht/~cismonx/bookmarkfs
synced 2025-06-07 19:58:50 +00:00
backend: rename backend_free -> backend_destroy
This commit is contained in:
parent
b9e02d2d3d
commit
623b4dd4f3
6 changed files with 10 additions and 10 deletions
|
@ -1400,7 +1400,7 @@ The symbol should name a data object identifier of the following type:
|
|||
|
||||
struct bookmarkfs_backend @{
|
||||
bookmarkfs_backend_create_func *backend_create;
|
||||
bookmarkfs_backend_free_func *backend_free;
|
||||
bookmarkfs_backend_destroy_func *backend_destroy;
|
||||
bookmarkfs_backend_info_func *backend_info;
|
||||
bookmarkfs_backend_init_func *backend_init;
|
||||
bookmarkfs_backend_mkfs_func *backend_mkfs;
|
||||
|
|
|
@ -99,7 +99,7 @@ typedef int (bookmarkfs_backend_create_func) (
|
|||
struct bookmarkfs_backend_create_resp *resp
|
||||
);
|
||||
|
||||
typedef void (bookmarkfs_backend_free_func) (
|
||||
typedef void (bookmarkfs_backend_destroy_func) (
|
||||
void *backend_ctx
|
||||
);
|
||||
|
||||
|
@ -230,7 +230,7 @@ typedef void (bookmarkfs_object_free_func) (
|
|||
|
||||
struct bookmarkfs_backend {
|
||||
bookmarkfs_backend_create_func *backend_create;
|
||||
bookmarkfs_backend_free_func *backend_free;
|
||||
bookmarkfs_backend_destroy_func *backend_destroy;
|
||||
bookmarkfs_backend_info_func *backend_info;
|
||||
bookmarkfs_backend_init_func *backend_init;
|
||||
bookmarkfs_backend_mkfs_func *backend_mkfs;
|
||||
|
|
|
@ -1760,7 +1760,7 @@ backend_create (
|
|||
}
|
||||
|
||||
static void
|
||||
backend_free (
|
||||
backend_destroy (
|
||||
void *backend_ctx
|
||||
) {
|
||||
struct backend_ctx *ctx = backend_ctx;
|
||||
|
@ -2703,7 +2703,7 @@ bookmark_set (
|
|||
BOOKMARKFS_API
|
||||
struct bookmarkfs_backend const bookmarkfs_backend_chromium = {
|
||||
.backend_create = backend_create,
|
||||
.backend_free = backend_free,
|
||||
.backend_destroy = backend_destroy,
|
||||
.backend_info = backend_info,
|
||||
.backend_init = backend_init,
|
||||
.backend_sandbox = backend_sandbox,
|
||||
|
|
|
@ -2772,7 +2772,7 @@ backend_create (
|
|||
}
|
||||
|
||||
static void
|
||||
backend_free (
|
||||
backend_destroy (
|
||||
void *backend_ctx
|
||||
) {
|
||||
struct backend_ctx *ctx = backend_ctx;
|
||||
|
@ -3603,7 +3603,7 @@ bookmark_set (
|
|||
BOOKMARKFS_API
|
||||
struct bookmarkfs_backend const bookmarkfs_backend_firefox = {
|
||||
.backend_create = backend_create,
|
||||
.backend_free = backend_free,
|
||||
.backend_destroy = backend_destroy,
|
||||
.backend_info = backend_info,
|
||||
.backend_init = backend_init,
|
||||
.backend_sandbox = backend_sandbox,
|
||||
|
|
|
@ -348,7 +348,7 @@ fsck_create (
|
|||
return 0;
|
||||
|
||||
fail:
|
||||
backend->backend_free(resp.backend_ctx);
|
||||
backend->backend_destroy(resp.backend_ctx);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
@ -361,7 +361,7 @@ fsck_destroy (
|
|||
for (size_t idx = 0; idx <= ctx->dir_stack_top; ++idx) {
|
||||
free_dir(ctx, ctx->dir_stack + idx);
|
||||
}
|
||||
ctx->backend->backend_free(ctx->backend_ctx);
|
||||
ctx->backend->backend_destroy(ctx->backend_ctx);
|
||||
free(ctx->dir_stack);
|
||||
free(ctx);
|
||||
}
|
||||
|
|
|
@ -101,7 +101,7 @@ destroy_ctx (
|
|||
fuse_session_destroy(ctx->session);
|
||||
}
|
||||
if (ctx->backend_impl != NULL) {
|
||||
ctx->backend_impl->backend_free(ctx->backend_ctx);
|
||||
ctx->backend_impl->backend_destroy(ctx->backend_ctx);
|
||||
}
|
||||
bookmarkfs_unload(ctx->backend_handle);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue