(root)/
attr-2.5.1/
include/
libattr.h
       1  /*
       2    Copyright (C) 2009  Andreas Gruenbacher <agruen@suse.de>
       3  
       4    This program is free software: you can redistribute it and/or modify it
       5    under the terms of the GNU Lesser General Public License as published by
       6    the Free Software Foundation, either version 2.1 of the License, or
       7    (at your option) any later version.
       8  
       9    This program is distributed in the hope that it will be useful,
      10    but WITHOUT ANY WARRANTY; without even the implied warranty of
      11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      12    GNU Lesser General Public License for more details.
      13  
      14    You should have received a copy of the GNU Lesser General Public License
      15    along with this program.  If not, see <http://www.gnu.org/licenses/>.
      16   */
      17  
      18  #ifndef __LIBATTR_H
      19  #define __LIBATTR_H
      20  
      21  #ifdef __cplusplus
      22  extern "C" {
      23  #endif
      24  
      25  struct error_context;
      26  
      27  EXPORT int attr_copy_file (const char *, const char *,
      28  			   int (*) (const char *, struct error_context *),
      29  			   struct error_context *);
      30  EXPORT int attr_copy_fd (const char *, int, const char *, int,
      31  			 int (*) (const char *, struct error_context *),
      32  			 struct error_context *);
      33  
      34  /* Keep this function for backwards compatibility. */
      35  EXPORT int attr_copy_check_permissions(const char *, struct error_context *);
      36  
      37  #define ATTR_ACTION_SKIP	1
      38  #define ATTR_ACTION_PERMISSIONS	2
      39  
      40  EXPORT int attr_copy_action(const char *, struct error_context *);
      41  
      42  #ifdef __cplusplus
      43  }
      44  #endif
      45  
      46  #endif