functionfs.h 1.1 KB
Newer Older
1 2 3
#ifndef __LINUX_FUNCTIONFS_H__
#define __LINUX_FUNCTIONFS_H__ 1

4
#include <uapi/linux/usb/functionfs.h>
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19


struct ffs_data;
struct usb_composite_dev;
struct usb_configuration;


static int  functionfs_init(void) __attribute__((warn_unused_result));
static void functionfs_cleanup(void);

static int functionfs_bind(struct ffs_data *ffs, struct usb_composite_dev *cdev)
	__attribute__((warn_unused_result, nonnull));
static void functionfs_unbind(struct ffs_data *ffs)
	__attribute__((nonnull));

20 21 22
static int functionfs_bind_config(struct usb_composite_dev *cdev,
				  struct usb_configuration *c,
				  struct ffs_data *ffs)
23 24 25 26 27 28 29
	__attribute__((warn_unused_result, nonnull));


static int functionfs_ready_callback(struct ffs_data *ffs)
	__attribute__((warn_unused_result, nonnull));
static void functionfs_closed_callback(struct ffs_data *ffs)
	__attribute__((nonnull));
30
static void *functionfs_acquire_dev_callback(const char *dev_name)
31
	__attribute__((warn_unused_result, nonnull));
32 33
static void functionfs_release_dev_callback(struct ffs_data *ffs_data)
	__attribute__((nonnull));
34 35 36


#endif