Diffusion C API 6.13.0
Loading...
Searching...
No Matches
error_types.h File Reference

Types and structures relating to reported errors. More...

Data Structures

struct  diffusion_error_s
 A structure which is filled by the API when an error occurs. More...

Typedefs

typedef struct diffusion_error_s DIFFUSION_ERROR_T
 A structure which is filled by the API when an error occurs.

Enumerations

enum  ERROR_CODE_T {
}
 Errors which can be raised by API functions. More...

Functions

DIFFUSION_ERROR_T * diffusion_error_dup (const DIFFUSION_ERROR_T *error)
 Create a duplicate of the error.
void diffusion_error_free (DIFFUSION_ERROR_T *error)
 Free a memory allocated DIFFUSION_ERROR_T.

Detailed Description

Types and structures relating to reported errors.

Copyright © 2014 - 2026 DiffusionData Ltd., All Rights Reserved.

Use is subject to licence terms.

NOTICE: All information contained herein is, and remains the property of DiffusionData. The intellectual and technical concepts contained herein are proprietary to DiffusionData and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret or copyright law.

Enumeration Type Documentation

◆ ERROR_CODE_T

Errors which can be raised by API functions.

Codes 310 to 319 report a rejected HTTP redirect: the connection attempt ends and is not retried, and a reconnecting session closes.

Enumerator
DIFF_ERR_REDIRECT_MISSING_LOCATION 
Since
6.13
DIFF_ERR_INVALID_REDIRECT_LOCATION 
Since
6.13
Deprecated
since 6.14. Never returned: libwebsockets' URI parser accepts every Location.
DIFF_ERR_REDIRECT_FAILED 
Since
6.13
DIFF_ERR_REDIRECT_UNSUPPORTED_STATUS 
Since
6.14
DIFF_ERR_REDIRECT_INSECURE 
Since
6.14

Function Documentation

◆ diffusion_error_dup()

DIFFUSION_ERROR_T * diffusion_error_dup ( const DIFFUSION_ERROR_T * error)

Create a duplicate of the error.

To free the created error, use diffusion_error_free.

Parameters
errorthe error to be duplicated
Returns
the duplicated error.

◆ diffusion_error_free()

void diffusion_error_free ( DIFFUSION_ERROR_T * error)

Free a memory allocated DIFFUSION_ERROR_T.

Parameters
errorto be freed.