diff options
author | Stefan Hoffmann <stefan991@gmail.com> | 2014-04-05 13:51:48 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-05 20:19:38 -0300 |
commit | e76249c813192aa082060d024b66f11d95d09b51 (patch) | |
tree | b85521e6135f487f4dd7b7df9d3f4965e37f0246 /src/os/os.h | |
parent | a8013f2bb1b7e62c273f7a7da58653aa82e9c5ca (diff) | |
download | rneovim-e76249c813192aa082060d024b66f11d95d09b51.tar.gz rneovim-e76249c813192aa082060d024b66f11d95d09b51.tar.bz2 rneovim-e76249c813192aa082060d024b66f11d95d09b51.zip |
Moved mch_get_host_name and renamed it to os_get_hostanme
Diffstat (limited to 'src/os/os.h')
-rw-r--r-- | src/os/os.h | 7 |
1 files changed, 7 insertions, 0 deletions
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); |