-
Notifications
You must be signed in to change notification settings - Fork 0
/
examplePlugin.h
101 lines (84 loc) · 3.47 KB
/
examplePlugin.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/*
WARNING: THIS FILE IS AUTO-GENERATED. DO NOT MODIFY.
This file was generated from example.idl using "rtiddsgen".
The rtiddsgen tool is part of the RTI Data Distribution Service distribution.
For more information, type 'rtiddsgen -help' at a command shell
or consult the RTI Data Distribution Service manual.
*/
#ifndef examplePlugin_1944007738_h
#define examplePlugin_1944007738_h
#include "example.h"
#if (defined(RTI_WIN32) || defined(RTI_WINCE)) && defined(NDDS_USER_DLL_EXPORT)
/* If the code is building on Windows, start exporting symbols. */
#undef NDDSUSERDllExport
#define NDDSUSERDllExport __declspec(dllexport)
#endif
#ifdef __cplusplus
extern "C" {
#endif
NDDSUSERDllExport extern struct NDDS_Type_Plugin*
my_typeTypePlugin_get(void);
NDDSUSERDllExport extern const char*
my_typeTypePlugin_get_default_type_name(void);
NDDSUSERDllExport extern NDDS_TypePluginKeyKind
my_type_get_key_kind(
struct NDDS_Type_Plugin *plugin,
void *param);
/* --------------------------------------------------------------------------
Untyped interfaces to the typed sample management functions
* -------------------------------------------------------------------------- */
NDDSUSERDllExport extern RTI_BOOL
my_typePlugin_create_sample(
struct NDDS_Type_Plugin *plugin, void **sample,void *param);
#ifndef RTI_CERT
NDDSUSERDllExport extern RTI_BOOL
my_typePlugin_delete_sample(
struct NDDS_Type_Plugin *plugin, void *sample,void *param);
#endif
NDDSUSERDllExport extern RTI_BOOL
my_typePlugin_copy_sample(
struct NDDS_Type_Plugin *plugin, void *dst, const void *src, void *param);
/* --------------------------------------------------------------------------
(De)Serialize functions:
* -------------------------------------------------------------------------- */
NDDSUSERDllExport extern RTI_BOOL
my_type_cdr_serialize(
struct CDR_Stream_t *stream, const void *void_sample, void *param);
NDDSUSERDllExport extern RTI_BOOL
my_type_cdr_deserialize(
struct CDR_Stream_t *stream, void *void_sample, void *param);
NDDSUSERDllExport extern RTI_UINT32
my_type_get_serialized_sample_max_size(
struct NDDS_Type_Plugin *plugin,
RTI_UINT32 current_alignment,
void *param);
/* --------------------------------------------------------------------------
Key Management functions:
* -------------------------------------------------------------------------- */
NDDSUSERDllExport extern RTI_BOOL
my_type_cdr_serialize_key(
struct CDR_Stream_t *keystream, const void *sample,
void *param);
NDDSUSERDllExport extern RTI_BOOL
my_type_cdr_deserialize_key(
struct CDR_Stream_t *keystream, void *sample,
void *param);
NDDSUSERDllExport extern RTI_UINT32
my_type_get_serialized_key_max_size(
struct NDDS_Type_Plugin *plugin,
RTI_UINT32 current_alignment,
void *param);
NDDSUSERDllExport extern RTI_BOOL
my_type_instance_to_keyhash(
struct NDDS_Type_Plugin *plugin,
struct CDR_Stream_t *stream, DDS_KeyHash_t *keyHash, const void *instance,
void *param);
#ifdef __cplusplus
} /* extern "C" */
#endif
#if (defined(RTI_WIN32) || defined(RTI_WINCE)) && defined(NDDS_USER_DLL_EXPORT)
/* If the code is building on Windows, stop exporting symbols. */
#undef NDDSUSERDllExport
#define NDDSUSERDllExport
#endif
#endif /* examplePlugin_1944007738_h */