eaops.h 921 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
  3. * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
  4. *
  5. * This copyrighted material is made available to anyone wishing to use,
  6. * modify, copy, or redistribute it subject to the terms and conditions
  7. * of the GNU General Public License version 2.
  8. */
  9. #ifndef __EAOPS_DOT_H__
  10. #define __EAOPS_DOT_H__
  11. struct gfs2_ea_request;
  12. struct gfs2_inode;
  13. struct gfs2_eattr_operations {
  14. int (*eo_get) (struct gfs2_inode *ip, struct gfs2_ea_request *er);
  15. int (*eo_set) (struct gfs2_inode *ip, struct gfs2_ea_request *er);
  16. int (*eo_remove) (struct gfs2_inode *ip, struct gfs2_ea_request *er);
  17. char *eo_name;
  18. };
  19. unsigned int gfs2_ea_name2type(const char *name, const char **truncated_name);
  20. extern const struct gfs2_eattr_operations gfs2_system_eaops;
  21. extern const struct gfs2_eattr_operations *gfs2_ea_ops[];
  22. #endif /* __EAOPS_DOT_H__ */