Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-06 08:41:17

0001 /* GLIB - Library of useful routines for C programming
0002  * Copyright (C) 2008 Red Hat, Inc.
0003  *
0004  * SPDX-License-Identifier: LGPL-2.1-or-later
0005  *
0006  * This library is free software; you can redistribute it and/or
0007  * modify it under the terms of the GNU Lesser General Public
0008  * License as published by the Free Software Foundation; either
0009  * version 2.1 of the License, or (at your option) any later version.
0010  *
0011  * This library is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0014  * Lesser General Public License for more details.
0015  *
0016  * You should have received a copy of the GNU Lesser General
0017  * Public License along with this library; if not, see <http://www.gnu.org/licenses/>.
0018  */
0019 
0020 #ifndef __G_HOST_UTILS_H__
0021 #define __G_HOST_UTILS_H__
0022 
0023 #if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
0024 #error "Only <glib.h> can be included directly."
0025 #endif
0026 
0027 #include <glib/gtypes.h>
0028 
0029 G_BEGIN_DECLS
0030 
0031 GLIB_AVAILABLE_IN_ALL
0032 gboolean  g_hostname_is_non_ascii     (const gchar *hostname);
0033 GLIB_AVAILABLE_IN_ALL
0034 gboolean  g_hostname_is_ascii_encoded (const gchar *hostname);
0035 GLIB_AVAILABLE_IN_ALL
0036 gboolean  g_hostname_is_ip_address    (const gchar *hostname);
0037 
0038 GLIB_AVAILABLE_IN_ALL
0039 gchar    *g_hostname_to_ascii         (const gchar *hostname);
0040 GLIB_AVAILABLE_IN_ALL
0041 gchar    *g_hostname_to_unicode       (const gchar *hostname);
0042 
0043 G_END_DECLS
0044 
0045 #endif /* __G_HOST_UTILS_H__ */