add constants
This commit is contained in:
parent
2eb6628ae4
commit
93f695f77c
4 changed files with 300 additions and 212 deletions
|
|
@ -69,126 +69,6 @@ typedef struct {capn_ptr p;} CodeGeneratorRequest_list;
|
|||
|
||||
|
||||
|
||||
Node_ptr new_Node(struct capn_segment*);
|
||||
Node_NestedNode_ptr new_Node_NestedNode(struct capn_segment*);
|
||||
Type_ptr new_Type(struct capn_segment*);
|
||||
Value_ptr new_Value(struct capn_segment*);
|
||||
Annotation_ptr new_Annotation(struct capn_segment*);
|
||||
FileNode_ptr new_FileNode(struct capn_segment*);
|
||||
FileNode_Import_ptr new_FileNode_Import(struct capn_segment*);
|
||||
StructNode_ptr new_StructNode(struct capn_segment*);
|
||||
StructNode_Member_ptr new_StructNode_Member(struct capn_segment*);
|
||||
StructNode_Field_ptr new_StructNode_Field(struct capn_segment*);
|
||||
StructNode_Union_ptr new_StructNode_Union(struct capn_segment*);
|
||||
EnumNode_ptr new_EnumNode(struct capn_segment*);
|
||||
EnumNode_Enumerant_ptr new_EnumNode_Enumerant(struct capn_segment*);
|
||||
InterfaceNode_ptr new_InterfaceNode(struct capn_segment*);
|
||||
InterfaceNode_Method_ptr new_InterfaceNode_Method(struct capn_segment*);
|
||||
InterfaceNode_Method_Param_ptr new_InterfaceNode_Method_Param(struct capn_segment*);
|
||||
ConstNode_ptr new_ConstNode(struct capn_segment*);
|
||||
AnnotationNode_ptr new_AnnotationNode(struct capn_segment*);
|
||||
CodeGeneratorRequest_ptr new_CodeGeneratorRequest(struct capn_segment*);
|
||||
|
||||
Node_list new_Node_list(struct capn_segment*, int len);
|
||||
Node_NestedNode_list new_Node_NestedNode_list(struct capn_segment*, int len);
|
||||
Type_list new_Type_list(struct capn_segment*, int len);
|
||||
Value_list new_Value_list(struct capn_segment*, int len);
|
||||
Annotation_list new_Annotation_list(struct capn_segment*, int len);
|
||||
FileNode_list new_FileNode_list(struct capn_segment*, int len);
|
||||
FileNode_Import_list new_FileNode_Import_list(struct capn_segment*, int len);
|
||||
StructNode_list new_StructNode_list(struct capn_segment*, int len);
|
||||
StructNode_Member_list new_StructNode_Member_list(struct capn_segment*, int len);
|
||||
StructNode_Field_list new_StructNode_Field_list(struct capn_segment*, int len);
|
||||
StructNode_Union_list new_StructNode_Union_list(struct capn_segment*, int len);
|
||||
EnumNode_list new_EnumNode_list(struct capn_segment*, int len);
|
||||
EnumNode_Enumerant_list new_EnumNode_Enumerant_list(struct capn_segment*, int len);
|
||||
InterfaceNode_list new_InterfaceNode_list(struct capn_segment*, int len);
|
||||
InterfaceNode_Method_list new_InterfaceNode_Method_list(struct capn_segment*, int len);
|
||||
InterfaceNode_Method_Param_list new_InterfaceNode_Method_Param_list(struct capn_segment*, int len);
|
||||
ConstNode_list new_ConstNode_list(struct capn_segment*, int len);
|
||||
AnnotationNode_list new_AnnotationNode_list(struct capn_segment*, int len);
|
||||
CodeGeneratorRequest_list new_CodeGeneratorRequest_list(struct capn_segment*, int len);
|
||||
|
||||
void read_Node(struct Node*, Node_ptr);
|
||||
void read_Node_NestedNode(struct Node_NestedNode*, Node_NestedNode_ptr);
|
||||
void read_Type(struct Type*, Type_ptr);
|
||||
void read_Value(struct Value*, Value_ptr);
|
||||
void read_Annotation(struct Annotation*, Annotation_ptr);
|
||||
void read_FileNode(struct FileNode*, FileNode_ptr);
|
||||
void read_FileNode_Import(struct FileNode_Import*, FileNode_Import_ptr);
|
||||
void read_StructNode(struct StructNode*, StructNode_ptr);
|
||||
void read_StructNode_Member(struct StructNode_Member*, StructNode_Member_ptr);
|
||||
void read_StructNode_Field(struct StructNode_Field*, StructNode_Field_ptr);
|
||||
void read_StructNode_Union(struct StructNode_Union*, StructNode_Union_ptr);
|
||||
void read_EnumNode(struct EnumNode*, EnumNode_ptr);
|
||||
void read_EnumNode_Enumerant(struct EnumNode_Enumerant*, EnumNode_Enumerant_ptr);
|
||||
void read_InterfaceNode(struct InterfaceNode*, InterfaceNode_ptr);
|
||||
void read_InterfaceNode_Method(struct InterfaceNode_Method*, InterfaceNode_Method_ptr);
|
||||
void read_InterfaceNode_Method_Param(struct InterfaceNode_Method_Param*, InterfaceNode_Method_Param_ptr);
|
||||
void read_ConstNode(struct ConstNode*, ConstNode_ptr);
|
||||
void read_AnnotationNode(struct AnnotationNode*, AnnotationNode_ptr);
|
||||
void read_CodeGeneratorRequest(struct CodeGeneratorRequest*, CodeGeneratorRequest_ptr);
|
||||
|
||||
int write_Node(const struct Node*, Node_ptr);
|
||||
int write_Node_NestedNode(const struct Node_NestedNode*, Node_NestedNode_ptr);
|
||||
int write_Type(const struct Type*, Type_ptr);
|
||||
int write_Value(const struct Value*, Value_ptr);
|
||||
int write_Annotation(const struct Annotation*, Annotation_ptr);
|
||||
int write_FileNode(const struct FileNode*, FileNode_ptr);
|
||||
int write_FileNode_Import(const struct FileNode_Import*, FileNode_Import_ptr);
|
||||
int write_StructNode(const struct StructNode*, StructNode_ptr);
|
||||
int write_StructNode_Member(const struct StructNode_Member*, StructNode_Member_ptr);
|
||||
int write_StructNode_Field(const struct StructNode_Field*, StructNode_Field_ptr);
|
||||
int write_StructNode_Union(const struct StructNode_Union*, StructNode_Union_ptr);
|
||||
int write_EnumNode(const struct EnumNode*, EnumNode_ptr);
|
||||
int write_EnumNode_Enumerant(const struct EnumNode_Enumerant*, EnumNode_Enumerant_ptr);
|
||||
int write_InterfaceNode(const struct InterfaceNode*, InterfaceNode_ptr);
|
||||
int write_InterfaceNode_Method(const struct InterfaceNode_Method*, InterfaceNode_Method_ptr);
|
||||
int write_InterfaceNode_Method_Param(const struct InterfaceNode_Method_Param*, InterfaceNode_Method_Param_ptr);
|
||||
int write_ConstNode(const struct ConstNode*, ConstNode_ptr);
|
||||
int write_AnnotationNode(const struct AnnotationNode*, AnnotationNode_ptr);
|
||||
int write_CodeGeneratorRequest(const struct CodeGeneratorRequest*, CodeGeneratorRequest_ptr);
|
||||
|
||||
void get_Node(struct Node*, Node_list, int i);
|
||||
void get_Node_NestedNode(struct Node_NestedNode*, Node_NestedNode_list, int i);
|
||||
void get_Type(struct Type*, Type_list, int i);
|
||||
void get_Value(struct Value*, Value_list, int i);
|
||||
void get_Annotation(struct Annotation*, Annotation_list, int i);
|
||||
void get_FileNode(struct FileNode*, FileNode_list, int i);
|
||||
void get_FileNode_Import(struct FileNode_Import*, FileNode_Import_list, int i);
|
||||
void get_StructNode(struct StructNode*, StructNode_list, int i);
|
||||
void get_StructNode_Member(struct StructNode_Member*, StructNode_Member_list, int i);
|
||||
void get_StructNode_Field(struct StructNode_Field*, StructNode_Field_list, int i);
|
||||
void get_StructNode_Union(struct StructNode_Union*, StructNode_Union_list, int i);
|
||||
void get_EnumNode(struct EnumNode*, EnumNode_list, int i);
|
||||
void get_EnumNode_Enumerant(struct EnumNode_Enumerant*, EnumNode_Enumerant_list, int i);
|
||||
void get_InterfaceNode(struct InterfaceNode*, InterfaceNode_list, int i);
|
||||
void get_InterfaceNode_Method(struct InterfaceNode_Method*, InterfaceNode_Method_list, int i);
|
||||
void get_InterfaceNode_Method_Param(struct InterfaceNode_Method_Param*, InterfaceNode_Method_Param_list, int i);
|
||||
void get_ConstNode(struct ConstNode*, ConstNode_list, int i);
|
||||
void get_AnnotationNode(struct AnnotationNode*, AnnotationNode_list, int i);
|
||||
void get_CodeGeneratorRequest(struct CodeGeneratorRequest*, CodeGeneratorRequest_list, int i);
|
||||
|
||||
int set_Node(const struct Node*, Node_list, int i);
|
||||
int set_Node_NestedNode(const struct Node_NestedNode*, Node_NestedNode_list, int i);
|
||||
int set_Type(const struct Type*, Type_list, int i);
|
||||
int set_Value(const struct Value*, Value_list, int i);
|
||||
int set_Annotation(const struct Annotation*, Annotation_list, int i);
|
||||
int set_FileNode(const struct FileNode*, FileNode_list, int i);
|
||||
int set_FileNode_Import(const struct FileNode_Import*, FileNode_Import_list, int i);
|
||||
int set_StructNode(const struct StructNode*, StructNode_list, int i);
|
||||
int set_StructNode_Member(const struct StructNode_Member*, StructNode_Member_list, int i);
|
||||
int set_StructNode_Field(const struct StructNode_Field*, StructNode_Field_list, int i);
|
||||
int set_StructNode_Union(const struct StructNode_Union*, StructNode_Union_list, int i);
|
||||
int set_EnumNode(const struct EnumNode*, EnumNode_list, int i);
|
||||
int set_EnumNode_Enumerant(const struct EnumNode_Enumerant*, EnumNode_Enumerant_list, int i);
|
||||
int set_InterfaceNode(const struct InterfaceNode*, InterfaceNode_list, int i);
|
||||
int set_InterfaceNode_Method(const struct InterfaceNode_Method*, InterfaceNode_Method_list, int i);
|
||||
int set_InterfaceNode_Method_Param(const struct InterfaceNode_Method_Param*, InterfaceNode_Method_Param_list, int i);
|
||||
int set_ConstNode(const struct ConstNode*, ConstNode_list, int i);
|
||||
int set_AnnotationNode(const struct AnnotationNode*, AnnotationNode_list, int i);
|
||||
int set_CodeGeneratorRequest(const struct CodeGeneratorRequest*, CodeGeneratorRequest_list, int i);
|
||||
|
||||
enum Node_body {
|
||||
Node_fileNode = 0,
|
||||
Node_structNode = 1,
|
||||
|
|
@ -412,6 +292,126 @@ struct CodeGeneratorRequest {
|
|||
capn_list64 requestedFiles;
|
||||
};
|
||||
|
||||
Node_ptr new_Node(struct capn_segment*);
|
||||
Node_NestedNode_ptr new_Node_NestedNode(struct capn_segment*);
|
||||
Type_ptr new_Type(struct capn_segment*);
|
||||
Value_ptr new_Value(struct capn_segment*);
|
||||
Annotation_ptr new_Annotation(struct capn_segment*);
|
||||
FileNode_ptr new_FileNode(struct capn_segment*);
|
||||
FileNode_Import_ptr new_FileNode_Import(struct capn_segment*);
|
||||
StructNode_ptr new_StructNode(struct capn_segment*);
|
||||
StructNode_Member_ptr new_StructNode_Member(struct capn_segment*);
|
||||
StructNode_Field_ptr new_StructNode_Field(struct capn_segment*);
|
||||
StructNode_Union_ptr new_StructNode_Union(struct capn_segment*);
|
||||
EnumNode_ptr new_EnumNode(struct capn_segment*);
|
||||
EnumNode_Enumerant_ptr new_EnumNode_Enumerant(struct capn_segment*);
|
||||
InterfaceNode_ptr new_InterfaceNode(struct capn_segment*);
|
||||
InterfaceNode_Method_ptr new_InterfaceNode_Method(struct capn_segment*);
|
||||
InterfaceNode_Method_Param_ptr new_InterfaceNode_Method_Param(struct capn_segment*);
|
||||
ConstNode_ptr new_ConstNode(struct capn_segment*);
|
||||
AnnotationNode_ptr new_AnnotationNode(struct capn_segment*);
|
||||
CodeGeneratorRequest_ptr new_CodeGeneratorRequest(struct capn_segment*);
|
||||
|
||||
Node_list new_Node_list(struct capn_segment*, int len);
|
||||
Node_NestedNode_list new_Node_NestedNode_list(struct capn_segment*, int len);
|
||||
Type_list new_Type_list(struct capn_segment*, int len);
|
||||
Value_list new_Value_list(struct capn_segment*, int len);
|
||||
Annotation_list new_Annotation_list(struct capn_segment*, int len);
|
||||
FileNode_list new_FileNode_list(struct capn_segment*, int len);
|
||||
FileNode_Import_list new_FileNode_Import_list(struct capn_segment*, int len);
|
||||
StructNode_list new_StructNode_list(struct capn_segment*, int len);
|
||||
StructNode_Member_list new_StructNode_Member_list(struct capn_segment*, int len);
|
||||
StructNode_Field_list new_StructNode_Field_list(struct capn_segment*, int len);
|
||||
StructNode_Union_list new_StructNode_Union_list(struct capn_segment*, int len);
|
||||
EnumNode_list new_EnumNode_list(struct capn_segment*, int len);
|
||||
EnumNode_Enumerant_list new_EnumNode_Enumerant_list(struct capn_segment*, int len);
|
||||
InterfaceNode_list new_InterfaceNode_list(struct capn_segment*, int len);
|
||||
InterfaceNode_Method_list new_InterfaceNode_Method_list(struct capn_segment*, int len);
|
||||
InterfaceNode_Method_Param_list new_InterfaceNode_Method_Param_list(struct capn_segment*, int len);
|
||||
ConstNode_list new_ConstNode_list(struct capn_segment*, int len);
|
||||
AnnotationNode_list new_AnnotationNode_list(struct capn_segment*, int len);
|
||||
CodeGeneratorRequest_list new_CodeGeneratorRequest_list(struct capn_segment*, int len);
|
||||
|
||||
void read_Node(struct Node*, Node_ptr);
|
||||
void read_Node_NestedNode(struct Node_NestedNode*, Node_NestedNode_ptr);
|
||||
void read_Type(struct Type*, Type_ptr);
|
||||
void read_Value(struct Value*, Value_ptr);
|
||||
void read_Annotation(struct Annotation*, Annotation_ptr);
|
||||
void read_FileNode(struct FileNode*, FileNode_ptr);
|
||||
void read_FileNode_Import(struct FileNode_Import*, FileNode_Import_ptr);
|
||||
void read_StructNode(struct StructNode*, StructNode_ptr);
|
||||
void read_StructNode_Member(struct StructNode_Member*, StructNode_Member_ptr);
|
||||
void read_StructNode_Field(struct StructNode_Field*, StructNode_Field_ptr);
|
||||
void read_StructNode_Union(struct StructNode_Union*, StructNode_Union_ptr);
|
||||
void read_EnumNode(struct EnumNode*, EnumNode_ptr);
|
||||
void read_EnumNode_Enumerant(struct EnumNode_Enumerant*, EnumNode_Enumerant_ptr);
|
||||
void read_InterfaceNode(struct InterfaceNode*, InterfaceNode_ptr);
|
||||
void read_InterfaceNode_Method(struct InterfaceNode_Method*, InterfaceNode_Method_ptr);
|
||||
void read_InterfaceNode_Method_Param(struct InterfaceNode_Method_Param*, InterfaceNode_Method_Param_ptr);
|
||||
void read_ConstNode(struct ConstNode*, ConstNode_ptr);
|
||||
void read_AnnotationNode(struct AnnotationNode*, AnnotationNode_ptr);
|
||||
void read_CodeGeneratorRequest(struct CodeGeneratorRequest*, CodeGeneratorRequest_ptr);
|
||||
|
||||
int write_Node(const struct Node*, Node_ptr);
|
||||
int write_Node_NestedNode(const struct Node_NestedNode*, Node_NestedNode_ptr);
|
||||
int write_Type(const struct Type*, Type_ptr);
|
||||
int write_Value(const struct Value*, Value_ptr);
|
||||
int write_Annotation(const struct Annotation*, Annotation_ptr);
|
||||
int write_FileNode(const struct FileNode*, FileNode_ptr);
|
||||
int write_FileNode_Import(const struct FileNode_Import*, FileNode_Import_ptr);
|
||||
int write_StructNode(const struct StructNode*, StructNode_ptr);
|
||||
int write_StructNode_Member(const struct StructNode_Member*, StructNode_Member_ptr);
|
||||
int write_StructNode_Field(const struct StructNode_Field*, StructNode_Field_ptr);
|
||||
int write_StructNode_Union(const struct StructNode_Union*, StructNode_Union_ptr);
|
||||
int write_EnumNode(const struct EnumNode*, EnumNode_ptr);
|
||||
int write_EnumNode_Enumerant(const struct EnumNode_Enumerant*, EnumNode_Enumerant_ptr);
|
||||
int write_InterfaceNode(const struct InterfaceNode*, InterfaceNode_ptr);
|
||||
int write_InterfaceNode_Method(const struct InterfaceNode_Method*, InterfaceNode_Method_ptr);
|
||||
int write_InterfaceNode_Method_Param(const struct InterfaceNode_Method_Param*, InterfaceNode_Method_Param_ptr);
|
||||
int write_ConstNode(const struct ConstNode*, ConstNode_ptr);
|
||||
int write_AnnotationNode(const struct AnnotationNode*, AnnotationNode_ptr);
|
||||
int write_CodeGeneratorRequest(const struct CodeGeneratorRequest*, CodeGeneratorRequest_ptr);
|
||||
|
||||
void get_Node(struct Node*, Node_list, int i);
|
||||
void get_Node_NestedNode(struct Node_NestedNode*, Node_NestedNode_list, int i);
|
||||
void get_Type(struct Type*, Type_list, int i);
|
||||
void get_Value(struct Value*, Value_list, int i);
|
||||
void get_Annotation(struct Annotation*, Annotation_list, int i);
|
||||
void get_FileNode(struct FileNode*, FileNode_list, int i);
|
||||
void get_FileNode_Import(struct FileNode_Import*, FileNode_Import_list, int i);
|
||||
void get_StructNode(struct StructNode*, StructNode_list, int i);
|
||||
void get_StructNode_Member(struct StructNode_Member*, StructNode_Member_list, int i);
|
||||
void get_StructNode_Field(struct StructNode_Field*, StructNode_Field_list, int i);
|
||||
void get_StructNode_Union(struct StructNode_Union*, StructNode_Union_list, int i);
|
||||
void get_EnumNode(struct EnumNode*, EnumNode_list, int i);
|
||||
void get_EnumNode_Enumerant(struct EnumNode_Enumerant*, EnumNode_Enumerant_list, int i);
|
||||
void get_InterfaceNode(struct InterfaceNode*, InterfaceNode_list, int i);
|
||||
void get_InterfaceNode_Method(struct InterfaceNode_Method*, InterfaceNode_Method_list, int i);
|
||||
void get_InterfaceNode_Method_Param(struct InterfaceNode_Method_Param*, InterfaceNode_Method_Param_list, int i);
|
||||
void get_ConstNode(struct ConstNode*, ConstNode_list, int i);
|
||||
void get_AnnotationNode(struct AnnotationNode*, AnnotationNode_list, int i);
|
||||
void get_CodeGeneratorRequest(struct CodeGeneratorRequest*, CodeGeneratorRequest_list, int i);
|
||||
|
||||
int set_Node(const struct Node*, Node_list, int i);
|
||||
int set_Node_NestedNode(const struct Node_NestedNode*, Node_NestedNode_list, int i);
|
||||
int set_Type(const struct Type*, Type_list, int i);
|
||||
int set_Value(const struct Value*, Value_list, int i);
|
||||
int set_Annotation(const struct Annotation*, Annotation_list, int i);
|
||||
int set_FileNode(const struct FileNode*, FileNode_list, int i);
|
||||
int set_FileNode_Import(const struct FileNode_Import*, FileNode_Import_list, int i);
|
||||
int set_StructNode(const struct StructNode*, StructNode_list, int i);
|
||||
int set_StructNode_Member(const struct StructNode_Member*, StructNode_Member_list, int i);
|
||||
int set_StructNode_Field(const struct StructNode_Field*, StructNode_Field_list, int i);
|
||||
int set_StructNode_Union(const struct StructNode_Union*, StructNode_Union_list, int i);
|
||||
int set_EnumNode(const struct EnumNode*, EnumNode_list, int i);
|
||||
int set_EnumNode_Enumerant(const struct EnumNode_Enumerant*, EnumNode_Enumerant_list, int i);
|
||||
int set_InterfaceNode(const struct InterfaceNode*, InterfaceNode_list, int i);
|
||||
int set_InterfaceNode_Method(const struct InterfaceNode_Method*, InterfaceNode_Method_list, int i);
|
||||
int set_InterfaceNode_Method_Param(const struct InterfaceNode_Method_Param*, InterfaceNode_Method_Param_list, int i);
|
||||
int set_ConstNode(const struct ConstNode*, ConstNode_list, int i);
|
||||
int set_AnnotationNode(const struct AnnotationNode*, AnnotationNode_list, int i);
|
||||
int set_CodeGeneratorRequest(const struct CodeGeneratorRequest*, CodeGeneratorRequest_list, int i);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue