Blame unicast_fsm.h

Packit 9c3e7e
/**
Packit 9c3e7e
 * @file unicast_fsm.h
Packit 9c3e7e
 * @brief Unicast client state machine
Packit 9c3e7e
 * @note Copyright (C) 2018 Richard Cochran <richardcochran@gmail.com>
Packit 9c3e7e
 *
Packit 9c3e7e
 * This program is free software; you can redistribute it and/or modify
Packit 9c3e7e
 * it under the terms of the GNU General Public License as published by
Packit 9c3e7e
 * the Free Software Foundation; either version 2 of the License, or
Packit 9c3e7e
 * (at your option) any later version.
Packit 9c3e7e
 *
Packit 9c3e7e
 * This program is distributed in the hope that it will be useful,
Packit 9c3e7e
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 9c3e7e
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 9c3e7e
 * GNU General Public License for more details.
Packit 9c3e7e
 *
Packit 9c3e7e
 * You should have received a copy of the GNU General Public License along
Packit 9c3e7e
 * with this program; if not, write to the Free Software Foundation, Inc.,
Packit 9c3e7e
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA.
Packit 9c3e7e
 */
Packit 9c3e7e
#ifndef HAVE_UNICAST_FSM_H
Packit 9c3e7e
#define HAVE_UNICAST_FSM_H
Packit 9c3e7e
Packit 9c3e7e
enum unicast_state {
Packit 9c3e7e
	UC_WAIT,
Packit 9c3e7e
	UC_HAVE_ANN,
Packit 9c3e7e
	UC_NEED_SYDY,
Packit 9c3e7e
	UC_HAVE_SYDY,
Packit 9c3e7e
};
Packit 9c3e7e
Packit 9c3e7e
enum unicast_event {
Packit 9c3e7e
	UC_EV_GRANT_ANN,
Packit 9c3e7e
	UC_EV_SELECTED,
Packit 9c3e7e
	UC_EV_GRANT_SYDY,
Packit 9c3e7e
	UC_EV_UNSELECTED,
Packit 9c3e7e
	UC_EV_CANCEL,
Packit 9c3e7e
};
Packit 9c3e7e
Packit 9c3e7e
enum unicast_state unicast_fsm(enum unicast_state state, enum unicast_event ev);
Packit 9c3e7e
Packit 9c3e7e
#endif