File: common.h

package info (click to toggle)
lcm 1.3.1%2Brepack1-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,784 kB
  • sloc: ansic: 16,184; java: 6,843; cs: 2,266; cpp: 1,594; python: 989; makefile: 348; xml: 252; sh: 62
file content (49 lines) | stat: -rw-r--r-- 1,734 bytes parent folder | download | duplicates (5)
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
#ifndef __common_h__
#define __common_h__

#ifdef __cplusplus
extern "C" {
#endif

#include "lcmtest_primitives_t.h"
#include "lcmtest_primitives_list_t.h"
#include "lcmtest_node_t.h"
#include "lcmtest_multidim_array_t.h"
#include "lcmtest2_cross_package_t.h"

#ifndef _MSC_VER
char* _strdup(const char* src);
#endif

int check_lcmtest_multidim_array_t(const lcmtest_multidim_array_t* msg, int expected);
void fill_lcmtest_multidim_array_t(int num_children, lcmtest_multidim_array_t* result);
void clear_lcmtest_multidim_array_t(lcmtest_multidim_array_t* msg);

int check_lcmtest_node_t(const lcmtest_node_t* msg, int expected);
void fill_lcmtest_node_t(int num_children, lcmtest_node_t* result);
void clear_lcmtest_node_t(lcmtest_node_t* msg);

int check_lcmtest_primitives_list_t(const lcmtest_primitives_list_t* msg, int expected);
void fill_lcmtest_primitives_list_t(int num, lcmtest_primitives_list_t* msg);
void clear_lcmtest_primitives_list_t(lcmtest_primitives_list_t* msg);

int check_lcmtest_primitives_t(const lcmtest_primitives_t* msg, int expected);
void fill_lcmtest_primitives_t(int n, lcmtest_primitives_t* msg);
void clear_lcmtest_primitives_t(lcmtest_primitives_t* msg);

int check_lcmtest2_cross_package_t(const lcmtest2_cross_package_t* msg, int expected);
void fill_lcmtest2_cross_package_t(int n, lcmtest2_cross_package_t* msg);
void clear_lcmtest2_cross_package_t(lcmtest2_cross_package_t* msg);

int check_lcmtest2_another_type_t(const lcmtest2_another_type_t* msg, int expected);
void fill_lcmtest2_another_type_t(int n, lcmtest2_another_type_t* msg);
void clear_lcmtest2_another_type_t(lcmtest2_another_type_t* msg);

char* make_tmpnam();
void free_tmpnam(char* tmpnam);

#ifdef __cplusplus
}
#endif

#endif