libxbps: revamped trans states/cb to be more generic, not just for transactions.
This commit is contained in:
@@ -4,7 +4,7 @@ TOPDIR = ../..
|
||||
BIN = xbps-repo
|
||||
OBJS = main.o index.o show.o find-files.o
|
||||
OBJS += ../xbps-bin/fetch_cb.o ../xbps-bin/util.o
|
||||
OBJS += ../xbps-bin/trans_cb.o
|
||||
OBJS += ../xbps-bin/state_cb.o
|
||||
MAN = $(BIN).8
|
||||
|
||||
include $(TOPDIR)/bin/prog.mk
|
||||
|
@@ -138,8 +138,7 @@ main(int argc, char **argv)
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
xhp->debug = debug;
|
||||
xhp->xbps_transaction_cb = transaction_cb;
|
||||
xhp->xbps_transaction_err_cb = transaction_err_cb;
|
||||
xhp->xbps_state_cb = state_cb;
|
||||
xhp->xbps_fetch_cb = fetch_file_progress_cb;
|
||||
xhp->xfcd->cookie = &xfer;
|
||||
if (rootdir)
|
||||
|
Reference in New Issue
Block a user