summaryrefslogtreecommitdiffstats
path: root/ipc_unit_test/ipc_unit_test_common.h
blob: e4ad1961597ea2528bb816d94b0a3f7b7f695921 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef IPC_UNIT_TEST_COMMON_H
#define IPC_UNIT_TEST_COMMON_H
#include <stddef.h>

#define DEFINE_STRUCT_DATA(struct_name, member) \
    {#member, offsetof(struct_name, member), sizeof(((struct_name *)0)->member)}
#define IC_SERVICE_LIST_NUM (77)

typedef struct {
    const char *name;
    int offset;
    int size;
} IPC_UNIT_TEST_DATA_LIST;

extern IPC_UNIT_TEST_DATA_LIST IcServiceList[];

#endif // IPC_UNIT_TEST_COMMON_H