public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [pbs-devel] [PATCH proxmox-backup-qemu] simpletest: Fix build after API change
@ 2023-01-12 10:35 Christoph Heiss
  2023-01-12 12:35 ` [pbs-devel] applied: " Wolfgang Bumiller
  0 siblings, 1 reply; 2+ messages in thread
From: Christoph Heiss @ 2023-01-12 10:35 UTC (permalink / raw)
  To: pbs-devel

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>
---
 Makefile     | 2 ++
 simpletest.c | 5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index ec6bc12..5fe9bc5 100644
--- a/Makefile
+++ b/Makefile
@@ -44,6 +44,8 @@ $(MAIN_DEB): build
 	cd build; dpkg-buildpackage -b -us -uc --no-pre-clean
 	lintian $(DEBS)

+proxmox-backup-qemu.h: build
+
 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

diff --git a/simpletest.c b/simpletest.c
index 9d00a80..ceb5afd 100644
--- a/simpletest.c
+++ b/simpletest.c
@@ -24,8 +24,9 @@ void main(int argc, char **argv) {

   char *fingerprint = getenv("PBS_FINGERPRINT");

-  ProxmoxBackupHandle *pbs = proxmox_backup_new
-    (repository, backup_id, backup_time, PROXMOX_BACKUP_DEFAULT_CHUNK_SIZE, password, NULL, NULL, fingerprint, &pbs_error);
+  ProxmoxBackupHandle *pbs = proxmox_backup_new(
+    repository, backup_id, backup_time, PROXMOX_BACKUP_DEFAULT_CHUNK_SIZE,
+    password, NULL, NULL, NULL, false, false, fingerprint, &pbs_error);

   if (pbs == NULL) {
     fprintf(stderr, "proxmox_backup_new failed - %s\n", pbs_error);
--
2.34.1





^ permalink raw reply	[flat|nested] 2+ messages in thread

* [pbs-devel] applied: [PATCH proxmox-backup-qemu] simpletest: Fix build after API change
  2023-01-12 10:35 [pbs-devel] [PATCH proxmox-backup-qemu] simpletest: Fix build after API change Christoph Heiss
@ 2023-01-12 12:35 ` Wolfgang Bumiller
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Bumiller @ 2023-01-12 12:35 UTC (permalink / raw)
  To: Christoph Heiss; +Cc: pbs-devel

applied, thanks




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-01-12 12:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-12 10:35 [pbs-devel] [PATCH proxmox-backup-qemu] simpletest: Fix build after API change Christoph Heiss
2023-01-12 12:35 ` [pbs-devel] applied: " Wolfgang Bumiller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal