diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2015-12-04 18:02:43 -0600 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2015-12-08 12:05:59 -0600 |
commit | 8addd7913a743b75ef3854ab4a96fea81cc5245d (patch) | |
tree | 4c0550870298a35a80b68f76e699836f336b8553 /src/includes/rc-misc.h | |
parent | 83cd7145e3e7c3ac453b6a87214cf5704e3875ce (diff) |
Create detect_container() and detect_vm() functions
These functions replace rc_sys so that we can detect containers and vms
separately.
Also, we copy file_regex() to rc-misc.c and open it to all operating
systems.
Diffstat (limited to 'src/includes/rc-misc.h')
-rw-r--r-- | src/includes/rc-misc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h index 3cce8d02..e0565b6b 100644 --- a/src/includes/rc-misc.h +++ b/src/includes/rc-misc.h @@ -87,4 +87,8 @@ int is_writable(const char *); #define service_stop(service) exec_service(service, "stop"); int parse_mode(mode_t *, char *); +const char *detect_prefix(void); +const char *get_systype(void); +const char *detect_container(void); +const char *detect_vm(void); #endif |