/home/tai/chorist/xian-1.2/src/include/usei-functions.h

Go to the documentation of this file.
00001 /*
00002  *  XIAN USEI - User Space XIAN Extended API
00003  *  Copyright (C) 2006 THALES Communications
00004  *
00005  *  This file is part of XIAN software.
00006  *
00007  *  XIAN is free software; you can redistribute it and/or modify it
00008  *  under the terms of the GNU General Public License as published by
00009  *  the Free Software Foundation.
00010  *
00011  *  XIAN software is distributed in the hope that it will be useful,
00012  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *  GNU General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with XIAN software; if not, write to the Free Software
00018  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
00019  *
00020  *  */
00021 
00022 
00023 
00024 #ifndef _USEI_FUNCTIONS_H
00025 #define _USEI_FUNCTIONS_H
00026 
00027 /**************************************************************************************
00028  * Define the content structures of a Metric Measurement
00029  *************************************************************************************/
00030 
00031 struct qos_metric_measurement
00032 {  
00033   unsigned long long metric_unit;
00034   unsigned long long metric_sub_unit;
00035   unsigned int type;
00036 };
00037 
00038 
00039 /**************************************************************************************
00040  * Define Metric Types
00041  *************************************************************************************/
00042 
00043 #define LINK_RSSI_ADD                              101
00044 #define LINK_AVG_DELTA_OCCUPANCY_ADD               102
00045 #define LINK_AVG_DELTA_OCCUPANCY_MAX               103
00046 #define LINK_FAILURE_RATE_MAX                      104
00047 #define LINK_FAILURE_RATE_MUL                      105
00048 #define LINK_AVG_RSSI                              106
00049 
00050 
00051 /**************************************************************************************
00052  * Define the interface for getting a Metric Measurement
00053  *************************************************************************************/
00054 
00055 void print_error (unsigned int error_type);
00056 struct qos_metric_measurement get_qos_metric(unsigned int type, char * macaddr, char * dev_name, unsigned int  * code_err);
00057 unsigned int metrics_operation(struct qos_metric_measurement qos_metric_1, struct qos_metric_measurement qos_metric_2, struct qos_metric_measurement * qos_metric_result);
00058 unsigned int is_relevant_metric(struct qos_metric_measurement qos_metric_new, struct qos_metric_measurement qos_metric_old);
00059 
00060 #endif

Generated on Mon Jan 21 12:31:45 2008 for XIAN by  doxygen 1.5.3