xbps-{install,remove}: implemented column/wide output mode.

See https://github.com/voidlinux/xbps/issues/63 for info.

Close #63
This commit is contained in:
Juan RP
2014-10-30 11:23:10 +01:00
parent 3f7cd86d9d
commit b179c16fc0
4 changed files with 170 additions and 55 deletions

View File

@@ -34,6 +34,17 @@ struct xferstat {
struct timeval last;
};
struct transaction {
struct xbps_handle *xhp;
xbps_dictionary_t d;
xbps_object_iterator_t iter;
uint32_t inst_pkgcnt;
uint32_t up_pkgcnt;
uint32_t cf_pkgcnt;
uint32_t rm_pkgcnt;
uint32_t dl_pkgcnt;
};
/* from transaction.c */
int install_new_pkg(struct xbps_handle *, const char *, bool);
int update_pkg(struct xbps_handle *, const char *);
@@ -52,6 +63,7 @@ int state_cb(const struct xbps_state_cb_data *, void *);
/* From util.c */
void print_package_line(const char *, int, bool);
bool print_trans_colmode(struct transaction *, int);
int get_maxcols(void);
#endif /* !_XBPS_INSTALL_DEFS_H_ */