Added support for vendor specific sample types.
This commit is contained in:
parent
8d6c72fa60
commit
40da0a34db
12
src/parser.h
12
src/parser.h
@ -47,7 +47,8 @@ typedef enum parser_sample_type_t {
|
||||
SAMPLE_TYPE_TEMPERATURE,
|
||||
SAMPLE_TYPE_EVENT,
|
||||
SAMPLE_TYPE_RBT,
|
||||
SAMPLE_TYPE_HEARTBEAT
|
||||
SAMPLE_TYPE_HEARTBEAT,
|
||||
SAMPLE_TYPE_VENDOR
|
||||
} parser_sample_type_t;
|
||||
|
||||
typedef enum parser_sample_event_t {
|
||||
@ -58,6 +59,10 @@ typedef enum parser_sample_flags_t {
|
||||
SAMPLE_FLAGS_NONE
|
||||
} parser_sample_flags_t;
|
||||
|
||||
typedef enum parser_sample_vendor_t {
|
||||
SAMPLE_VENDOR_NONE
|
||||
} parser_sample_vendor_t;
|
||||
|
||||
typedef union parser_sample_value_t {
|
||||
unsigned int time;
|
||||
double depth;
|
||||
@ -74,6 +79,11 @@ typedef union parser_sample_value_t {
|
||||
} event;
|
||||
unsigned int rbt;
|
||||
unsigned int heartbeat;
|
||||
struct {
|
||||
unsigned int type;
|
||||
unsigned int size;
|
||||
const void *data;
|
||||
} vendor;
|
||||
} parser_sample_value_t;
|
||||
|
||||
typedef struct parser_t parser_t;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user