
Code formatting was quite a mess (different indentation, completely different ideas on where opening braces should go, spacing in various places, early out versus single return or goto-based error handling, &c.). This commit cleans it up. A few doxygen comment fixes allowed turning on Clang's warnings for doxygen comments, so those are no enabled by default as least on Xcode-based builds. Signed-off-by: Erik Boasson <eb@ilities.com>
41 lines
1.2 KiB
C
41 lines
1.2 KiB
C
/*
|
|
* Copyright(c) 2006 to 2018 ADLINK Technology Limited and others
|
|
*
|
|
* This program and the accompanying materials are made available under the
|
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
* http://www.eclipse.org/legal/epl-2.0, or the Eclipse Distribution License
|
|
* v. 1.0 which is available at
|
|
* http://www.eclipse.org/org/documents/edl-v10.php.
|
|
*
|
|
* SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
|
|
*/
|
|
#ifndef _DDS_TOPIC_H_
|
|
#define _DDS_TOPIC_H_
|
|
|
|
#include "dds__types.h"
|
|
#include "dds__entity.h"
|
|
|
|
#if defined (__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
DEFINE_ENTITY_LOCK_UNLOCK(inline, dds_topic, DDS_KIND_TOPIC)
|
|
|
|
DDS_EXPORT struct ddsi_sertopic * dds_topic_lookup (dds_domain * domain, const char * name) ddsrt_nonnull_all;
|
|
DDS_EXPORT void dds_topic_free (dds_domainid_t domainid, struct ddsi_sertopic * st) ddsrt_nonnull_all;
|
|
|
|
#ifndef DDS_TOPIC_INTERN_FILTER_FN_DEFINED
|
|
#define DDS_TOPIC_INTERN_FILTER_FN_DEFINED
|
|
typedef bool (*dds_topic_intern_filter_fn) (const void * sample, void *ctx);
|
|
#endif
|
|
|
|
DDS_EXPORT void dds_topic_set_filter_with_ctx
|
|
(dds_entity_t topic, dds_topic_intern_filter_fn filter, void *ctx);
|
|
|
|
DDS_EXPORT dds_topic_intern_filter_fn dds_topic_get_filter_with_ctx
|
|
(dds_entity_t topic);
|
|
|
|
#if defined (__cplusplus)
|
|
}
|
|
#endif
|
|
#endif
|