2 * Copyright (C) 2011 Sansar Choinyambuu
3 * HSR Hochschule fuer Technik Rapperswil
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 * @defgroup tcg_pts_attr_meas_algo_selection tcg_pts_attr_meas_algo_selection
18 * @{ @ingroup tcg_pts_attr_meas_algo_selection
21 #ifndef TCG_PTS_ATTR_MEAS_ALGO_SELECTION_H_
22 #define TCG_PTS_ATTR_MEAS_ALGO_SELECTION_H_
24 typedef struct tcg_pts_attr_meas_algo_selection_t tcg_pts_attr_meas_algo_selection_t
;
27 #include "pa_tnc/pa_tnc_attr.h"
28 #include "tcg_pts_attr_meas_algo.h"
31 * Class implementing the TCG Measurement Algorithm Selection Attribute
34 struct tcg_pts_attr_meas_algo_selection_t
{
37 * Public PA-TNC attribute interface
39 pa_tnc_attr_t pa_tnc_attribute
;
42 * Get a selected PTS Measurement Algorithm
44 * @return A Selected Measurement Algorithm
46 pts_meas_algorithms_t (*get_algorithm
)(tcg_pts_attr_meas_algo_selection_t
*this);
49 * Set PTS Measurement Algorithm
51 * @param flags A Selected Measurement Algorithm
53 void (*set_algorithm
)(tcg_pts_attr_meas_algo_selection_t
*this,
54 pts_meas_algorithms_t algorithm
);
59 * Creates an tcg_pts_attr_meas_algo_selection_t object
61 * @param algorithm A Selected Measurement Algorithm
63 pa_tnc_attr_t
* tcg_pts_attr_meas_algo_selection_create(pts_meas_algorithms_t algorithm
);
66 * Creates an tcg_pts_attr_meas_algo_selection_t object from received data
68 * @param value unparsed attribute value
70 pa_tnc_attr_t
* tcg_pts_attr_meas_algo_selection_create_from_data(chunk_t value
);
72 #endif /** TCG_PTS_ATTR_MEAS_ALGO_H_ @}*/