File types.h

Defines

UCS_CONFIG_ARRAY_FIELD(_type, _array_name)

Structure type for array configuration. Should be used inside the configuration structure declaration.

Typedefs

typedef enum ucs_ternary_auto_value ucs_ternary_auto_value_t

Ternary logic or Auto value.

typedef enum ucs_on_off_auto_value ucs_on_off_auto_value_t

On/Off/Auto logic value.

typedef struct ucs_sock_addr ucs_sock_addr_t

BSD socket address specification.

typedef struct ucs_log_component_config ucs_log_component_config_t

Logging component.

Enums

enum ucs_log_level_t

Copyright (C) Mellanox Technologies Ltd. 2001-2019. ALL RIGHTS RESERVED.

See file LICENSE for terms. Logging levels.

Values:

enumerator UCS_LOG_LEVEL_FATAL
enumerator UCS_LOG_LEVEL_ERROR
enumerator UCS_LOG_LEVEL_WARN
enumerator UCS_LOG_LEVEL_DIAG
enumerator UCS_LOG_LEVEL_INFO
enumerator UCS_LOG_LEVEL_DEBUG
enumerator UCS_LOG_LEVEL_TRACE
enumerator UCS_LOG_LEVEL_TRACE_REQ
enumerator UCS_LOG_LEVEL_TRACE_DATA
enumerator UCS_LOG_LEVEL_TRACE_ASYNC
enumerator UCS_LOG_LEVEL_TRACE_FUNC
enumerator UCS_LOG_LEVEL_TRACE_POLL
enumerator UCS_LOG_LEVEL_LAST
enumerator UCS_LOG_LEVEL_PRINT
enum ucs_async_mode_t

Async progress mode.

Values:

enumerator UCS_ASYNC_MODE_SIGNAL
enumerator UCS_ASYNC_MODE_THREAD
enumerator UCS_ASYNC_MODE_THREAD_SPINLOCK
enumerator UCS_ASYNC_MODE_THREAD_MUTEX
enumerator UCS_ASYNC_MODE_POLL
enumerator UCS_ASYNC_MODE_LAST
enum ucs_ternary_auto_value

Ternary logic or Auto value.

Values:

enumerator UCS_NO
enumerator UCS_YES
enumerator UCS_TRY
enumerator UCS_AUTO
enumerator UCS_TERNARY_LAST
enum ucs_on_off_auto_value

On/Off/Auto logic value.

Values:

enumerator UCS_CONFIG_OFF
enumerator UCS_CONFIG_ON
enumerator UCS_CONFIG_AUTO
enumerator UCS_CONFIG_ON_OFF_LAST
enum ucs_handle_error_t

Error handling modes

Values:

enumerator UCS_HANDLE_ERROR_BACKTRACE
enumerator UCS_HANDLE_ERROR_FREEZE
enumerator UCS_HANDLE_ERROR_DEBUG
enumerator UCS_HANDLE_ERROR_NONE
enumerator UCS_HANDLE_ERROR_LAST
enum ucs_config_print_flags_t

Configuration printing flags

Values:

enumerator UCS_CONFIG_PRINT_CONFIG
enumerator UCS_CONFIG_PRINT_HEADER
enumerator UCS_CONFIG_PRINT_DOC
enumerator UCS_CONFIG_PRINT_HIDDEN
enumerator UCS_CONFIG_PRINT_COMMENT_DEFAULT
enum ucs_config_allow_list_mode_t

Enum for representing possible modes of an “allow-list”

Values:

enumerator UCS_CONFIG_ALLOW_LIST_ALLOW_ALL
enumerator UCS_CONFIG_ALLOW_LIST_ALLOW
enumerator UCS_CONFIG_ALLOW_LIST_NEGATE

Variables

const char *ucs_async_mode_names[]
struct ucs_config_allow_list_t
#include <types.h>

Public Members

ucs_config_names_array_t array
ucs_config_allow_list_mode_t mode
struct ucs_sock_addr
#include <types.h>

BSD socket address specification.

Public Members

const struct sockaddr *addr

Pointer to socket address

socklen_t addrlen

Address length

struct ucs_log_component_config
#include <types.h>

Logging component.

Public Members

ucs_log_level_t log_level
char name[16]
const char *file_filter