all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Christoph Heiss <c.heiss@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup-qemu] simpletest: Fix build after API change
Date: Thu, 12 Jan 2023 11:35:17 +0100	[thread overview]
Message-ID: <20230112103516.294402-1-c.heiss@proxmox.com> (raw)

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





             reply	other threads:[~2023-01-12 10:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-12 10:35 Christoph Heiss [this message]
2023-01-12 12:35 ` [pbs-devel] applied: " Wolfgang Bumiller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230112103516.294402-1-c.heiss@proxmox.com \
    --to=c.heiss@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal