File tree 1 file changed +23
-21
lines changed
src/unix/linux_like/linux
1 file changed +23
-21
lines changed Original file line number Diff line number Diff line change @@ -52,27 +52,6 @@ macro_rules! expand_align {
52
52
pub fd: :: c_int,
53
53
pub pid: :: c_int,
54
54
}
55
-
56
- // linux/can.h
57
- #[ repr( align( 8 ) ) ]
58
- pub struct can_frame {
59
- pub can_id: canid_t,
60
- pub can_dlc: u8 ,
61
- __pad: u8 ,
62
- __res0: u8 ,
63
- __res1: u8 ,
64
- pub data: [ u8 ; CAN_MAX_DLEN ] ,
65
- }
66
-
67
- #[ repr( align( 8 ) ) ]
68
- pub struct canfd_frame {
69
- pub can_id: canid_t,
70
- pub len: u8 ,
71
- pub flags: u8 ,
72
- __res0: u8 ,
73
- __res1: u8 ,
74
- pub data: [ u8 ; CANFD_MAX_DLEN ] ,
75
- }
76
55
}
77
56
78
57
s_no_extra_traits! {
@@ -137,6 +116,29 @@ macro_rules! expand_align {
137
116
pub struct pthread_rwlock_t {
138
117
size: [ u8 ; :: __SIZEOF_PTHREAD_RWLOCK_T] ,
139
118
}
119
+
120
+ // linux/can.h
121
+ #[ repr( align( 8 ) ) ]
122
+ #[ allow( missing_debug_implementations) ]
123
+ pub struct can_frame {
124
+ pub can_id: canid_t,
125
+ pub can_dlc: u8 ,
126
+ __pad: u8 ,
127
+ __res0: u8 ,
128
+ __res1: u8 ,
129
+ pub data: [ u8 ; CAN_MAX_DLEN ] ,
130
+ }
131
+
132
+ #[ repr( align( 8 ) ) ]
133
+ #[ allow( missing_debug_implementations) ]
134
+ pub struct canfd_frame {
135
+ pub can_id: canid_t,
136
+ pub len: u8 ,
137
+ pub flags: u8 ,
138
+ __res0: u8 ,
139
+ __res1: u8 ,
140
+ pub data: [ u8 ; CANFD_MAX_DLEN ] ,
141
+ }
140
142
}
141
143
} ;
142
144
}
You can’t perform that action at this time.
0 commit comments