-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.c
175 lines (134 loc) · 2.71 KB
/
template.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
/*
*
* Functions that have to be provided
*
*/
/** writer API functions **/
void *prefix_create (const char *nm, float stop_time, float ts)
{
return 0;
}
void *prefix_create_alt (const char *nm, float stop_time, float ts)
{
return 0;
}
int prefix_signal_start (void *handle)
{
return 0;
}
void *prefix_add_analog_signal (void *handle, const char *s)
{
return 0;
}
void *prefix_add_digital_signal (void *handle, const char *s)
{
return 0;
}
void *prefix_add_int_signal (void *handle, const char *s, int width)
{
return 0;
}
void *prefix_add_chan_signal (void *handle, const char *s, int width)
{
return 0;
}
int prefix_signal_end (void *handle)
{
return 0;
}
int prefix_init_start (void *handle)
{
return 0;
}
int prefix_init_end (void *handle)
{
return 0;
}
int prefix_change_digital (void *handle, void *node, float t, unsigned long v)
{
return 0;
}
int prefix_change_analog (void *handle, void *node, float t, float v)
{
return 0;
}
int prefix_change_wide_digital (void *handle, void *node, float t, int len, unsigned long *v)
{
return 0;
}
int prefix_change_chan (void *handle, void *node, float t,
act_chan_state_t s, unsigned long v)
{
return 0;
}
int prefix_change_wide_chan (void *handle, void *node, float t,
act_chan_state_t s, int len, unsigned long *v)
{
return 0;
}
int prefix_change_digital_alt (void *handle, void *node, int len, unsigned long *t, unsigned long v)
{
return 0;
}
int prefix_change_analog_alt (void *handle, void *node, int len, unsigned long *t, float v)
{
return 0;
}
int prefix_change_wide_digital_alt (void *handle, void *node, int len, unsigned long *t, int lenv, unsigned long *v)
{
return 0;
}
int prefix_change_chan_alt (void *handle, void *node, int len, unsigned long *t,
act_chan_state_t s, unsigned long v)
{
return 0;
}
int prefix_change_wide_chan_alt (void *handle, void *node,
int len, unsigned long *t,
act_chan_state_t s, int lenv, unsigned long *v)
{
return 0;
}
/** reader API functions **/
void *prefix_open (const char *nm)
{
return NULL;
}
void *prefix_open_alt (const char *nm)
{
return NULL;
}
void prefix_header (void *handle, float *stop_time, float *dt)
{
*stop_time = -1;
*dt = -1;
return;
}
void *prefix_signal_lookup (void *handle, const char *name)
{
return NULL;
}
act_signal_type_t prefix_type (void *handle, void *signal)
{
return ACT_SIG_BOOL;
}
act_signal_val_t prefix_get_signal (void *handle, void *signal)
{
return ACT_SIG_BOOL_X;
}
void prefix_advance_time (void *handle, int steps)
{
return;
}
void prefix_advance_time_by (void *handle, float dt)
{
return;
}
int prefix_has_more_data (void *handle)
{
return 0;
}
int prefix_close (void *handle)
{
return 0;
}