mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-28 20:25:25 +03:00
install: export unit_file_lookup_state()
This commit is contained in:
parent
d58ad743f9
commit
d6d9827687
@ -99,8 +99,6 @@ static inline void presets_freep(Presets *p) {
|
|||||||
p->n_rules = 0;
|
p->n_rules = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int unit_file_lookup_state(UnitFileScope scope, const LookupPaths *paths, const char *name, UnitFileState *ret);
|
|
||||||
|
|
||||||
bool unit_type_may_alias(UnitType type) {
|
bool unit_type_may_alias(UnitType type) {
|
||||||
return IN_SET(type,
|
return IN_SET(type,
|
||||||
UNIT_SERVICE,
|
UNIT_SERVICE,
|
||||||
@ -2643,7 +2641,7 @@ int unit_file_get_default(
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int unit_file_lookup_state(
|
int unit_file_lookup_state(
|
||||||
UnitFileScope scope,
|
UnitFileScope scope,
|
||||||
const LookupPaths *paths,
|
const LookupPaths *paths,
|
||||||
const char *name,
|
const char *name,
|
||||||
|
@ -207,6 +207,12 @@ int unit_file_add_dependency(
|
|||||||
UnitFileChange **changes,
|
UnitFileChange **changes,
|
||||||
size_t *n_changes);
|
size_t *n_changes);
|
||||||
|
|
||||||
|
int unit_file_lookup_state(
|
||||||
|
UnitFileScope scope,
|
||||||
|
const LookupPaths *paths,
|
||||||
|
const char *name,
|
||||||
|
UnitFileState *ret);
|
||||||
|
|
||||||
int unit_file_get_state(UnitFileScope scope, const char *root_dir, const char *filename, UnitFileState *ret);
|
int unit_file_get_state(UnitFileScope scope, const char *root_dir, const char *filename, UnitFileState *ret);
|
||||||
int unit_file_exists(UnitFileScope scope, const LookupPaths *paths, const char *name);
|
int unit_file_exists(UnitFileScope scope, const LookupPaths *paths, const char *name);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user