Refactored how operations are carried out
This commit is contained in:
@@ -40,11 +40,6 @@
|
||||
#define IO_ERROR_READ "read"
|
||||
#define IO_ERROR_WRITE "write to"
|
||||
|
||||
void io_error(const char* error, const char* type, const char* name);
|
||||
void io_error_2(const char* error, const char* type, const char* name, const char* name2);
|
||||
void io_error_3(const char* error, const char* type, const char* name, const char* name2, const char* name3);
|
||||
|
||||
|
||||
extern int return_value;
|
||||
|
||||
struct string_array{
|
||||
@@ -53,7 +48,11 @@ struct string_array{
|
||||
};
|
||||
void free_string_array(struct string_array* s);
|
||||
|
||||
void io_error(const char* error, const char* type, const char* name);
|
||||
void io_error_2(const char* error, const char* type, const char* name, const char* name2);
|
||||
void io_error_3(const char* error, const char* type, const char* name, const char* name2, const char* name3);
|
||||
void mem_error(void);
|
||||
|
||||
_Noreturn void version(void);
|
||||
_Noreturn void usage(int exit_val);
|
||||
|
||||
|
||||
@@ -25,8 +25,7 @@
|
||||
#include "cmd.h"
|
||||
|
||||
void save_restore_file(struct string_array* devices);
|
||||
void all_restore(void);
|
||||
int individual_restore(struct arg_values* curr, RJP_value** root, int* try_restore);
|
||||
int restore_to_delta(struct arg_values* curr, RJP_value** root, int* try_restore);
|
||||
RJP_value* find_matching_json_device(const char* name, RJP_value* root);
|
||||
RJP_value* read_restore_file(const char* file);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user