/************************************************************************
* RSTP library - Rapid Spanning Tree (802.1t, 802.1w)
* Copyright (C) 2001-2003 Optical Access
* Author: Alex Rozin
*
* This file is part of RSTP library.
*
* under the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation; version 2.1
*
* RSTP library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
* General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with RSTP library; see the file COPYING. If not, write to the Free
* Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
**********************************************************************/
/* Mutual RSTP definitions */
#ifndef _STP_BASE_H__
#define _STP_BASE_H__
#include <stdlib.h>
#include <string.h>
# include <stddef.h>
# include <stdio.h>
# include "uid_stp.h"
#else
# include <psos.h>
# include "comdef.h"
# include "comdef.x"
#endif
#ifndef INOUT
#endif
#ifndef Zero
# define Zero 0
#endif
#ifndef Bool
# define Bool int
# define False 0
#endif
#include "stp_bpdu.h"
#include "vector.h"
#include "times.h"
#define RSTP_ERRORS { \
}
#define CHOOSE(a) a
extern char* strdup (const char *s);
#endif
#ifdef STP_DBG
#else
abort();
#endif
#else
#endif
{ \
if (! PTR) { \
} \
}
{ \
if (! PTR) { \
} \
}
{ \
if (! PTR) { \
} \
}
{ \
}
/* for debug trace messages */
#ifdef STP_DBG
#if defined(__LINUX__)
extern char* sprint_time_stump (void);
#else
#endif
#else /* !STP_DBG */
#define stp_trace(F, B...) ((void)0)
#endif /* STP_DBG */
/* Inner usage definitions & functions */
# define RSTP_INIT_CRITICAL_PATH_PROTECTIO
# define RSTP_CRITICAL_PATH_START
# define RSTP_CRITICAL_PATH_END
#else
extern void STP_OUT_psos_init_semaphore (void);
extern void STP_OUT_psos_close_semaphore (void);
extern void STP_OUT_psos_open_semaphore (void);
#endif
#endif /* _STP_BASE_H__ */