1 #ifndef __LINUX_FUNCTIONFS_H__
2 #define __LINUX_FUNCTIONFS_H__ 1
4 #include <uapi/linux/usb/functionfs.h>
8 struct usb_composite_dev;
9 struct usb_configuration;
12 static int functionfs_init(void) __attribute__((warn_unused_result));
13 static void functionfs_cleanup(void);
15 static int functionfs_bind(struct ffs_data *ffs, struct usb_composite_dev *cdev)
16 __attribute__((warn_unused_result, nonnull));
17 static void functionfs_unbind(struct ffs_data *ffs)
18 __attribute__((nonnull));
20 static int functionfs_bind_config(struct usb_composite_dev *cdev,
21 struct usb_configuration *c,
23 __attribute__((warn_unused_result, nonnull));
26 static int functionfs_ready_callback(struct ffs_data *ffs)
27 __attribute__((warn_unused_result, nonnull));
28 static void functionfs_closed_callback(struct ffs_data *ffs)
29 __attribute__((nonnull));
30 static void *functionfs_acquire_dev_callback(const char *dev_name)
31 __attribute__((warn_unused_result, nonnull));
32 static void functionfs_release_dev_callback(struct ffs_data *ffs_data)
33 __attribute__((nonnull));