shared/install: use char** convention for strvs

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2013-12-27 00:16:39 -05:00
parent cc3d61683d
commit 7195aa42e3
2 changed files with 14 additions and 14 deletions

View File

@ -556,7 +556,7 @@ int unit_file_mask(
UnitFileScope scope,
bool runtime,
const char *root_dir,
char *files[],
char **files,
bool force,
UnitFileChange **changes,
unsigned *n_changes) {
@ -625,7 +625,7 @@ int unit_file_unmask(
UnitFileScope scope,
bool runtime,
const char *root_dir,
char *files[],
char **files,
UnitFileChange **changes,
unsigned *n_changes) {
@ -690,7 +690,7 @@ int unit_file_link(
UnitFileScope scope,
bool runtime,
const char *root_dir,
char *files[],
char **files,
bool force,
UnitFileChange **changes,
unsigned *n_changes) {
@ -1462,7 +1462,7 @@ int unit_file_enable(
UnitFileScope scope,
bool runtime,
const char *root_dir,
char *files[],
char **files,
bool force,
UnitFileChange **changes,
unsigned *n_changes) {
@ -1502,7 +1502,7 @@ int unit_file_disable(
UnitFileScope scope,
bool runtime,
const char *root_dir,
char *files[],
char **files,
UnitFileChange **changes,
unsigned *n_changes) {
@ -1543,7 +1543,7 @@ int unit_file_reenable(
UnitFileScope scope,
bool runtime,
const char *root_dir,
char *files[],
char **files,
bool force,
UnitFileChange **changes,
unsigned *n_changes) {
@ -1820,7 +1820,7 @@ int unit_file_preset(
UnitFileScope scope,
bool runtime,
const char *root_dir,
char *files[],
char **files,
bool force,
UnitFileChange **changes,
unsigned *n_changes) {

View File

@ -73,13 +73,13 @@ typedef struct {
char **required_by;
} InstallInfo;
int unit_file_enable(UnitFileScope scope, bool runtime, const char *root_dir, char *files[], bool force, UnitFileChange **changes, unsigned *n_changes);
int unit_file_disable(UnitFileScope scope, bool runtime, const char *root_dir, char *files[], UnitFileChange **changes, unsigned *n_changes);
int unit_file_reenable(UnitFileScope scope, bool runtime, const char *root_dir, char *files[], bool force, UnitFileChange **changes, unsigned *n_changes);
int unit_file_link(UnitFileScope scope, bool runtime, const char *root_dir, char *files[], bool force, UnitFileChange **changes, unsigned *n_changes);
int unit_file_preset(UnitFileScope scope, bool runtime, const char *root_dir, char *files[], bool force, UnitFileChange **changes, unsigned *n_changes);
int unit_file_mask(UnitFileScope scope, bool runtime, const char *root_dir, char *files[], bool force, UnitFileChange **changes, unsigned *n_changes);
int unit_file_unmask(UnitFileScope scope, bool runtime, const char *root_dir, char *files[], UnitFileChange **changes, unsigned *n_changes);
int unit_file_enable(UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes);
int unit_file_disable(UnitFileScope scope, bool runtime, const char *root_dir, char **files, UnitFileChange **changes, unsigned *n_changes);
int unit_file_reenable(UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes);
int unit_file_link(UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes);
int unit_file_preset(UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes);
int unit_file_mask(UnitFileScope scope, bool runtime, const char *root_dir, char **files, bool force, UnitFileChange **changes, unsigned *n_changes);
int unit_file_unmask(UnitFileScope scope, bool runtime, const char *root_dir, char **files, UnitFileChange **changes, unsigned *n_changes);
int unit_file_set_default(UnitFileScope scope, const char *root_dir, const char *file, bool force, UnitFileChange **changes, unsigned *n_changes);
int unit_file_get_default(UnitFileScope scope, const char *root_dir, char **name);