5
0
mirror of git://git.proxmox.com/git/proxmox-backup-qemu.git synced 2025-01-18 10:03:51 +03:00

simpletest: Fix build after API change

This was broken long ago, first with 3edf5d1 AFAICT.
Also fixes the make dependency of `simpletest` on `build`, so that `make
simpletest` works on a fresh checkout.

Fixes: 3edf5d1 ("add compress and encrypt paramaters")
Fixes: d8aa155 ("api: add master key support")
Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
This commit is contained in:
Christoph Heiss 2023-01-12 11:35:17 +01:00 committed by Wolfgang Bumiller
parent 06e919aba5
commit f8f36b89fd
2 changed files with 5 additions and 2 deletions

View File

@ -44,6 +44,8 @@ $(MAIN_DEB): build
cd build; dpkg-buildpackage -b -us -uc --no-pre-clean cd build; dpkg-buildpackage -b -us -uc --no-pre-clean
lintian $(DEBS) lintian $(DEBS)
proxmox-backup-qemu.h: build
simpletest: simpletest.c proxmox-backup-qemu.h simpletest: simpletest.c proxmox-backup-qemu.h
gcc simpletest.c -o simpletest -lc -Wl,-rpath=./target/$(BUILD_MODE) -L ./target/$(BUILD_MODE) -l proxmox_backup_qemu gcc simpletest.c -o simpletest -lc -Wl,-rpath=./target/$(BUILD_MODE) -L ./target/$(BUILD_MODE) -l proxmox_backup_qemu

View File

@ -24,8 +24,9 @@ void main(int argc, char **argv) {
char *fingerprint = getenv("PBS_FINGERPRINT"); char *fingerprint = getenv("PBS_FINGERPRINT");
ProxmoxBackupHandle *pbs = proxmox_backup_new ProxmoxBackupHandle *pbs = proxmox_backup_new(
(repository, backup_id, backup_time, PROXMOX_BACKUP_DEFAULT_CHUNK_SIZE, password, NULL, NULL, fingerprint, &pbs_error); repository, backup_id, backup_time, PROXMOX_BACKUP_DEFAULT_CHUNK_SIZE,
password, NULL, NULL, NULL, false, false, fingerprint, &pbs_error);
if (pbs == NULL) { if (pbs == NULL) {
fprintf(stderr, "proxmox_backup_new failed - %s\n", pbs_error); fprintf(stderr, "proxmox_backup_new failed - %s\n", pbs_error);