Diagnostic log handling. More...
#include <sbgCommon.h>
#include <streamBuffer/sbgStreamBuffer.h>
#include "../protocol/sbgEComProtocol.h"
Go to the source code of this file.
Classes | |
struct | _SbgLogDiagData |
Macros | |
#define | SBG_ECOM_LOG_DIAG_MAX_STRING_SIZE (SBG_ECOM_MAX_PAYLOAD_SIZE - 6) |
Typedefs | |
typedef struct _SbgLogDiagData | SbgLogDiagData |
Functions | |
SbgErrorCode | sbgEComBinaryLogParseDiagData (SbgStreamBuffer *pInputStream, SbgLogDiagData *pOutputData) |
SbgErrorCode | sbgEComBinaryLogWriteDiagData (SbgStreamBuffer *pOutputStream, const SbgLogDiagData *pInputData) |
Diagnostic log handling.
Copyright (C) 2019, SBG Systems SAS. All rights reserved.
This source code is intended for use only by SBG Systems SAS and those that have explicit written permission to use it from SBG Systems SAS.
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
Definition in file sbgEComBinaryLogDiag.h.
#define SBG_ECOM_LOG_DIAG_MAX_STRING_SIZE (SBG_ECOM_MAX_PAYLOAD_SIZE - 6) |
Maximum size of the log string, in bytes.
Definition at line 37 of file sbgEComBinaryLogDiag.h.
typedef struct _SbgLogDiagData SbgLogDiagData |
Diagnostic log structure.
SbgErrorCode sbgEComBinaryLogParseDiagData | ( | SbgStreamBuffer * | pInputStream, |
SbgLogDiagData * | pOutputData | ||
) |
Parse data for SBG_ECOM_LOG_DIAG messages and fill the corresponding structure.
[in] | pInputStream | Input stream buffer to read the payload from. |
[out] | pOutputData | Pointer on the output structure that stores parsed data. |
Definition at line 12 of file sbgEComBinaryLogDiag.c.
SbgErrorCode sbgEComBinaryLogWriteDiagData | ( | SbgStreamBuffer * | pOutputStream, |
const SbgLogDiagData * | pInputData | ||
) |
Write data for SBG_ECOM_LOG_DIAG messages to the output stream buffer from the provided structure.
[out] | pOutputStream | Output stream buffer to write the payload to. |
[in] | pInputData | Pointer on the input structure that stores data to write. |
Definition at line 27 of file sbgEComBinaryLogDiag.c.