chiark / gitweb /
Remove utmp stuff that has found it's way back in.
[elogind.git] / src / basic / hostname-util.h
index c92b19cdc85bb106fd29c3346f5e7d695cd6b950..e96cd5f8716341e01782eb91348dbadfe754b2da 100644 (file)
 
 // UNNEEDED char* gethostname_malloc(void);
 
-bool hostname_is_valid(const char *s) _pure_;
-char* hostname_cleanup(char *s, bool lowercase);
+bool hostname_is_valid(const char *s, bool allow_trailing_dot) _pure_;
+char* hostname_cleanup(char *s);
+
+#define machine_name_is_valid(s) hostname_is_valid(s, false)
 
 bool is_localhost(const char *hostname);
+// UNNEEDED bool is_gateway_hostname(const char *hostname);
 
 // UNNEEDED int sethostname_idempotent(const char *s);