libvdo
vdo-error.h File Reference

Definitions related to error reporting, e.g. error codes. More...

#include <glib.h>
Include dependency graph for vdo-error.h:

Go to the source code of this file.

Macros

#define VDO_ERROR   (vdo_error_quark())
 Vdo error domain.
 

Enumerations

enum  
 Vdo error codes. More...
 

Functions

gboolean vdo_error_is_expected (GError **error)
 Check if error is expected. More...
 

Detailed Description

Definitions related to error reporting, e.g. error codes.

Copyright (C) 2016-2019, Axis Communications AB, Lund

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Vdo error codes.

Enumerator
VDO_ERROR_NOT_FOUND 

The requested resource is not found.

VDO_ERROR_EXISTS 

The resource to be created already exists.

VDO_ERROR_INVALID_ARGUMENT 

Invalid argument.

VDO_ERROR_PERMISSION_DENIED 

Permission denied.

VDO_ERROR_NOT_SUPPORTED 

The operation is not supported.

VDO_ERROR_CLOSED 

The resource is closed.

VDO_ERROR_BUSY 

The resource is busy.

VDO_ERROR_IO 

I/O error.

VDO_ERROR_HAL 

Hardware Abstraction Layer error.

VDO_ERROR_DBUS 

D-Bus error.

VDO_ERROR_OOM 

Out-of-memory.

VDO_ERROR_IDLE 

Deprecated: Use VDO_ERROR_HAL instead.

VDO_ERROR_NO_DATA 

No data(EAGAIN).

VDO_ERROR_NO_BUFFER_SPACE 

Buffer is to small.

VDO_ERROR_BUFFER_FAILURE 

Buffer handling error.

VDO_ERROR_INTERFACE_DOWN 

D-Bus interface is shutdown.

VDO_ERROR_FAILED 

Generic failure.

VDO_ERROR_FATAL 

Fatal error.

VDO_ERROR_NOT_CONTROLLED 

Not controlled, no changes can be made

VDO_ERROR_NO_EVENT 

No event(EAGAIN).

Function Documentation

◆ vdo_error_is_expected()

gboolean vdo_error_is_expected ( GError **  error)

Check if error is expected.

Expected errors typically occur as a result of force stopping 'com.axis.Vdo1.System'. This class of errors should not be logged as failures, when they occur the recipient is expected to either silently recover or exit informing the user that vdo is currently unavailable.

Parameters
errora GError location.
Returns
whether error is expected