View of xos/fs/ro_fs.h


XOS | Parent Directory | View | Download

/* Copyright (C) 2008  Emmanuel Varoquaux
 
   This file is part of XOS.
 
   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.
 
   This program 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 General Public License for more details.
 
   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 
#ifndef RO_FS_H
#define RO_FS_H
 
/* Operations d'un systeme de fichiers en lecture seule. */
 
int no_write(void *data, unsigned long leaf_id, unsigned long pos, const char *fs_buf, unsigned int count);
int no_create(void *data, unsigned long dir_id, const char *fs_basename);
int no_mkdir(void *data, unsigned long dir_id, const char *fs_basename);
int no_can_remove(void *data, unsigned long leaf_id);
int no_remove(void *data, unsigned long leaf_id, unsigned long parent_dir_id);
int no_rmdir(void *data, unsigned long dir_id, unsigned long parent_dir_id);
int no_rename(void *data, unsigned long old_id, unsigned long old_parent_dir_id, unsigned long new_dir_id, const char *fs_basename);
 
#endif