dpkg 1.21.11
Data Structures | Macros | Enumerations | Functions
error.h File Reference

(2385d08c1)

#include <stdbool.h>
#include <dpkg/macros.h>
Include dependency graph for error.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

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)