diff options
Diffstat (limited to 'host/lib/host_misc2.c')
-rw-r--r-- | host/lib/host_misc2.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/host/lib/host_misc2.c b/host/lib/host_misc2.c index 71a20673..a78a7132 100644 --- a/host/lib/host_misc2.c +++ b/host/lib/host_misc2.c @@ -83,3 +83,12 @@ int vb2_write_object(const char *filename, const void *buf) return vb2_write_file(filename, buf, cptr->total_size); } + +uint32_t vb2_desc_size(const char *desc) +{ + if (!desc || !*desc) + return 0; + + return roundup32(strlen(desc) + 1); +} + |