printers CHANGE rewrite printers mechanism
Instead of specifying output type (memory, stream, file descriptor, ...)
with each printer function call, use printer handler mechanism. The
handler is first created with specifying the output type with necessary
parameters. Then, the handler can be used in the single print function
without the need to specify the specific output type parameters. There
are also a helper functions to update/change the output type parameter
without a need to recreate the printer handler.
This change is necessary due to the increasing complexity of the
printer functions. We want to add another parameters/specific functions,
for example to print a separate node, but together with the specific
output type parameters, the function parameters list would be quite
complex.
diff --git a/src/libyang.h b/src/libyang.h
index eba8008..c86bd13 100644
--- a/src/libyang.h
+++ b/src/libyang.h
@@ -28,6 +28,8 @@
#include "tree.h"
#include "tree_data.h"
#include "tree_schema.h"
+#include "printer.h"
+#include "printer_data.h"
#include "printer_schema.h"
#include "printer_data.h"
#include "plugins_types.h"