ublksrv_tgt: add two ublk_json_ helpers for cleaning up write to json string
Signed-off-by: Ming Lei <[email protected]>
diff --git a/include/ublksrv_tgt.h b/include/ublksrv_tgt.h
index 243952c..5641f16 100644
--- a/include/ublksrv_tgt.h
+++ b/include/ublksrv_tgt.h
@@ -164,4 +164,9 @@
return true;
}
+int ublk_json_write_tgt_str(struct ublksrv_dev *dev, char **jbuf,
+ int *len, const char *name, const char *val);
+int ublk_json_write_tgt_long(struct ublksrv_dev *dev, char **jbuf,
+ int *len, const char *name, long val);
+
#endif