$darkmode
Elektra 0.11.0
Functions
kdberrors.h File Reference

Provides all macros and definitions which are used for emitting error or warnings. More...

#include <kdb.h>
#include <kdbhelper.h>
#include <kdblogger.h>
#include <kdbmacros.h>
Include dependency graph for kdberrors.h:
This graph shows which files directly or indirectly include this file:

Functions

void elektraCopyError (Key *target, Key *source)
 Copy the error from the source key to target key. More...
 
void elektraCopyWarnings (Key *target, Key *source)
 Copy the warnings from the source key to target key. More...
 
void elektraCopyErrorAndWarnings (Key *target, Key *source)
 Copies the error and warnings from the source key to the target key. More...
 

Detailed Description

Provides all macros and definitions which are used for emitting error or warnings.

Function Documentation

◆ elektraCopyError()

void elektraCopyError ( Key *  target,
Key *  source 
)

Copy the error from the source key to target key.

Parameters
targetappend error to this key
sourcecopy error from this key

◆ elektraCopyErrorAndWarnings()

void elektraCopyErrorAndWarnings ( Key *  target,
Key *  source 
)

Copies the error and warnings from the source key to the target key.

Note that only 100 warnings can be had. If we exceed that, we'll override the existing warnings in the target key

Parameters
targetcopy error and warnings to this key
sourcecopy error and warnings from this key

◆ elektraCopyWarnings()

void elektraCopyWarnings ( Key *  target,
Key *  source 
)

Copy the warnings from the source key to target key.

Note that only 100 warnings can be had. If we exceed that, we'll override the existing warnings in the target key.

Parameters
targetappend warnings to this key
sourcecopy warnings from this key