Listtree.mcc: update version and date
[AROS.git] / rom / partition / findfilesystema.c
blob709cffc04c4dce8bb067ed654be554c8b4b4f4fa
1 /*
2 Copyright © 2011, The AROS Development Team. All rights reserved.
3 $Id$
5 */
6 #include "partition_support.h"
7 #include "platform.h"
9 /*****************************************************************************
11 NAME */
12 #include <libraries/partition.h>
14 AROS_LH2(struct Node *, FindFileSystemA,
16 /* SYNOPSIS */
17 AROS_LHA(struct PartitionHandle *, table, A1),
18 AROS_LHA(struct TagItem *, taglist, A2),
20 /* LOCATION */
21 struct Library *, PartitionBase, 20, Partition)
23 /* FUNCTION
24 Locate a filesystem handler in the partition
26 INPUTS
27 ph - PartitionHandle to the table
28 taglist - Taglist specifying arguments. Possible tags are:
30 FST_ID - specify ID of the filesystem.
31 FST_NAME - specify name of the filesystem.
33 If more than one condition is specified for the search, logical
34 AND will be applied to them. Empty taglist will give you the first
35 filesystem in the list.
37 RESULT
38 Abstract handle of a filesystem or NULL if the filesystem with the given
39 parameters was not located in the partition.
41 NOTES
43 EXAMPLE
45 BUGS
47 SEE ALSO
49 INTERNALS
51 HISTORY
53 *****************************************************************************/
55 AROS_LIBFUNC_INIT
57 if (table->table)
59 struct PTFunctionTable *handler = table->table->handler;
61 if (handler->findFileSystem)
62 return handler->findFileSystem(PartitionBase, table, taglist);
65 return NULL;
67 AROS_LIBFUNC_EXIT