/usr/include/xfce4/libxfce4util/xfce-miscutils.h is in libxfce4util-dev 4.10.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | /* $Id$ */
/*-
* Copyright (c) 2003-2006 Benedikt Meurer <benny@xfce.org>
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA
*/
#if !defined(LIBXFCE4UTIL_INSIDE_LIBXFCE4UTIL_H) && !defined(LIBXFCE4UTIL_COMPILATION)
#error "Only <libxfce4util/libxfce4util.h> can be included directly, this file may disappear or change contents"
#endif
#ifndef __XFCE_MISCUTILS_H__
#define __XFCE_MISCUTILS_H__
#include <glib.h>
#include <libxfce4util/xfce-debug.h>
G_BEGIN_DECLS
const gchar* xfce_version_string (void) G_GNUC_PURE;
const gchar* xfce_get_homedir (void) G_GNUC_PURE;
gchar* xfce_get_homefile_r (gchar *buffer,
size_t length,
const gchar *format,
...);
const gchar* xfce_get_userdir (void) G_GNUC_PURE;
gchar* xfce_get_userfile_r (gchar *buffer,
size_t length,
const gchar *format,
...);
#if defined(G_HAVE_ISO_VARARGS)
#define xfce_get_homefile(...) \
(g_build_filename (xfce_get_homedir (), __VA_ARGS__))
#define xfce_get_userfile(...) \
(g_build_filename (xfce_get_userdir (), __VA_ARGS__))
#elif defined(G_HAVE_GNUC_VARARGS)
#define xfce_get_homefile(first_element...) \
(g_build_filename (xfce_get_homedir (), ## first_element))
#define xfce_get_userfile(first_element...) \
(g_build_filename (xfce_get_userdir (), ## first_element))
#else
static gchar*
xfce_get_homefile (const gchar *first_element, ...)
{
#error "Implement this, if you see this error!"
}
static gchar*
xfce_get_userfile (const gchar *first_element, ...)
{
#error "Implement this, if you see this error!"
}
#endif
gchar* xfce_strjoin (const gchar *separator,
gchar **strings,
gint count) G_GNUC_MALLOC;
gchar* xfce_gethostname (void) G_GNUC_MALLOC;
gint xfce_putenv (const gchar *string);
gint xfce_setenv (const gchar *name,
const gchar *value,
gboolean overwrite);
void xfce_unsetenv (const gchar *name);
gchar* xfce_expand_variables (const gchar *command,
gchar **envp) G_GNUC_MALLOC;
G_END_DECLS
#endif /* __XFCE_MISCUTILS_H__ */
|