File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / strongswan / src / libimcv / pts / pts_file_type.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Jun 3 09:46:43 2020 UTC (4 years, 3 months ago) by misho
Branches: strongswan, MAIN
CVS tags: v5_9_2p0, v5_8_4p7, HEAD
Strongswan

/*
 * Copyright (C) 2011 Sansar Choinyambuu
 * HSR Hochschule fuer Technik Rapperswil
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation; either version 2 of the License, or (at your
 * option) any later version.  See <http://www.fsf.org/copyleft/gpl.txt>.
 *
 * This program 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 General Public License
 * for more details.
 */

/**
 * @defgroup pts_file_type pts_file_type
 * @{ @ingroup pts
 */

#ifndef PTS_FILE_TYPE_H_
#define PTS_FILE_TYPE_H_

#include <library.h>

typedef enum pts_file_type_t pts_file_type_t;

/**
 * PTS File Type
 * see section 3.17.3 of PTS Protocol: Binding to TNC IF-M Specification
 */
enum pts_file_type_t {
	/** Either unknown or different from standardized types */
	PTS_FILE_OTHER =				0x0000,
	/** Pipe communication file */
	PTS_FILE_FIFO =					0x0001,
	/** Character special file */
	PTS_FILE_CHAR_SPEC =			0x0002,
	/** Reserved */
	PTS_FILE_RESERVED_3 =			0x0003,
	/** Directory */
	PTS_FILE_DIRECTORY =			0x0004,
	/** Reserved */
	PTS_FILE_RESERVED_5 =			0x0005,
	/** Block special file */
	PTS_FILE_BLOCK_SPEC =			0x0006,
	/** Reserved */
	PTS_FILE_RESERVED_7 =			0x0007,
	/** Regular file */
	PTS_FILE_REGULAR =		 		0x0008,
	/** Reserved */
	PTS_FILE_RESERVED_9 =			0x0009,
	/** Symbolic link */
	PTS_FILE_SYM_LINK =			 	0x000A,
	/** Reserved */
	PTS_FILE_RESERVED_11 =			0x000B,
	/** Socket communication special file */
	PTS_FILE_SOCKET =			 	0x000C,
};

extern enum_name_t *pts_file_type_names;

#endif /** PTS_FILE_TYPE_H_ @}*/

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>