Skip to content

Posix platform

File SolidSyslogPosixMessageQueueBufferErrors.h

FileList > Interface > SolidSyslogPosixMessageQueueBufferErrors.h

Error codes and Source identity for the PosixMessageQueueBuffer adapter.

  • #include <stdint.h>
  • #include "SolidSyslogExternC.h"

Public Types Documentation

SolidSyslogPosixMessageQueueBufferErrors

Detail codes for events whose Source is SolidSyslogPosixMessageQueueBufferErrorSource.

enum SolidSyslogPosixMessageQueueBufferErrors {
    SOLIDSYSLOG_POSIX_MESSAGE_QUEUE_BUFFER_ERROR_POOL_EXHAUSTED,
    SOLIDSYSLOG_POSIX_MESSAGE_QUEUE_BUFFER_ERROR_UNKNOWN_DESTROY,
    SOLIDSYSLOG_POSIX_MESSAGE_QUEUE_BUFFER_ERROR_MQ_OPEN_FAILED,
    SOLIDSYSLOG_POSIX_MESSAGE_QUEUE_BUFFER_ERROR_SEND_FAILED,
    SOLIDSYSLOG_POSIX_MESSAGE_QUEUE_BUFFER_ERROR_RECEIVE_FAILED,
    SOLIDSYSLOG_POSIX_MESSAGE_QUEUE_BUFFER_ERROR_RECORD_REFUSED,
    SOLIDSYSLOG_POSIX_MESSAGE_QUEUE_BUFFER_ERROR_RECORDS_EVICTED,
    SOLIDSYSLOG_POSIX_MESSAGE_QUEUE_BUFFER_ERROR_NULL_MUTEX,
    SOLIDSYSLOG_POSIX_MESSAGE_QUEUE_BUFFER_ERROR_MAX
};

A handler reads these off event->Detail after matching event->Source; the members name their own fault (MQ_OPEN at Create, SEND on enqueue, RECEIVE on drain).


Public Attributes Documentation

SolidSyslogPosixMessageQueueBufferErrorSource

Identity for events raised by a PosixMessageQueueBuffer.

const struct SolidSyslogErrorSource SolidSyslogPosixMessageQueueBufferErrorSource;

A handler matches by address (event->Source == &SolidSyslogPosixMessageQueueBufferErrorSource), then reads event->Detail as an enum SolidSyslogPosixMessageQueueBufferErrors.


Public Functions Documentation

SolidSyslogPosixMessageQueueBufferErrors_Name

The detail's name, read beside the category's: MQ_OPEN_FAILED for SOLIDSYSLOG_POSIX_MESSAGE_QUEUE_BUFFER_ERROR_MQ_OPEN_FAILED.

const char * SolidSyslogPosixMessageQueueBufferErrors_Name (
    int32_t detail
) 

NULL for a code outside the enum.



The documentation for this class was generated from the following file Platform/Posix/Interface/SolidSyslogPosixMessageQueueBufferErrors.h