Go to the documentation of this file.
25 #ifndef V4L2_INT_DEVICE_H
26 #define V4L2_INT_DEVICE_H
30 #define V4L2NAMESIZE 32
240 #define V4L2_INT_WRAPPER_0(name) \
241 static inline int vidioc_int_##name(struct v4l2_int_device *d) \
243 return v4l2_int_ioctl_0(d, vidioc_int_##name##_num); \
246 static inline struct v4l2_int_ioctl_desc \
247 vidioc_int_##name##_cb(int (*func) \
248 (struct v4l2_int_device *)) \
250 struct v4l2_int_ioctl_desc desc; \
252 desc.num = vidioc_int_##name##_num; \
253 desc.func = (v4l2_int_ioctl_func *)func; \
258 #define V4L2_INT_WRAPPER_1(name, arg_type, asterisk) \
259 static inline int vidioc_int_##name(struct v4l2_int_device *d, \
260 arg_type asterisk arg) \
262 return v4l2_int_ioctl_1(d, vidioc_int_##name##_num, \
263 (void *)(unsigned long)arg); \
266 static inline struct v4l2_int_ioctl_desc \
267 vidioc_int_##name##_cb(int (*func) \
268 (struct v4l2_int_device *, \
269 arg_type asterisk)) \
271 struct v4l2_int_ioctl_desc desc; \
273 desc.num = vidioc_int_##name##_num; \
274 desc.func = (v4l2_int_ioctl_func *)func; \