Switch kernel header parsing to python libclang
Replace the tokenizer in cpp.py with libclang. Bug: 18937958 Change-Id: I27630904c6d2849418cd5ca3d3c612ec3078686d
This commit is contained in:
@@ -22,28 +22,28 @@
|
||||
#define NFS4_OPAQUE_LIMIT 1024
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
enum cld_command {
|
||||
Cld_Create,
|
||||
Cld_Remove,
|
||||
Cld_Check,
|
||||
Cld_Create,
|
||||
Cld_Remove,
|
||||
Cld_Check,
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
Cld_GraceDone,
|
||||
Cld_GraceDone,
|
||||
};
|
||||
struct cld_name {
|
||||
uint16_t cn_len;
|
||||
uint16_t cn_len;
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
unsigned char cn_id[NFS4_OPAQUE_LIMIT];
|
||||
unsigned char cn_id[NFS4_OPAQUE_LIMIT];
|
||||
} __attribute__((packed));
|
||||
struct cld_msg {
|
||||
uint8_t cm_vers;
|
||||
uint8_t cm_vers;
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
uint8_t cm_cmd;
|
||||
int16_t cm_status;
|
||||
uint32_t cm_xid;
|
||||
union {
|
||||
uint8_t cm_cmd;
|
||||
int16_t cm_status;
|
||||
uint32_t cm_xid;
|
||||
union {
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
int64_t cm_gracetime;
|
||||
struct cld_name cm_name;
|
||||
} __attribute__((packed)) cm_u;
|
||||
int64_t cm_gracetime;
|
||||
struct cld_name cm_name;
|
||||
} __attribute__((packed)) cm_u;
|
||||
} __attribute__((packed));
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user