diff options
-rw-r--r-- | src/shared/util.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/shared/util.h b/src/shared/util.h index c4aa1a6..03de693 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -23,6 +23,12 @@ #define __CONSTRUCTOR__ __attribute__ ((constructor)) #endif +#define fprintf_fd(fd, fmt, ...) dprintf(fd, fmt, ##__VA_ARGS__) + +#ifdef __cplusplus +extern "C" { +#endif + int system_command(char *command); int system_command_with_timeout(int timeout_seconds, char *command); @@ -31,8 +37,6 @@ int system_command_parallel(char *command); int wait_system_command(int pid); -#define fprintf_fd(fd, fmt, ...) dprintf(fd, fmt, ##__VA_ARGS__) - int write_fd(int fd, const void *buf, int len); int copy_file(char *src, char *dst); @@ -62,6 +66,11 @@ char* get_exe_path(pid_t pid); char* get_cmd_line(pid_t pid); char *nullvec2str(char *const vec[]); + +#ifdef __cplusplus +} +#endif + /** * @} */ |