Blame unicast_fsm.h

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