libyang REFACTOR parsed/printed bytes in in/out structs
diff --git a/src/printer.h b/src/printer.h
index 8929678..6e0bb19 100644
--- a/src/printer.h
+++ b/src/printer.h
@@ -218,6 +218,14 @@
 ssize_t ly_write(struct ly_out *out, const char *buf, size_t len);
 
 /**
+ * @brief Get the number of printed bytes by the last function.
+ *
+ * @param[in] out Out structure used.
+ * @return Number of printed bytes.
+ */
+size_t ly_out_printed(const struct ly_out *out);
+
+/**
  * @brief Free the printer handler.
  * @param[in] out Printer handler to free.
  * @param[in] clb_arg_destructor Freeing function for printer callback (LY_OUT_CALLBACK) argument.