/[pearpc]/src/io/prom/fs/hfsplus/partitions.h
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /src/io/prom/fs/hfsplus/partitions.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations)
Wed Sep 5 17:11:21 2007 UTC (16 years, 6 months ago) by dpavlin
File MIME type: text/plain
File size: 2074 byte(s)
import upstream CVS
1 /*
2 * hfsutils - tools for reading and writing Macintosh HFS volumes
3 * Copyright (C) 2000 Klaus Halfmann <klaus.halfmann@t-online.de.de>
4 *
5 * Structures and Functions for accessing the mac partition map
6 * Copyright (C) 2002 Michael Schulze <mike.s@genion.de>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program 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. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 *
22 */
23
24 #ifndef APPLE_H
25 #include "apple.h"
26 #endif
27
28 typedef struct {
29 int numparts; /* number of partitions found */
30 ApplePartition *parray; /* only used for mem mngmnt */
31 ApplePartition **partitions; /* partition descriptions */
32 } partition_map;
33
34 /*
35 * Returns the number of partitions in the given partition map or 0 if no partitions were found
36 * @param map Partition map to get the information from.
37 */
38 int partition_getnparts( partition_map *map);
39
40 /*
41 * Returns the startblock of the <num>th partition of the given type from the given
42 * Partition Map.
43 *
44 * @param map Partition map to get the information from
45 * @param type type of the desired partition
46 * @param num number of the desired partition (starting with 1)
47 *
48 * @return the start block of the partition or 0 if no such partition could be found
49 */
50 UInt32 partition_getStartBlock( partition_map *map, const char *type, int num);
51
52 /*
53 * Returns the partition map of the given device
54 */
55 int partition_getPartitionMap( partition_map *map, void *fd);
56
57 /*
58 * cleanup and free allocated memory.
59 */
60 void partition_release( partition_map *map);

  ViewVC Help
Powered by ViewVC 1.1.26