summaryrefslogtreecommitdiff
path: root/cesar/cp/sta/action/action.h
blob: 0ab84b4ae08764933ca4b1835080ea6a99cd9559 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#ifndef cp_sta_action_action_h
#define cp_sta_action_action_h
/* Cesar project {{{
 *
 * Copyright (C) 2008 Spidcom
 *
 * <<<Licence>>>
 *
 * }}} */
/**
 * \file    cp/sta/action/action.h
 * \brief   STA action.
 * \ingroup cp_sta_action
 *
 * This module implements actions defined in the FSM and actions corresponding
 * to MME reception.
 *
 * Top level
 * =========
 *
 * This part includes top level functions.
 */
#include "cp/inc/variant.h"
#include "cp/types.h"
#include "cp/mme.h"

#include "cp/sta/action/assoc.h"
#include "cp/sta/action/poweron.h"
#include "cp/sta/action/key.h"
#include "cp/sta/action/misc.h"
#include "cp/sta/action/drv.h"
#include "cp/sta/action/bridge.h"
#include "cp/sta/action/vs.h"

BEGIN_DECLS

/**
 * Initialise STA action.
 * \param  ctx  control plane context
 */
#define cp_sta_action_init \
    CP_VARIANT_FUNCTION(sta_action_init)
void
cp_sta_action_init (cp_t *ctx);

/**
 * Collect garbages, called regularly for background timed tasks.
 * \param  ctx  control plane context
 *
 * Request STA manager to remove expired networks or stations.
 */
void
cp_sta_action_garbage (cp_t *ctx);

END_DECLS

#endif /* cp_sta_action_action_h */