mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
da509fd67d
GLib has g_unix_mount_at (mount_path) already, let's add g_unix_mount_for (file_path) for whatever path. GLib already contains some private code for such task. Let's make this code public. This functionality is needed by GVfs (see Bug 771431) in order to avoid copy-and-pasting. https://bugzilla.gnome.org/show_bug.cgi?id=772160
31 lines
1010 B
C
31 lines
1010 B
C
/* GIO - GLib Input, Output and Streaming Library
|
|
*
|
|
* Copyright (C) 2016 Red Hat, Inc.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser 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
|
|
* Lesser 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, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
* Author: Ondrej Holy <oholy@redhat.com>
|
|
*/
|
|
|
|
#ifndef __G_LOCAL_FILE_PRIVATE_H__
|
|
#define __G_LOCAL_FILE_PRIVATE_H__
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
gchar *_g_local_file_find_topdir_for (const char *file_path);
|
|
|
|
G_END_DECLS
|
|
|
|
#endif /* __G_LOCAL_FILE_PRIVATE_H__ */
|