diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/Makefile.am | 4 | ||||
-rw-r--r-- | common/dconf-shmdir.c | 35 | ||||
-rw-r--r-- | common/dconf-shmdir.h | 30 |
3 files changed, 1 insertions, 68 deletions
diff --git a/common/Makefile.am b/common/Makefile.am index 29c4667..324f0fe 100644 --- a/common/Makefile.am +++ b/common/Makefile.am @@ -10,9 +10,7 @@ INCLUDES = $(glib_CFLAGS) libdconf_common_a_SOURCES = \ dconf-changeset.h \ dconf-changeset.c \ - dconf-paths.c \ - dconf-shmdir.h \ - dconf-shmdir.c + dconf-paths.c libdconf_common_shared_a_CFLAGS = -fPIC -DPIC $(libdconf_common_a_CFLAGS) libdconf_common_shared_a_SOURCES = $(libdconf_common_a_SOURCES) diff --git a/common/dconf-shmdir.c b/common/dconf-shmdir.c deleted file mode 100644 index 839a487..0000000 --- a/common/dconf-shmdir.c +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright © 2010 Codethink Limited - * - * 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 licence, 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, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - * - * Author: Ryan Lortie <desrt@desrt.ca> - */ - -#include "dconf-shmdir.h" - -gchar * -dconf_shmdir_from_environment (void) -{ - gchar *result; - - result = g_build_filename (g_get_user_runtime_dir (), "dconf", NULL); - - if (g_mkdir_with_parents (result, 0700) != 0) - g_critical ("unable to create '%s'; dconf will not work properly.", result); - - return result; -} diff --git a/common/dconf-shmdir.h b/common/dconf-shmdir.h deleted file mode 100644 index 3b08de6..0000000 --- a/common/dconf-shmdir.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright © 2010 Codethink Limited - * - * 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 licence, 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, write to the - * Free Software Foundation, Inc., 59 Temple Place - Suite 330, - * Boston, MA 02111-1307, USA. - * - * Author: Ryan Lortie <desrt@desrt.ca> - */ - -#ifndef __dconf_shmdir_h__ -#define __dconf_shmdir_h__ - -#include <glib.h> - -G_GNUC_INTERNAL -gchar *dconf_shmdir_from_environment (void); - -#endif /* __dconf_shmdir_h__ */ |