From d7d077a377811f2ce2381d47ae402b9681bde34a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 27 Jul 2011 23:18:25 +0200 Subject: [PATCH] xbps_api.h: fixed some comments. --- include/xbps_api.h | 60 ++++++++++++++++++++++++++++------------------ 1 file changed, 37 insertions(+), 23 deletions(-) diff --git a/include/xbps_api.h b/include/xbps_api.h index 162d6ad7..0bc2a0c0 100644 --- a/include/xbps_api.h +++ b/include/xbps_api.h @@ -148,15 +148,25 @@ void xbps_warn_printf(const char *, ...); * * XBPS_TRANS_STATE_UKKNOWN: unknown, transaction hasn't been * prepared or some unknown error ocurred. + * * XBPS_TRANS_STATE_DOWNLOAD: a binary package is being downloaded. + * * XBPS_TRANS_STATE_VERIFY: a binary package is being verified. + * * XBPS_TRANS_STATE_REMOVE: a package is being removed. + * * XBPS_TRANS_STATE_PURGE: a package is being purged. + * * XBPS_TRANS_STATE_REPLACE: a package is being replaced. + * * XBPS_TRANS_STATE_INSTALL: a package is being installed. + * * XBPS_TRANS_STATE_UPDATE: a package is being updated. + * * XBPS_TRANS_STATE_UNPACK: a package is being unpacked. + * * XBPS_TRANS_STATE_CONFIGURE: a package is being configured. + * * XBPS_TRANS_STATE_REGISTER: a package is being registered. */ typedef enum trans_state { @@ -182,37 +192,38 @@ struct xbps_transaction_cb_data { /** * @var state * - * Transaction's state (read-only). + * Transaction's state (set internally, read-only). */ trans_state_t state; /** * @var desc * - * Transaction's string description (read-only). + * Transaction's string description (set internally, read-only). */ const char *desc; /** * @var pkgver * - * Transaction's current pkgname/version string (read-only). + * Transaction's current pkgname/version string + * (set internally, read-only). */ const char *pkgver; /** * @var binpkg_fname * - * Binary package's filename (read-only). + * Binary package's filename (set internally, read-only). */ const char *binpkg_fname; /** * @var binpkg_repourl * - * Binary package's repository URL (read-only). + * Binary package's repository URL (set internally, read-only). */ const char *binpkg_repourl; /** * @var err * - * Transaction error value (read-only). + * Transaction error value (set internally, read-only). */ int err; /** @@ -238,47 +249,48 @@ struct xbps_fetch_cb_data { * @var file_size * * Filename size for the file to be fetched (set internally, - * read only). + * read-only). */ off_t file_size; /** * @var file_offset * * Current offset for the filename being fetched (set internally, - * read only). + * read-only). */ off_t file_offset; /** * @var file_dloaded * - * Bytes downloaded for the file being fetched (set internally). + * Bytes downloaded for the file being fetched + * (set internally, read-only). */ off_t file_dloaded; /** * @var file_name * - * File name being fetched (set internally, read only). + * File name being fetched (set internally, read-only). */ const char *file_name; /** * @var cb_start * * If true the function callback should be prepared to start - * the transfer progress (set internally, read only). + * the transfer progress (set internally, read-only). */ bool cb_start; /** - * var cb_update + * @var cb_update * * If true the function callback should be prepared to - * update the transfer progress (set internally, read only). + * update the transfer progress (set internally, read-only). */ bool cb_update; /** - * var cb_end + * @var cb_end * * If true the function callback should be prepated to - * end the transfer progress (set internally, read only). + * end the transfer progress (set internally, read-only). */ bool cb_end; /** @@ -303,39 +315,39 @@ struct xbps_unpack_cb_data { /** * @var entry * - * Entry pathname string (set internally, read only). + * Entry pathname string (set internally, read-only). */ const char *entry; /** * @var entry_size * - * Entry file size (set internally, read only). + * Entry file size (set internally, read-only). */ int64_t entry_size; /** * @var entry_extract_count * - * Total number of extracted entries (set internally, read only). + * Total number of extracted entries (set internally, read-only). */ ssize_t entry_extract_count; /** * @var entry_total_count * - * Total number of entries in package (set internally, read only). + * Total number of entries in package (set internally, read-only). */ ssize_t entry_total_count; /** * @var entry_is_metadata * * If true "entry" is a package metadata file (set internally, - * read only). + * read-only). */ bool entry_is_metadata; /** * @var entry_is_conf * * If true "entry" is a configuration file (set internally, - * read only). + * read-only). */ bool entry_is_conf; /** @@ -431,8 +443,10 @@ struct xbps_handle { * @var flags * * Flags to be set globally, possible values: - * - XBPS_FLAG_VERBOSE - * - XBPS_FLAG_FORCE + * + * - XBPS_FLAG_VERBOSE + * + * - XBPS_FLAG_FORCE */ int flags; /**