xref: /spdk/module/bdev/daos/bdev_daos.h (revision da231290b273ae555f25c4eb12a7f34efee0d29a)
1 /*   SPDX-License-Identifier: BSD-3-Clause
2  *   Copyright (c) Intel Corporation.
3  *   All rights reserved.
4  *   Copyright (c) croit GmbH.
5  *   All rights reserved.
6  */
7 
8 #ifndef SPDK_BDEV_DAOS_H
9 #define SPDK_BDEV_DAOS_H
10 
11 #include "spdk/stdinc.h"
12 #include "spdk/bdev.h"
13 
14 typedef void (*spdk_delete_daos_complete)(void *cb_arg, int bdeverrno);
15 
16 int create_bdev_daos(struct spdk_bdev **bdev, const char *name, const struct spdk_uuid *uuid,
17 		     const char *pool, const char *cont,
18 		     uint64_t num_blocks, uint32_t block_size);
19 
20 void delete_bdev_daos(struct spdk_bdev *bdev, spdk_delete_daos_complete cb_fn, void *cb_arg);
21 
22 #endif /* SPDK_BDEV_DAOS_H */
23