- HandlerMinelayerData: BUILD_RTI Guards für RTI-Abhängigkeiten - svcTabCommon: Export-Header-Fix via Fallback-Target - TrainingAreaBase: Stub-Header für BUILD_RTI=OFF - ddsfts: Include-Pfad und Dependency-Fixes - BUILD_RTI=OFF Compilation vollständig unterstützt Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Entire-Checkpoint: 01M0JNZA586SACX1PRZ2DJAE5S
196 lines
6.5 KiB
C
196 lines
6.5 KiB
C
/*
|
|
* (c) Copyright, Real-Time Innovations, 2002-2024.
|
|
* All rights reserved.
|
|
*
|
|
* No duplications, whole or partial, manual or electronic, may be made
|
|
* without express written permission. Any such copies, or
|
|
* revisions thereof, must display this notice unaltered.
|
|
* This code contains trade secrets of Real-Time Innovations, Inc.
|
|
*/
|
|
|
|
#ifndef routingservice_log_h
|
|
#define routingservice_log_h
|
|
|
|
#include "routingservice/routingservice_dll.h"
|
|
#include "log/log_common.h"
|
|
#include "advlog/advlog_context.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*i \file
|
|
@brief Logging facilities for the router module
|
|
*/
|
|
|
|
/*i \defgroup ROUTERLogModule ROUTER Logging
|
|
\ingroup ROUTER
|
|
@brief Logging facilities for router module
|
|
*/
|
|
|
|
/*
|
|
NOTE: When a new submodule is added to ROUTER, it must be given
|
|
a number and entered here. Because of the use of this id
|
|
for logging, there are 16 submodule id's: 0x0000, 0x1000,...
|
|
..., 0xF000.
|
|
It is suggested we put the modules here in an order that
|
|
respects their dependencies: modules with a lower number
|
|
cannot depend on modules with a higher number.
|
|
*/
|
|
|
|
/*i \ingroup ROUTERLogModule
|
|
Submodule ID for Common submodule
|
|
*/
|
|
#define SUBMODULE_ROUTER_COMMON (0x1000)
|
|
/*i \ingroup ROUTERLogModule
|
|
Submodule ID for Service submodule
|
|
*/
|
|
#define SUBMODULE_ROUTER_SERVICE (0x2000)
|
|
/*i \ingroup ROUTERLogModule
|
|
Submodule ID for CfgManager submodule
|
|
*/
|
|
#define SUBMODULE_ROUTER_CONFIG (0x3000)
|
|
/*i \ingroup ROUTERLogModule
|
|
Submodule ID for remoteConfig submodule
|
|
*/
|
|
#define SUBMODULE_ROUTER_REMOTE_CONFIG (0x4000)
|
|
/*i \ingroup ROUTERLogModule
|
|
Submodule ID for ddsAdapter submodule
|
|
*/
|
|
#define SUBMODULE_ROUTER_DDSADAPTER (0x5000)
|
|
/*i \ingroup ROUTERLogModule
|
|
Submodule ID for c37118Adapter submodule
|
|
*/
|
|
#define SUBMODULE_ROUTER_C37118ADAPTER (0x7000)
|
|
/*i \ingroup ROUTERLogModule
|
|
Submodule ID for jniAdapterLib submodule
|
|
*/
|
|
#define SUBMODULE_ROUTER_JNIADAPTER (0x8000)
|
|
/*i \ingroup ROUTERLogModule
|
|
Submodule ID for routingProcessor submodule
|
|
*/
|
|
#define SUBMODULE_ROUTER_ROUTING_PROCESSOR (0x10000)
|
|
/*i \ingroup ROUTERLogModule
|
|
Submodule ID for utilProcessors submodule
|
|
*/
|
|
#define SUBMODULE_ROUTER_UTIL_PROCESSORS (0x20000)
|
|
/*i \ingroup ROUTERLogModule
|
|
Submodule ID for legacy submodule
|
|
*/
|
|
#define SUBMODULE_ROUTER_LEGACY (0x30000)
|
|
/*i \ingroup ROUTERLogModule
|
|
Submodule ID for cacheAdapter submodule
|
|
*/
|
|
#define SUBMODULE_ROUTER_CACHEADAPTER (0x40000)
|
|
/*i \ingroup ROUTERLogModule
|
|
Submodule ID for monitoring submodule
|
|
*/
|
|
#define SUBMODULE_ROUTER_MONITORING (0x50000)
|
|
/*i \ingroup ROUTERLogModule
|
|
Submodule ID for testSystem submodule
|
|
*/
|
|
#define SUBMODULE_ROUTER_TESTSYSTEM (0x60000)
|
|
/*i \ingroup ROUTERLogModule
|
|
Mask for turning on logging for only the Service submodule
|
|
*/
|
|
#define ROUTER_SUBMODULE_MASK_SERVICE (0x0002)
|
|
/*i \ingroup ROUTERLogModule
|
|
Mask for turning on logging for only the CfgManager submodule
|
|
*/
|
|
#define ROUTER_SUBMODULE_MASK_CONFIG (0x0003)
|
|
/*i \ingroup ROUTERLogModule
|
|
Mask for turning on logging for all submoudles
|
|
*/
|
|
#define ROUTER_SUBMODULE_MASK_ALL RTI_LOG_SUBMODULE_MASK_ALL
|
|
|
|
extern ROUTERDllVariable
|
|
const struct RTILogMessage RTI_SERVICE_LOG_UNSUPPORTED_RESOURCE;
|
|
|
|
extern ROUTERDllVariable
|
|
const struct RTILogMessage RTI_SERVICE_LOG_UNKNOWN_RESOURCE_ss;
|
|
|
|
extern ROUTERDllVariable
|
|
const struct RTILogMessage RTI_SERVICE_LOG_MALFORMED_RESOURCE_IDENTIFIER_s;
|
|
|
|
extern ROUTERDllVariable
|
|
const struct RTILogMessage RTI_SERVICE_LOG_REMOTE_SERVICE_UNSUPPORTED_COMMAND_s;
|
|
|
|
extern ROUTERDllVariable
|
|
const struct RTILogMessage RTI_SERVICE_LOG_REMOTE_SERVICE_UNSUPPORTED_COMMAND_ss;
|
|
|
|
extern ROUTERDllVariable
|
|
const struct RTILogMessage RTI_SERVICE_LOG_REMOTE_SERVICE_UNKNOWN_COMMAND_d;
|
|
|
|
extern ROUTERDllVariable
|
|
const struct RTILogMessage RTI_SERVICE_LOG_REMOTE_SERVICE_COMMAND_FAILURE_s;
|
|
|
|
extern ROUTERDllVariable
|
|
const struct RTILogMessage ROUTER_LOG_ATTACH_ADAPTER_FAILURE_s;
|
|
|
|
extern ROUTERDllVariable
|
|
const struct RTILogMessage RTI_SERVICE_LOG_RUNTIME_PROPERTY_ssssssssL;
|
|
|
|
/*i \ingroup ROUTERLogModule
|
|
* formats supported for the resource part of the Advlog Context
|
|
*/
|
|
typedef enum {
|
|
ROUTER_ADVLOG_STANDARD_RESOURCE_FORMAT,
|
|
ROUTER_ADVLOG_SHORT_RESOURCE_FORMAT
|
|
} ROUTERAdvlogResourceFormatKind;
|
|
|
|
extern ROUTERDllExport
|
|
void ROUTERServiceAdvlog_setResourceFormatKind(
|
|
ROUTERAdvlogResourceFormatKind formatKind);
|
|
|
|
/*
|
|
* --- ADVLOG Activities ------------------------------------------------------
|
|
*/
|
|
|
|
#define DEFINE_MODULE_NUMBER_EXP(MODULE_NS_VALUE) \
|
|
MODULE_ ## MODULE_NS_VALUE
|
|
|
|
#define DEFINE_MODULE_NUMBER(MODULE_NS_VALUE) \
|
|
DEFINE_MODULE_NUMBER_EXP(MODULE_NS_VALUE)
|
|
|
|
#define RTI_ADVLOG_CONTEXT_DECLARE(DLL_EXPORT, CONTEXT_NAME) \
|
|
extern DLL_EXPORT const struct ADVLOGContextTemplate CONTEXT_NAME
|
|
|
|
#define RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(CONTEXT_NAME) \
|
|
RTI_ADVLOG_CONTEXT_DECLARE(ROUTERDllVariable, CONTEXT_NAME)
|
|
|
|
#define RTI_ADVLOG_CONTEXT_DEFINE(CONTEXT_NAME, STRING, MESSAGE_ID) \
|
|
const struct ADVLOGContextTemplate CONTEXT_NAME = { \
|
|
PRODUCT_WAVEWORKS|DEFINE_MODULE_NUMBER(MODULE_NS)|(MESSAGE_ID), \
|
|
(STRING) \
|
|
}
|
|
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_CREATE);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_DELETE);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_ENABLE);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_DISABLE);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_PAUSE);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_RUN);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_ADD_s);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_REMOVE_s);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_START);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_STOP);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_START_s);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_STOP_s);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_RESUME_s);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_SUSPEND_s);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_PUBLISH_s);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_PERIODIC_s);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_REMOTE_GET);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_REMOTE_CREATE);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_REMOTE_DELETE);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_REMOTE_UPDATE);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_REMOTE_UNKNOWN);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_ON_STREAM_DISCOVERED_s);
|
|
RTI_ROUTER_ADVLOG_CONTEXT_DECLARE(RTI_SERVICE_ACTIVITY_ON_STREAM_DISPOSED_s);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif /* routingservice_log_h */
|