forked from radarsat1/mapperRec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrecdevice.h
36 lines (25 loc) · 918 Bytes
/
recdevice.h
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
#ifndef __RECDEVICE_H__
#define __RECDEVICE_H__
#include <mapper/mapper.h>
int recdevice_start();
void recdevice_poll(int block_ms);
void recdevice_stop();
struct stringlist
{
const char *string;
struct stringlist *next;
};
extern struct stringlist *device_strings;
extern struct stringlist *signal_strings;
extern int n_device_strings;
extern int n_signal_strings;
int recdevice_add_device_string(const char *str);
int recdevice_add_signal_string(const char *str);
void recdevice_add_input(const char *devname, const char *signame,
char type, int length);
void db_device_handler(mapper_database db, mapper_device dev,
mapper_record_event event, const void *user);
void db_signal_handler(mapper_database db, mapper_signal sig,
mapper_record_event event, const void *user);
extern mapper_device recdev;
#endif // __RECDEVICE_H__