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:
@@ -21,23 +21,23 @@
|
||||
#include <linux/types.h>
|
||||
#define FC_ALEN 6
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
#define FC_HLEN (sizeof(struct fch_hdr)+sizeof(struct fcllc))
|
||||
#define FC_HLEN (sizeof(struct fch_hdr) + sizeof(struct fcllc))
|
||||
#define FC_ID_LEN 3
|
||||
#define EXTENDED_SAP 0xAA
|
||||
#define UI_CMD 0x03
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
struct fch_hdr {
|
||||
__u8 daddr[FC_ALEN];
|
||||
__u8 saddr[FC_ALEN];
|
||||
__u8 daddr[FC_ALEN];
|
||||
__u8 saddr[FC_ALEN];
|
||||
};
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
struct fcllc {
|
||||
__u8 dsap;
|
||||
__u8 ssap;
|
||||
__u8 llc;
|
||||
__u8 dsap;
|
||||
__u8 ssap;
|
||||
__u8 llc;
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
__u8 protid[3];
|
||||
__be16 ethertype;
|
||||
__u8 protid[3];
|
||||
__be16 ethertype;
|
||||
};
|
||||
#endif
|
||||
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
||||
|
||||
Reference in New Issue
Block a user