From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 571501FF0A7 for ; Wed, 02 Sep 2026 15:55:55 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 2627821628; Wed, 02 Sep 2026 15:55:46 +0200 (CEST) From: Fiona Ebner To: pve-devel@lists.proxmox.com Subject: [RFC proxmox-backup-qemu 5/9] update current-api.h Date: Wed, 2 Sep 2026 15:54:36 +0200 Message-ID: <20260902135536.525194-6-f.ebner@proxmox.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260902135536.525194-1-f.ebner@proxmox.com> References: <20260902135536.525194-1-f.ebner@proxmox.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Bm-Milter-Handled: 55990f41-d878-4baa-be0a-ee34c49e34d2 X-Bm-Transport-Timestamp: 1788357336075 X-SPAM-LEVEL: Spam detection results: 0 AWL 0.749 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) RCVD_IN_DNSWL_MED -2.3 Sender listed at https://www.dnswl.org/, medium trust SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Message-ID-Hash: MOKQA3DWE5R3VEL4BJOT66M26X626M7K X-Message-ID-Hash: MOKQA3DWE5R3VEL4BJOT66M26X626M7K X-MailFrom: f.ebner@proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Signed-off-by: Fiona Ebner --- current-api.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/current-api.h b/current-api.h index 60d7558..c7ebc49 100644 --- a/current-api.h +++ b/current-api.h @@ -155,7 +155,8 @@ void proxmox_backup_abort(struct ProxmoxBackupHandle *handle, const char *reason */ int proxmox_backup_check_incremental(struct ProxmoxBackupHandle *handle, const char *device_name, - uint64_t size); + uint64_t size, + const char *target_id); /** * Register a backup image (sync) @@ -163,6 +164,7 @@ int proxmox_backup_check_incremental(struct ProxmoxBackupHandle *handle, int proxmox_backup_register_image(struct ProxmoxBackupHandle *handle, const char *device_name, uint64_t size, + const char *target_id, bool incremental, char **error); @@ -176,6 +178,7 @@ int proxmox_backup_register_image(struct ProxmoxBackupHandle *handle, void proxmox_backup_register_image_async(struct ProxmoxBackupHandle *handle, const char *device_name, uint64_t size, + const char *target_id, bool incremental, void (*callback)(void*), void *callback_data, @@ -431,13 +434,13 @@ void proxmox_restore_read_image_at_async(struct ProxmoxRestoreHandle *handle, * Length of the returned buffer is written to buf_size. Returned buffer must * be freed with proxmox_free_state_buf. */ -uint8_t *proxmox_export_state(uintptr_t *buf_size); +uint8_t *proxmox_export_state(uintptr_t *buf_size, bool per_target_bitmaps); /** * Load state serialized by proxmox_export_state. If loading fails, a message * will be logged to stderr, but the function will not fail. */ -void proxmox_import_state(const uint8_t *buf, uintptr_t buf_size); +void proxmox_import_state(const uint8_t *buf, uintptr_t buf_size, bool per_target_bitmaps); /** * Free a buffer acquired from proxmox_export_state. -- 2.47.3