From e76249c813192aa082060d024b66f11d95d09b51 Mon Sep 17 00:00:00 2001 From: Stefan Hoffmann Date: Sat, 5 Apr 2014 13:51:48 +0200 Subject: Moved mch_get_host_name and renamed it to os_get_hostanme --- src/os/os.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/os/os.h') diff --git a/src/os/os.h b/src/os/os.h index 1e874c29a5..8456f87473 100644 --- a/src/os/os.h +++ b/src/os/os.h @@ -87,6 +87,13 @@ char *os_getenvname_at_index(size_t index); /// /// @return the process ID. long os_get_pid(void); + +/// Get the hostname of the machine runing Neovim. +/// +/// @param hostname Buffer to store the hostname. +/// @param len Length of `hostname`. +void os_get_hostname(char *hostname, size_t len); + int os_get_usernames(garray_T *usernames); int os_get_user_name(char *s, size_t len); int os_get_uname(uid_t uid, char *s, size_t len); -- cgit