Pharos
0.7.23
Modern Web Framework & Web App Hosting Service.
Toggle main menu visibility
Loading...
Searching...
No Matches
native_backup_restore.h
Go to the documentation of this file.
1
/**
2
* @file
3
* @brief Declares native backup and restore report builders.
4
*/
5
6
#ifndef PHAROS_NATIVE_BACKUP_RESTORE_H
7
#define PHAROS_NATIVE_BACKUP_RESTORE_H
8
9
#include "
native_runtime_types.h
"
10
11
/** @name Backup and restore report helpers
12
* @{
13
*/
14
/**
15
* @brief Builds a JSON report describing a native app backup operation.
16
* @param config Active serve configuration.
17
* @param app Finalized app runtime to back up.
18
* @param backend_override Optional backend override.
19
* @param output_dir_override Optional output directory override.
20
* @param error_out Optional destination for an allocated error message.
21
* @return Newly allocated JSON report text, or NULL on failure.
22
*/
23
char
*
build_native_backup_report_local_json
(
const
ServeConfig
*config,
const
AppRuntime
*app,
const
char
*backend_override,
const
char
*output_dir_override,
char
**error_out);
24
/**
25
* @brief Builds a JSON report describing a native app restore operation.
26
* @param config Active serve configuration.
27
* @param app Finalized app runtime to restore into.
28
* @param backend_override Optional backend override.
29
* @param input_dir Directory containing restore input artifacts.
30
* @param error_out Optional destination for an allocated error message.
31
* @return Newly allocated JSON report text, or NULL on failure.
32
*/
33
char
*
build_native_restore_report_local_json
(
const
ServeConfig
*config,
const
AppRuntime
*app,
const
char
*backend_override,
const
char
*input_dir,
char
**error_out);
34
35
36
/** @} */
37
#endif
build_native_restore_report_local_json
char * build_native_restore_report_local_json(const ServeConfig *config, const AppRuntime *app, const char *backend_override, const char *input_dir, char **error_out)
Builds a JSON report describing a native app restore operation.
Definition
native_backup_restore.c:366
build_native_backup_report_local_json
char * build_native_backup_report_local_json(const ServeConfig *config, const AppRuntime *app, const char *backend_override, const char *output_dir_override, char **error_out)
Builds a JSON report describing a native app backup operation.
Definition
native_backup_restore.c:217
native_runtime_types.h
Defines shared native runtime data structures used across the Pharos C runtime.
AppRuntime
Loaded runtime metadata for one Pharos app artifact.
Definition
native_runtime_types.h:37
ServeConfig
Parsed native serve configuration used to bootstrap the runtime listener.
Definition
native_runtime_types.h:16
src
native_runtime
c
native_backup_restore.h
Generated by
1.17.0