aboutsummaryrefslogtreecommitdiff
path: root/src/includes
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2015-12-04 18:02:43 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2015-12-08 12:05:59 -0600
commit8addd7913a743b75ef3854ab4a96fea81cc5245d (patch)
tree4c0550870298a35a80b68f76e699836f336b8553 /src/includes
parent83cd7145e3e7c3ac453b6a87214cf5704e3875ce (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')
-rw-r--r--src/includes/rc-misc.h4
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