string-output-visitor.h 797 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * String printing Visitor
  3. *
  4. * Copyright Red Hat, Inc. 2012
  5. *
  6. * Author: Paolo Bonzini <pbonzini@redhat.com>
  7. *
  8. * This work is licensed under the terms of the GNU LGPL, version 2.1 or later.
  9. * See the COPYING.LIB file in the top-level directory.
  10. *
  11. */
  12. #ifndef STRING_OUTPUT_VISITOR_H
  13. #define STRING_OUTPUT_VISITOR_H
  14. #include "qapi/visitor.h"
  15. typedef struct StringOutputVisitor StringOutputVisitor;
  16. /*
  17. * The string output visitor does not implement support for visiting
  18. * QAPI structs, alternates, null, or arbitrary QTypes. It also
  19. * requires a non-null list argument to visit_start_list().
  20. */
  21. StringOutputVisitor *string_output_visitor_new(bool human);
  22. char *string_output_get_string(StringOutputVisitor *v);
  23. Visitor *string_output_get_visitor(StringOutputVisitor *v);
  24. #endif