17b1b5d19SPaolo Bonzini /* 27b1b5d19SPaolo Bonzini * String parsing Visitor 37b1b5d19SPaolo Bonzini * 47b1b5d19SPaolo Bonzini * Copyright Red Hat, Inc. 2012 57b1b5d19SPaolo Bonzini * 67b1b5d19SPaolo Bonzini * Author: Paolo Bonzini <pbonzini@redhat.com> 77b1b5d19SPaolo Bonzini * 87b1b5d19SPaolo Bonzini * This work is licensed under the terms of the GNU LGPL, version 2.1 or later. 97b1b5d19SPaolo Bonzini * See the COPYING.LIB file in the top-level directory. 107b1b5d19SPaolo Bonzini * 117b1b5d19SPaolo Bonzini */ 127b1b5d19SPaolo Bonzini 137b1b5d19SPaolo Bonzini #ifndef STRING_INPUT_VISITOR_H 147b1b5d19SPaolo Bonzini #define STRING_INPUT_VISITOR_H 157b1b5d19SPaolo Bonzini 167b1b5d19SPaolo Bonzini #include "qapi/visitor.h" 177b1b5d19SPaolo Bonzini 187b1b5d19SPaolo Bonzini typedef struct StringInputVisitor StringInputVisitor; 197b1b5d19SPaolo Bonzini 20*adfb264cSEric Blake /* 21*adfb264cSEric Blake * The string input visitor does not implement support for visiting 22*adfb264cSEric Blake * QAPI structs, alternates, or arbitrary QTypes. 23*adfb264cSEric Blake */ 247b1b5d19SPaolo Bonzini StringInputVisitor *string_input_visitor_new(const char *str); 257b1b5d19SPaolo Bonzini void string_input_visitor_cleanup(StringInputVisitor *v); 267b1b5d19SPaolo Bonzini 277b1b5d19SPaolo Bonzini Visitor *string_input_get_visitor(StringInputVisitor *v); 287b1b5d19SPaolo Bonzini 297b1b5d19SPaolo Bonzini #endif 30