21#ifndef LIBDPKG_ERROR_H
22#define LIBDPKG_ERROR_H
49#define DPKG_ERROR_INIT { DPKG_MSG_NONE, 0, NULL }
51#define DPKG_ERROR_OBJECT (struct dpkg_error)DPKG_ERROR_INIT
void dpkg_error_print(struct dpkg_error *err, const char *fmt,...) DPKG_ATTR_PRINTF(2)
Definition error.c:94
bool dpkg_has_error(struct dpkg_error *err)
Definition error.c:52
dpkg_msg_type
Definition error.h:36
void dpkg_error_move(struct dpkg_error *dst, struct dpkg_error *src)
Definition error.c:112
void dpkg_error_destroy(struct dpkg_error *err)
Definition error.c:121
int dpkg_put_errno(struct dpkg_error *err, const char *fmt,...) DPKG_ATTR_PRINTF(2)
Definition error.c:82
int dpkg_put_warn(struct dpkg_error *err, const char *fmt,...) DPKG_ATTR_PRINTF(2)
Definition error.c:58
int dpkg_put_error(struct dpkg_error *err, const char *fmt,...) DPKG_ATTR_PRINTF(2)
Definition error.c:70
@ DPKG_MSG_ERROR
Definition error.h:39
@ DPKG_MSG_WARN
Definition error.h:38
@ DPKG_MSG_NONE
Definition error.h:37
#define DPKG_BEGIN_DECLS
Definition macros.h:164
#define DPKG_ATTR_PRINTF(n)
Definition macros.h:117
#define DPKG_END_DECLS
Definition macros.h:165
char * str
Definition error.h:46
int syserrno
Definition error.h:45
enum dpkg_msg_type type
Definition error.h:43