View of xos/fs/vfat_names.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 VFAT_NAMES_H
#define VFAT_NAMES_H
 
struct vfat_collide_fo_struct;
 
int vfat_match_long(const char *fs_basename, const unsigned short *longname);
int vfat_match_short(const char *fs_basename, const unsigned char shortname[]);
void vfat_decode_longname(const unsigned short longname[], char name[]);
void vfat_decode_shortname(const unsigned char shortname[], char name[]);
int vfat_generate_names(const char *fs_basename, unsigned short longname[], unsigned char shortname[], struct vfat_collide_fo_struct *collide_fo);
int vfat_fit(const unsigned short *longname, const unsigned char shortname[]);
 
#endif