-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrawpod.h
42 lines (37 loc) · 1.59 KB
/
rawpod.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* The Rawpod raw device access library. Copyright (c) 2006 Joshua Oreman.
* Released under the GPL - see file COPYING. All rights reserved.
* rawpod.h - main header file for the library. Last modified 2006-07-30.
*/
#ifndef _RAWPOD_H_
#define _RAWPOD_H_
#include "vfs.h"
#include "device.h"
#include "ext2.h"
#include "fat32.h"
#include "partition.h"
#define RAWPOD_OPTIONS_STR "Ccw:i:I:s:"
#ifdef WIN32
#define RAWPOD_OPTIONS_USAGE_CACHE \
" -C Do not use a block cache. Expect MASSIVE SLOWNESS, but no problems\n" \
" in case of a hastily unplugged iPod.\n" \
" -c Use a block cache. [default]\n"
#else
#define RAWPOD_OPTIONS_USAGE_CACHE \
" -C Do not use an additional block cache. [default]\n" \
" -c Use a block cache. On Linux, this is not really necessary, since the\n" \
" kernel does a much better job at caching than we ever could.\n"
#endif
#define RAWPOD_OPTIONS_USAGE \
" Rawpod options:\n" \
RAWPOD_OPTIONS_USAGE_CACHE \
" -i IPOD Look for the iPod at IPOD instead of probing for it.\n" \
" -I NUM Allow writes to rest in cache no longer than NUM seconds before\n" \
" being flushed to disk (the `commit interval'). [default 5]\n" \
" -w COW Perform all writes to the file COW instead of to the iPod. Useful\n" \
" for testing. COW must exist, but it can be empty.\n" \
" -s NUM Set the cache size to NUM sectors. This will use NUM*515 bytes of\n" \
" memory. [default 16384]\n\n"
/* Returns 1 if the option was handled, 0 if not. */
int rawpod_parse_option (char optopt, const char *optarg);
#endif