UPS: apcupsd clean sources
[tomato.git] / release / src / router / apcupsd / src / drivers / test / testdriver.h
blob837f1a9e9473f6fff88f68ebc9102255f7cce715
1 /*
2 * testdriver.h
4 * Public header file for the test driver.
5 */
7 /*
8 * Copyright (C) 2001-2006 Kern Sibbald
10 * This program is free software; you can redistribute it and/or
11 * modify it under the terms of version 2 of the GNU General
12 * Public License as published by the Free Software Foundation.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
19 * You should have received a copy of the GNU General Public
20 * License along with this program; if not, write to the Free
21 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
22 * MA 02111-1307, USA.
25 #ifndef _TESTDRIVER_H
26 #define _TESTDRIVER_H
28 /*********************************************************************/
29 /* Function ProtoTypes */
30 /*********************************************************************/
32 extern int test_ups_get_capabilities(UPSINFO *ups);
33 extern int test_ups_read_volatile_data(UPSINFO *ups);
34 extern int test_ups_read_static_data(UPSINFO *ups);
35 extern int test_ups_kill_power(UPSINFO *ups);
36 extern int test_ups_check_state(UPSINFO *ups);
37 extern int test_ups_open(UPSINFO *ups);
38 extern int test_ups_close(UPSINFO *ups);
39 extern int test_ups_setup(UPSINFO *ups);
40 extern int test_ups_program_eeprom(UPSINFO *ups, int command, const char *data);
41 extern int test_ups_entry_point(UPSINFO *ups, int command, void *data);
43 #endif /* _TEST_DRIVER_H */