index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Jonathan Conder <jonno.conder@gmail.com> | 2011-10-29 15:03:24 +1300 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-11-14 08:54:03 -0600 |
commit | a3f9399295e6c94b7f8f8249d4a6b28e63fd2dbb (patch) | |
tree | 6d72f08e73177a8f33661387e4381126db4f2dba /lib/libalpm/alpm.h | |
parent | 1de5070bb39e56ee9ce381b0cc40752eaed60783 (diff) |
-rw-r--r-- | lib/libalpm/alpm.h | 10 |
diff --git a/lib/libalpm/alpm.h b/lib/libalpm/alpm.h index 9fda9406..9b2d8a92 100644 --- a/lib/libalpm/alpm.h +++ b/lib/libalpm/alpm.h @@ -1115,7 +1115,7 @@ char *alpm_compute_sha256sum(const char *filename); /** @addtogroup alpm_api_errors Error Codes * @{ */ -enum _alpm_errno_t { +typedef enum _alpm_errno_t { ALPM_ERR_MEMORY = 1, ALPM_ERR_SYSTEM, ALPM_ERR_BADPERMS, @@ -1179,19 +1179,19 @@ enum _alpm_errno_t { ALPM_ERR_LIBCURL, ALPM_ERR_EXTERNAL_DOWNLOAD, ALPM_ERR_GPGME -}; +} alpm_errno_t; /** Returns the current error code from the handle. */ -enum _alpm_errno_t alpm_errno(alpm_handle_t *handle); +alpm_errno_t alpm_errno(alpm_handle_t *handle); /** Returns the string corresponding to an error number. */ -const char *alpm_strerror(enum _alpm_errno_t err); +const char *alpm_strerror(alpm_errno_t err); /* End of alpm_api_errors */ /** @} */ alpm_handle_t *alpm_initialize(const char *root, const char *dbpath, - enum _alpm_errno_t *err); + alpm_errno_t *err); int alpm_release(alpm_handle_t *handle); enum alpm_caps { |