2 * Copyright (c) 2007-2008 Atheros Communications, Inc.
8 typedef void (*asf_sm_fn_t)(void *object, int event);
10 typedef struct asf_sm_s {
17 asf_sm_init(asf_sm_t *sm, void *object)
23 asf_sm_set_state(asf_sm_t *sm, asf_sm_fn_t fn)
29 asf_sm_send_event(asf_sm_t *sm, int event)
31 sm->fn(sm->object, event);
35 asf_sm_set_event_arg(asf_sm_t *sm, void *arg)
41 asf_sm_get_event_arg(asf_sm_t *sm)
46 #endif /* _ASF_SM_H_ */