staging: ozwpan: Remove typedefs
As these typedefs are only used once, there is no real need for them. Signed-off-by: Christoph Jaeger <email@christophjaeger.info> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ae66475289
commit
348fecd2a2
1 changed files with 7 additions and 16 deletions
|
@ -29,23 +29,14 @@
|
||||||
|
|
||||||
/* Application handler functions.
|
/* Application handler functions.
|
||||||
*/
|
*/
|
||||||
typedef int (*oz_app_init_fn_t)(void);
|
|
||||||
typedef void (*oz_app_term_fn_t)(void);
|
|
||||||
typedef int (*oz_app_start_fn_t)(struct oz_pd *pd, int resume);
|
|
||||||
typedef void (*oz_app_stop_fn_t)(struct oz_pd *pd, int pause);
|
|
||||||
typedef void (*oz_app_rx_fn_t)(struct oz_pd *pd, struct oz_elt *elt);
|
|
||||||
typedef int (*oz_app_heartbeat_fn_t)(struct oz_pd *pd);
|
|
||||||
typedef void (*oz_app_farewell_fn_t)(struct oz_pd *pd, u8 ep_num,
|
|
||||||
u8 *data, u8 len);
|
|
||||||
|
|
||||||
struct oz_app_if {
|
struct oz_app_if {
|
||||||
oz_app_init_fn_t init;
|
int (*init)(void);
|
||||||
oz_app_term_fn_t term;
|
void (*term)(void);
|
||||||
oz_app_start_fn_t start;
|
int (*start)(struct oz_pd *pd, int resume);
|
||||||
oz_app_stop_fn_t stop;
|
void (*stop)(struct oz_pd *pd, int pause);
|
||||||
oz_app_rx_fn_t rx;
|
void (*rx)(struct oz_pd *pd, struct oz_elt *elt);
|
||||||
oz_app_heartbeat_fn_t heartbeat;
|
int (*heartbeat)(struct oz_pd *pd);
|
||||||
oz_app_farewell_fn_t farewell;
|
void (*farewell)(struct oz_pd *pd, u8 ep_num, u8 *data, u8 len);
|
||||||
};
|
};
|
||||||
|
|
||||||
int oz_protocol_init(char *devs);
|
int oz_protocol_init(char *devs);
|
||||||
|
|
Loading…
Add table
Reference in a new issue