dpkg 1.21.11
Data Structures | Macros | Enumerations | Functions
Error message reporting
Collaboration diagram for Error message reporting:

Data Structures

struct  dpkg_error
 

Macros

#define DPKG_ERROR_INIT   { DPKG_MSG_NONE, 0, NULL }
 
#define DPKG_ERROR_OBJECT   (struct dpkg_error)DPKG_ERROR_INIT
 

Enumerations

enum  dpkg_msg_type { DPKG_MSG_NONE , DPKG_MSG_WARN , DPKG_MSG_ERROR }
 

Functions

bool dpkg_has_error (struct dpkg_error *err)
 
int dpkg_put_warn (struct dpkg_error *err, const char *fmt,...) DPKG_ATTR_PRINTF(2)
 
int dpkg_put_error (struct dpkg_error *err, const char *fmt,...) DPKG_ATTR_PRINTF(2)
 
int dpkg_put_errno (struct dpkg_error *err, const char *fmt,...) DPKG_ATTR_PRINTF(2)
 
void dpkg_error_print (struct dpkg_error *err, const char *fmt,...) DPKG_ATTR_PRINTF(2)
 
void dpkg_error_move (struct dpkg_error *dst, struct dpkg_error *src)
 
void dpkg_error_destroy (struct dpkg_error *err)
 

Detailed Description

Macro Definition Documentation

◆ DPKG_ERROR_INIT

#define DPKG_ERROR_INIT   { DPKG_MSG_NONE, 0, NULL }

◆ DPKG_ERROR_OBJECT

#define DPKG_ERROR_OBJECT   (struct dpkg_error)DPKG_ERROR_INIT

Enumeration Type Documentation

◆ dpkg_msg_type

Enumerator
DPKG_MSG_NONE 
DPKG_MSG_WARN 
DPKG_MSG_ERROR 

Function Documentation

◆ dpkg_error_destroy()

void dpkg_error_destroy ( struct dpkg_error err)

References DPKG_MSG_NONE, str, syserrno, and type.

Referenced by cmpversions(), and parsedb_close().

Here is the caller graph for this function:

◆ dpkg_error_move()

void dpkg_error_move ( struct dpkg_error dst,
struct dpkg_error src 
)

References DPKG_MSG_NONE, str, and type.

◆ dpkg_error_print()

void dpkg_error_print ( struct dpkg_error err,
const char *  fmt,
  ... 
)

References args, DPKG_MSG_WARN, m_vasprintf(), ohshit(), str, type, and warning().

Referenced by cmpversions(), and parse_filehash().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dpkg_has_error()

bool dpkg_has_error ( struct dpkg_error err)

References DPKG_MSG_NONE, and type.

◆ dpkg_put_errno()

int dpkg_put_errno ( struct dpkg_error err,
const char *  fmt,
  ... 
)

References args, and DPKG_MSG_ERROR.

Referenced by file_slurp().

Here is the caller graph for this function:

◆ dpkg_put_error()

int dpkg_put_error ( struct dpkg_error err,
const char *  fmt,
  ... 
)

References args, and DPKG_MSG_ERROR.

Referenced by pkg_spec_find_pkg(), and pkg_spec_parse_pkg().

Here is the caller graph for this function:

◆ dpkg_put_warn()

int dpkg_put_warn ( struct dpkg_error err,
const char *  fmt,
  ... 
)

References args, and DPKG_MSG_WARN.