Subversion Repositories freemyipod

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
653 theseven 1
//
2
//
3
//    Copyright 2010 TheSeven
4
//
5
//
6
//    This file is part of emCORE.
7
//
8
//    emCORE is free software: you can redistribute it and/or
9
//    modify it under the terms of the GNU General Public License as
10
//    published by the Free Software Foundation, either version 2 of the
11
//    License, or (at your option) any later version.
12
//
13
//    emCORE is distributed in the hope that it will be useful,
14
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16
//    See the GNU General Public License for more details.
17
//
18
//    You should have received a copy of the GNU General Public License along
19
//    with emCORE.  If not, see <http://www.gnu.org/licenses/>.
20
//
21
//
22
 
23
 
24
#ifndef __EXPORT_LIBMKFAT32_H__
25
#define __EXPORT_LIBMKFAT32_H__
26
 
27
#include "emcorelib.h"
28
 
29
 
30
int mkfat32(int volume, int startsector, int totalsectors, int sectorsize, int secperclus,
31
            const char* label, void* statususer, void (*statusinit)(void* user, int max),
32
            void (*statuscallback)(void* user, int current));
33
 
34
 
35
/* emCORE library identifier */
36
#define LIBMKFAT32_IDENTIFIER 0x3233464d
37
 
38
/* increase this every time the api struct changes */
39
#define LIBMKFAT32_API_VERSION 1
40
 
41
/* update this to latest version if a change to the api struct breaks
42
   backwards compatibility (and please take the opportunity to sort in any
43
   new function which are "waiting" at the end of the function table) */
44
#define LIBMKFAT32_MIN_API_VERSION 1
45
 
46
/* NOTE: To support backwards compatibility, only add new functions at
47
         the end of the structure.  Every time you add a new function,
48
         remember to increase LIBMKFAT32_API_VERSION. If you make changes to the
49
         existing APIs, also update LIBMKFAT32_MIN_API_VERSION to current version */
50
 
51
struct libmkfat32_api
52
{
53
    typeof(mkfat32)* mkfat32;
54
};
55
 
56
 
57
#endif