fsm-table.c 910 Bytes
Newer Older
1
/*
2 3 4 5
 * Copyright (C) 2011 CERN (www.cern.ch)
 * Author: Aurelio Colosimo
 *
 * Released according to the GNU LGPL, version 2.1 or any later version.
6
 */
7

Alessandro Rubini's avatar
Alessandro Rubini committed
8
#include <ppsi/ppsi.h>
9 10

/*
11
 * This is the default state machine table. Can be overrridden by an extended
12 13 14 15
 * protocol can define its own stuff. It is in its own source file, so
 * the linker can avoid pulling this data space if another table is there.
 */

16
struct pp_state_table_item pp_state_table[] __attribute__((weak)) = {
17 18 19 20
	{ PPS_INITIALIZING,	"initializing",	pp_initializing,},
	{ PPS_FAULTY,		"faulty",	pp_faulty,},
	{ PPS_DISABLED,		"disabled",	pp_disabled,},
	{ PPS_LISTENING,	"listening",	pp_listening,},
21
	{ PPS_PRE_MASTER,	"pre-master",	pp_master,},
22 23 24 25
	{ PPS_MASTER,		"master",	pp_master,},
	{ PPS_PASSIVE,		"passive",	pp_passive,},
	{ PPS_UNCALIBRATED,	"uncalibrated",	pp_uncalibrated,},
	{ PPS_SLAVE,		"slave",	pp_slave,},
26 27
	{ PPS_END_OF_TABLE,}
};