5
0
mirror of git://git.proxmox.com/git/proxmox-backup-qemu.git synced 2025-03-12 04:58:26 +03:00

update current-api.h

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2022-04-26 15:59:58 +02:00 committed by Thomas Lamprecht
parent 50ed6b7ea3
commit e9f9c66684

View File

@ -74,9 +74,11 @@ const char *proxmox_backup_snapshot_string(const char *backup_type,
char **error);
/**
* Create a new instance
* DEPRECATED: Create a new instance in the root namespace.
*
* Uses `PROXMOX_BACKUP_DEFAULT_CHUNK_SIZE` if `chunk_size` is zero.
*
* Deprecated in favor of `proxmox_backup_new_ns` which includes a namespace parameter.
*/
struct ProxmoxBackupHandle *proxmox_backup_new(const char *repo,
const char *backup_id,
@ -91,6 +93,27 @@ struct ProxmoxBackupHandle *proxmox_backup_new(const char *repo,
const char *fingerprint,
char **error);
/**
* Create a new instance.
*
* `backup_ns` may be NULL and defaults to the root namespace.
*
* Uses `PROXMOX_BACKUP_DEFAULT_CHUNK_SIZE` if `chunk_size` is zero.
*/
struct ProxmoxBackupHandle *proxmox_backup_new_ns(const char *repo,
const char *backup_ns,
const char *backup_id,
uint64_t backup_time,
uint64_t chunk_size,
const char *password,
const char *keyfile,
const char *key_password,
const char *master_keyfile,
bool compress,
bool encrypt,
const char *fingerprint,
char **error);
/**
* Open connection to the backup server (sync)
*
@ -270,7 +293,11 @@ void proxmox_backup_finish_async(struct ProxmoxBackupHandle *handle,
void proxmox_backup_disconnect(struct ProxmoxBackupHandle *handle);
/**
* Connect the the backup server for restore (sync)
* DEPRECATED: Connect the the backup server for restore (sync)
*
* Deprecated in favor of `proxmox_restore_new_ns` which includes a namespace parameter.
* Also, it used "lossy" utf8 decoding on the snapshot name which is not the case in the new
* version anymore.
*/
struct ProxmoxRestoreHandle *proxmox_restore_new(const char *repo,
const char *snapshot,
@ -280,6 +307,18 @@ struct ProxmoxRestoreHandle *proxmox_restore_new(const char *repo,
const char *fingerprint,
char **error);
/**
* Connect the the backup server for restore (sync)
*/
struct ProxmoxRestoreHandle *proxmox_restore_new_ns(const char *repo,
const char *snapshot,
const char *namespace_,
const char *password,
const char *keyfile,
const char *key_password,
const char *fingerprint,
char **error);
/**
* Open connection to the backup server (sync)
*