diff options
| author | Vladimir Sementsov-Ogievskiy | 2018-11-02 16:11:51 +0100 |
|---|---|---|
| committer | Eric Blake | 2019-01-05 00:34:58 +0100 |
| commit | 757a0d05ea22d63e667db08a80b6ec6f1d53a12f (patch) | |
| tree | b4b06ba419126d532def8d5eabb7e8a70d13ec2c /include/block | |
| parent | Merge remote-tracking branch 'remotes/marcel/tags/rdma-pull-request' into sta... (diff) | |
| download | qemu-757a0d05ea22d63e667db08a80b6ec6f1d53a12f.tar.gz qemu-757a0d05ea22d63e667db08a80b6ec6f1d53a12f.tar.xz qemu-757a0d05ea22d63e667db08a80b6ec6f1d53a12f.zip | |
nbd: publish _lookup functions
These functions are used for formatting pretty trace points. We are
going to add some in block/nbd-client, so, let's publish all these
functions at once. Note, that nbd_reply_type_lookup is already
published, and constants, "named" by these functions live in
include/block/nbd.h too.
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20181102151152.288399-3-vsementsov@virtuozzo.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'include/block')
| -rw-r--r-- | include/block/nbd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/block/nbd.h b/include/block/nbd.h index 6a5bfe5d55..65402d3396 100644 --- a/include/block/nbd.h +++ b/include/block/nbd.h @@ -343,5 +343,10 @@ static inline bool nbd_reply_is_structured(NBDReply *reply) } const char *nbd_reply_type_lookup(uint16_t type); +const char *nbd_opt_lookup(uint32_t opt); +const char *nbd_rep_lookup(uint32_t rep); +const char *nbd_info_lookup(uint16_t info); +const char *nbd_cmd_lookup(uint16_t info); +const char *nbd_err_lookup(int err); #endif |
