Loading...
Searching...
No Matches
DataDistributionManagerTypes.h
Go to the documentation of this file.
1/*
2* Copyright 2023 MASES s.r.l.
3*
4* Licensed under the Apache License, Version 2.0 (the "License");
5* you may not use this file except in compliance with the License.
6* You may obtain a copy of the License at
7*
8* http://www.apache.org/licenses/LICENSE-2.0
9*
10* Unless required by applicable law or agreed to in writing, software
11* distributed under the License is distributed on an "AS IS" BASIS,
12* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13* See the License for the specific language governing permissions and
14* limitations under the License.
15*
16* Refer to LICENSE for more information.
17*/
18
19#if !defined(DATADISTRIBUTIONMANAGERTYPES_H__INCLUDED_)
20#define DATADISTRIBUTIONMANAGERTYPES_H__INCLUDED_
21
35#if _MSC_VER > 1000
36#pragma once
37#endif // _MSC_VER > 1000
38
40
42#ifdef __cplusplus
43#define NULL 0
44#else
45#define NULL ((void *)0)
46#endif
47
48#ifdef DDM_EXPORTS
49#define DDM_EXPORT __declspec(dllexport)
50#else
51#define DDM_EXPORT __declspec(dllimport)
52#endif
53
54#define DLLEXPORT DDM_EXPORT
55#define DLLIMPORT __declspec(dllimport)
56#define DLLCALL __cdecl
57#define FUNCALL __cdecl
58
59typedef int BOOL;
60
61#ifndef FALSE
62#define FALSE 0
63#endif
64
65#ifndef TRUE
66#define TRUE 1
67#endif
68
76#define DDM_NO_TIMESTAMP -1
77
79
84#define CHANNEL_HANDLE IDataDistributionChannel*
89#define CHANNEL_HANDLE_PARAMETER CHANNEL_HANDLE channelHandle
94typedef void* GENERIC_HANDLE;
95
102typedef long OPERATION_RESULT;
106#define OPERATION_SUCCEEDED(or) (((OPERATION_RESULT)(or)) >= 0)
110#define OPERATION_FAILED(or) (((OPERATION_RESULT)(or)) < 0)
111
112#define DDM_NO_ERROR_CONDITION 0
114// Condition section
115#define DDM_DATA_AVAILABLE 0x20000000
116#define DDM_END_OF_STREAM DDM_DATA_AVAILABLE + 1
117#define DDM_NO_DATA_RETURNED DDM_DATA_AVAILABLE + 2
118#define DDM_ELAPSED_MESSAGE_RECEIVE_TIMEOUT_BEGIN DDM_DATA_AVAILABLE + 3
119#define DDM_ELAPSED_MESSAGE_RECEIVE_TIMEOUT_END DDM_DATA_AVAILABLE + 4
120#define DDM_ELAPSED_MESSAGE_ACKNOWLEDGMENT_TIMEOUT DDM_DATA_AVAILABLE + 5
122// Errors list
123#define DDM_UNMAPPED_ERROR_CONDITION 0xF0000000
124#define DDM_FATAL_ERROR DDM_UNMAPPED_ERROR_CONDITION + 1
125#define DDM_TIMEOUT DDM_UNMAPPED_ERROR_CONDITION + 2
126#define DDM_INVALID_DATA DDM_UNMAPPED_ERROR_CONDITION + 3
127#define DDM_SUBSYSTEM_NOT_STARTED DDM_UNMAPPED_ERROR_CONDITION + 4
128#define DDM_WRITE_FAILED DDM_UNMAPPED_ERROR_CONDITION + 5
129#define DDM_COMMIT_FAILED DDM_UNMAPPED_ERROR_CONDITION + 6
130#define DDM_POINTER_NOT_SET DDM_UNMAPPED_ERROR_CONDITION + 7
131#define DDM_NOT_IMPLEMENTED DDM_UNMAPPED_ERROR_CONDITION + 8
132#define DDM_PARAMETER_ERROR DDM_UNMAPPED_ERROR_CONDITION + 9
133#define DDM_SEEK_FAILED DDM_UNMAPPED_ERROR_CONDITION + 10
135#endif // !defined(DATADISTRIBUTIONMANAGERTYPES_H__INCLUDED_)
DataDistributionManager library.
long OPERATION_RESULT
OPERATION_RESULT type.
Definition DataDistributionManagerTypes.h:102
void * GENERIC_HANDLE
Generic handle definition, used for thread, lock, mutex.
Definition DataDistributionManagerTypes.h:94
The basic interface for all channel.
Definition DataDistributionManager.h:377