Blame libglnx/glnx-shutil.h

rpm-build c487f7
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
rpm-build c487f7
 *
rpm-build c487f7
 * Copyright (C) 2014,2015 Colin Walters <walters@verbum.org>.
rpm-build c487f7
 *
rpm-build c487f7
 * This library is free software; you can redistribute it and/or
rpm-build c487f7
 * modify it under the terms of the GNU Lesser General Public
rpm-build c487f7
 * License as published by the Free Software Foundation; either
rpm-build c487f7
 * version 2 of the License, or (at your option) any later version.
rpm-build c487f7
 *
rpm-build c487f7
 * This library is distributed in the hope that it will be useful,
rpm-build c487f7
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
rpm-build c487f7
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
rpm-build c487f7
 * Lesser General Public License for more details.
rpm-build c487f7
 *
rpm-build c487f7
 * You should have received a copy of the GNU Lesser General Public
rpm-build c487f7
 * License along with this library; if not, write to the
rpm-build c487f7
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
rpm-build c487f7
 * Boston, MA 02111-1307, USA.
rpm-build c487f7
 */
rpm-build c487f7
rpm-build c487f7
#pragma once
rpm-build c487f7
rpm-build c487f7
#include <glnx-dirfd.h>
rpm-build c487f7
rpm-build c487f7
G_BEGIN_DECLS
rpm-build c487f7
rpm-build c487f7
gboolean
rpm-build c487f7
glnx_shutil_rm_rf_at (int                   dfd,
rpm-build c487f7
                      const char           *path,
rpm-build c487f7
                      GCancellable         *cancellable,
rpm-build c487f7
                      GError              **error);
rpm-build c487f7
rpm-build c487f7
gboolean
rpm-build c487f7
glnx_shutil_mkdir_p_at (int                   dfd,
rpm-build c487f7
                        const char           *path,
rpm-build c487f7
                        int                   mode,
rpm-build c487f7
                        GCancellable         *cancellable,
rpm-build c487f7
                        GError              **error);
rpm-build c487f7
rpm-build c487f7
gboolean
rpm-build c487f7
glnx_shutil_mkdir_p_at_open (int            dfd,
rpm-build c487f7
                             const char    *path,
rpm-build c487f7
                             int            mode,
rpm-build c487f7
                             int           *out_dfd,
rpm-build c487f7
                             GCancellable  *cancellable,
rpm-build c487f7
                             GError       **error);
rpm-build c487f7
rpm-build c487f7
G_END_DECLS