Gazebo Transport

API Reference

15.0.2
CIface.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 Open Source Robotics Foundation
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*/
17
18#ifndef INCLUDE_GZ_TRANSPORT_CIFACE_H_
19#define INCLUDE_GZ_TRANSPORT_CIFACE_H_
20
21#include <cstddef>
22
23#include "gz/transport/Export.hh"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28 typedef struct SubscribeOpts
29 {
30 // cppcheck-suppress unusedStructMember
31 unsigned int msgsPerSec;
33
36
44 const char *_partition);
45
48 void GZ_TRANSPORT_VISIBLE
50
56 int GZ_TRANSPORT_VISIBLE
58 const char *_topic,
59 const char *_msgType);
60
68 int GZ_TRANSPORT_VISIBLE
70 const char *_topic,
71 const void *_data,
72 size_t _size,
73 const char *_msgType);
74
82 GZ_DEPRECATED(15)
83 int GZ_TRANSPORT_VISIBLE
85 const char *_topic,
86 const void *_data,
87 const char *_msgType);
88
95 int GZ_TRANSPORT_VISIBLE
97 GzTransportNode *_node,
98 const char *_topic,
99 void (*_callback)(const char *, size_t, const char *, void *),
100 void *_userData);
101
109 int GZ_TRANSPORT_VISIBLE
111 const char *_topic, SubscribeOpts _opts,
112 void (*_callback)(const char *, size_t, const char *, void *),
113 void *_userData);
114
121 int GZ_TRANSPORT_VISIBLE
123 void (*_callback)(char *, size_t, char *, void *),
124 void *_userData);
125
130 int GZ_TRANSPORT_VISIBLE
131 gzTransportUnsubscribe(GzTransportNode *_node, const char *_topic);
132
136 void GZ_TRANSPORT_VISIBLE gzTransportWaitForShutdown();
137
138#ifdef __cplusplus
139}
140#endif
141
142// INCLUDE_GZ_TRANSPORT_CIFACE_H_
143#endif