]> sigrok.org Git - libsigrok.git/blob - hardware/common/skeleton.c
bb8381408109b582b8caa7422b33967cb61d9d2c
[libsigrok.git] / hardware / common / skeleton.c
1 /*
2  * This file is part of the sigrok project.
3  *
4  * Copyright (C) 2010 Bert Vermeulen <bert@biot.com>
5  *
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18  */
19
20 #include "sigrok.h"
21
22 static int hw_init(char *deviceinfo)
23 {
24
25 }
26
27
28 static int hw_opendev(int device_index)
29 {
30
31 }
32
33
34 static void hw_closedev(int device_index)
35 {
36
37 }
38
39
40 static void hw_cleanup(void)
41 {
42
43 }
44
45
46 static char *hw_get_identifier(int device_index)
47 {
48
49 }
50
51
52 static char *hw_get_device_info(int device_index, int device_info_id)
53 {
54
55 }
56
57
58 static int hw_get_status(int device_index)
59 {
60
61 }
62
63
64 static int *hw_get_capabilities(void)
65 {
66
67 }
68
69
70 static int hw_set_configuration(int device_index, int capability, char *value)
71 {
72
73 }
74
75
76 static int hw_start_acquisition(int device_index, gpointer session_device_id)
77 {
78
79 }
80
81
82 static void hw_stop_acquisition(int device_index, gpointer session_device_id)
83 {
84
85 }
86
87
88
89 struct device_plugin skeleton_plugin_info = {
90         "skeleton",
91         1,
92         hw_init,
93         hw_cleanup,
94
95         hw_opendev,
96         hw_closedev,
97         hw_get_device_info,
98         hw_get_status,
99         hw_get_capabilities,
100         hw_set_configuration,
101         hw_start_acquisition,
102         hw_stop_acquisition
103 };
104