-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlop_internal.h
59 lines (53 loc) · 1.78 KB
/
lop_internal.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#ifndef LOP_INTERNAL_H
#define LOP_INTERNAL_H
#include <lop/lop_osc_types.h>
/**
* \brief Validate raw OSC string data. Where applicable, data should be
* in network byte order.
*
* This function is used internally to parse and validate raw OSC data.
*
* Returns length of string or < 0 if data is invalid.
*
* \param data A pointer to the data.
* \param size The size of data in bytes (total bytes remaining).
*/
ssize_t lop_validate_string(void *data, ssize_t size);
/**
* \brief Validate raw OSC blob data. Where applicable, data should be
* in network byte order.
*
* This function is used internally to parse and validate raw OSC data.
*
* Returns length of blob or < 0 if data is invalid.
*
* \param data A pointer to the data.
* \param size The size of data in bytes (total bytes remaining).
*/
ssize_t lop_validate_blob(void *data, ssize_t size);
/**
* \brief Validate raw OSC bundle data. Where applicable, data should be
* in network byte order.
*
* This function is used internally to parse and validate raw OSC data.
*
* Returns length of bundle or < 0 if data is invalid.
*
* \param data A pointer to the data.
* \param size The size of data in bytes (total bytes remaining).
*/
ssize_t lop_validate_bundle(void *data, ssize_t size);
/**
* \brief Validate raw OSC argument data. Where applicable, data should be
* in network byte order.
*
* This function is used internally to parse and validate raw OSC data.
*
* Returns length of argument data or < 0 if data is invalid.
*
* \param type The OSC type of the data item (eg. LOP_FLOAT).
* \param data A pointer to the data.
* \param size The size of data in bytes (total bytes remaining).
*/
ssize_t lop_validate_arg(lop_type type, void *data, ssize_t size);
#endif