XMMS2
src
xmms
compat
symlink_unix.c
Go to the documentation of this file.
1
/* XMMS2 - X Music Multiplexer System
2
* Copyright (C) 2003-2011 XMMS2 Team
3
*
4
* PLUGINS ARE NOT CONSIDERED TO BE DERIVED WORK !!!
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*/
16
17
18
/** @file
19
* Takes care of creating a symlink to a file.
20
*/
21
22
23
#include "
xmmspriv/xmms_symlink.h
"
24
25
#include <unistd.h>
26
27
28
gboolean
29
xmms_symlink_file
(gchar *source, gchar *dest)
30
{
31
gint r;
32
33
g_return_val_if_fail (source, FALSE);
34
g_return_val_if_fail (dest, FALSE);
35
36
r = symlink (source, dest);
37
38
return
r != -1;
39
}
xmms_symlink_file
gboolean xmms_symlink_file(gchar *source, gchar *dest)
Definition:
symlink_unix.c:29
xmms_symlink.h
Generated by
1.8.14