-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qapi: allow sharing enum implementation across visitors
Most visitors will use the same code for enum parsing. Move it to the core. Signed-off-by: Paolo Bonzini <[email protected]>
- Loading branch information
Showing
4 changed files
with
78 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Core Definitions for QAPI Visitor implementations | ||
* | ||
* Copyright (C) 2012 Red Hat, Inc. | ||
* | ||
* Author: Paolo Bonizni <[email protected]> | ||
* | ||
* This work is licensed under the terms of the GNU LGPL, version 2.1 or later. | ||
* See the COPYING.LIB file in the top-level directory. | ||
* | ||
*/ | ||
#ifndef QAPI_VISITOR_IMPL_H | ||
#define QAPI_VISITOR_IMPL_H | ||
|
||
#include "qapi/qapi-types-core.h" | ||
#include "qapi/qapi-visit-core.h" | ||
|
||
void input_type_enum(Visitor *v, int *obj, const char *strings[], | ||
const char *kind, const char *name, Error **errp); | ||
void output_type_enum(Visitor *v, int *obj, const char *strings[], | ||
const char *kind, const char *name, Error **errp); | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters