diff options
Diffstat (limited to 'lcmtype/path_t.h')
-rw-r--r-- | lcmtype/path_t.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/lcmtype/path_t.h b/lcmtype/path_t.h new file mode 100644 index 0000000..a9956c9 --- /dev/null +++ b/lcmtype/path_t.h | |||
@@ -0,0 +1,60 @@ | |||
1 | /** THIS IS AN AUTOMATICALLY GENERATED FILE. DO NOT MODIFY | ||
2 | * BY HAND!! | ||
3 | * | ||
4 | * Generated by lcm-gen | ||
5 | **/ | ||
6 | |||
7 | #include "lcmtype.h" | ||
8 | #include <stdint.h> | ||
9 | #include <stdlib.h> | ||
10 | |||
11 | #ifndef _path_t_h | ||
12 | #define _path_t_h | ||
13 | |||
14 | #ifdef __cplusplus | ||
15 | extern "C" { | ||
16 | #endif | ||
17 | |||
18 | typedef struct _path_t path_t; | ||
19 | struct _path_t { | ||
20 | int64_t utime; | ||
21 | int16_t length; | ||
22 | double **xyr; | ||
23 | }; | ||
24 | |||
25 | path_t *path_t_copy(const path_t *p); | ||
26 | void path_t_destroy(path_t *p); | ||
27 | |||
28 | typedef struct _path_t_subscription_t path_t_subscription_t; | ||
29 | typedef void (*path_t_handler_t)(const lcm_recv_buf_t *rbuf, | ||
30 | const char *channel, const path_t *msg, | ||
31 | void *user); | ||
32 | |||
33 | int path_t_publish(lcm_t *lcm, const char *channel, const path_t *p); | ||
34 | path_t_subscription_t *path_t_subscribe(lcm_t *lcm, const char *channel, | ||
35 | path_t_handler_t f, void *userdata); | ||
36 | int path_t_unsubscribe(lcm_t *lcm, path_t_subscription_t *hid); | ||
37 | int path_t_subscription_set_queue_capacity(path_t_subscription_t *subs, | ||
38 | int num_messages); | ||
39 | |||
40 | int path_t_encode(void *buf, int offset, int maxlen, const path_t *p); | ||
41 | int path_t_decode(const void *buf, int offset, int maxlen, path_t *p); | ||
42 | int path_t_decode_cleanup(path_t *p); | ||
43 | int path_t_encoded_size(const path_t *p); | ||
44 | |||
45 | // LCM support functions. Users should not call these | ||
46 | int64_t __path_t_get_hash(void); | ||
47 | int64_t __path_t_hash_recursive(const __lcm_hash_ptr *p); | ||
48 | int __path_t_encode_array(void *buf, int offset, int maxlen, const path_t *p, | ||
49 | int elements); | ||
50 | int __path_t_decode_array(const void *buf, int offset, int maxlen, path_t *p, | ||
51 | int elements); | ||
52 | int __path_t_decode_array_cleanup(path_t *p, int elements); | ||
53 | int __path_t_encoded_array_size(const path_t *p, int elements); | ||
54 | int __path_t_clone_array(const path_t *p, path_t *q, int elements); | ||
55 | |||
56 | #ifdef __cplusplus | ||
57 | } | ||
58 | #endif | ||
59 | |||
60 | #endif | ||