Files
swupd-client/include/swupd-error.h
T
Patrick McCarty 2b5063fa13 Consolidate several initialization steps into swupd_init()
Since most of these checks are used by all subcommands, and are written
in slightly different ways, move all of the checks into swupd_init() to
do the checks in one place and prevent misordering of these calls.

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
2016-04-13 11:52:12 -07:00

25 lines
1.3 KiB
C

#ifndef __INCLUDE_GUARD_SWUPD_ERROR_H
#define __INCLUDE_GUARD_SWUPD_ERROR_H
#define EBUNDLE_MISMATCH 2 /* at least one local bundle mismatches from MoM */
#define EBUNDLE_REMOVE 3 /* cannot delete local bundle filename */
#define EMOM_NOTFOUND 4 /* MoM cannot be loaded into memory (this could imply network issue) */
#define ETYPE_CHANGED_FILE_RM 5 /* do_staging() couldn't delete a file which must be deleted */
#define EDIR_OVERWRITE 6 /* do_staging() couldn't overwrite a directory */
#define EDOTFILE_WRITE 7 /* do_staging() couldn't create a dotfile */
#define ERECURSE_MANIFEST 8 /* error while recursing a manifest */
#define ELOCK_FILE 9 /* cannot get the lock */
#define EPREP_MOUNT 10 /* failed to prepare mount points */
#define ECURL_INIT 11 /* cannot initialize curl agent */
#define EINIT_GLOBALS 12 /* cannot initialize globals */
#define EBUNDLE_NOT_TRACKED 13 /* bundle is not tracked on the system */
#define EMANIFEST_LOAD 14 /* cannot load manifest into memory */
#define EINVALID_OPTION 15 /* invalid command option */
#define ENOSWUPDSERVER 16 /* no net connection to swupd server */
#define EFULLDOWNLOAD 17 /* full_download problem */
#define ENET404 404 /* download 404'd */
#define EBUNDLE_INSTALL 18 /* Cannot install bundles */
#define EREQUIRED_DIRS 19 /* Cannot create required dirs */
#endif