libvigicrues  2.0.1
test.h
1 /*
2  * Copyright (c) 2017 Valentin Lahaye
3  *
4  * This file is part of a free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 3 of the License, or any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program. If not, see <http://www.gnu.org/licenses/lgpl-3.0.html>
16  */
17 
18 #ifndef VIGICRUES_TEST_H
19 #define VIGICRUES_TEST_H
20 
21 #include <vigicrues.h>
22 
23 typedef struct {
24  unsigned ent;
25  const char *id;
26  enum vigicrues_e type;
27  unsigned range;
28  void *param;
30 
31 vigicrues_status_t vigicrues_test_setup(vigicrues_test_t *p_test);
32 vigicrues_status_t vigicrues_test_teardown(vigicrues_test_t *p_test);
33 vigicrues_status_t vigicrues_test_func(const vigicrues_t *p_data, void *param);
34 vigicrues_status_t vigicrues_test_validate(vigicrues_status_t status,
35  vigicrues_error_t error);
36 
37 #endif
vigicrues_e
Specifies the type of data to retreive for a station.
Definition: vigicrues.h:80
vigicrues_error_t
Specifies the different error codes that can be reported in case of failure.
Definition: vigicrues.h:134
Definition: test.h:23
File containing macros, types and function prototypes needed to work with libvigicrues.
A structure to hold the data retreived from the vigicrues service.
Definition: vigicrues.h:99
vigicrues_status_t
Specifies the values that can be returned by a function to indicate its execution status...
Definition: vigicrues.h:149