mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
nbd: register named exports
Add an API to register and find named exports. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
7860a380ac
commit
ee0a19ec2a
2 changed files with 53 additions and 0 deletions
4
nbd.h
4
nbd.h
|
@ -85,6 +85,10 @@ void nbd_export_close(NBDExport *exp);
|
|||
void nbd_export_get(NBDExport *exp);
|
||||
void nbd_export_put(NBDExport *exp);
|
||||
|
||||
NBDExport *nbd_export_find(const char *name);
|
||||
void nbd_export_set_name(NBDExport *exp, const char *name);
|
||||
void nbd_export_close_all(void);
|
||||
|
||||
NBDClient *nbd_client_new(NBDExport *exp, int csock,
|
||||
void (*close)(NBDClient *));
|
||||
void nbd_client_close(NBDClient *client);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue