1 /*---------------------------------------------------------------------------*
2   Project:  MP DS wireless filesystem library
3   File:     mpfs.h
4 
5   Copyright 2007 Nintendo. All rights reserved.
6 
7   These coded instructions, statements, and computer programs contain
8   proprietary information of Nintendo of America Inc. and/or Nintendo
9   Company Ltd., and are protected by Federal copyright law.  They may
10   not be disclosed to third parties or copied or duplicated in any form,
11   in whole or in part, without the prior written consent of Nintendo.
12 
13   $Log: mpfs.h,v $
14   Revision 1.1  2007/02/09 04:18:26  yosizaki
15   Initial upload.
16 
17   $NoKeywords: $
18  *---------------------------------------------------------------------------*/
19 
20 #ifndef REVOLUTION_MPFS_H__
21 #define REVOLUTION_MPFS_H__
22 
23 #include <revolution/types.h>
24 #include <revolution/mp.h>
25 #include <revolution/mem.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 /*===========================================================================*/
31 /* constants */
32 
33 
34 /*===========================================================================*/
35 /* declarations */
36 
37 /*===========================================================================*/
38 /* functions */
39 
40 /*---------------------------------------------------------------------------*
41   Name: MPFSInit
42   Description: Initializes the MPFS library.
43                 It is necessary to call this before starting the MP library.
44   Arguments   : config           The MPConfig structure that will be run
45                                  Management of the MP library is done by the application.
46                 heap             The heap used internally by the MPFS library
47                 program          The Nintendo DS program including the file system to be provided to the connection target.
48 
49   Returns: None
50  *---------------------------------------------------------------------------*/
51 void    MPFSInit( MPConfig *config, MEMHeapHandle heap, const void *program );
52 
53 /*---------------------------------------------------------------------------*
54   Name: MPFSEnd
55   Description: Terminates the MPFS library
56                 This must be called after the MP library has terminated.
57   Arguments: None
58   Returns: None
59  *---------------------------------------------------------------------------*/
60 void    MPFSEnd( void );
61 
62 /*---------------------------------------------------------------------------*
63   Name: MPFSIsAvailable
64   Description: Determine whether or not the MPFS library is in use.
65   Arguments: None
66   Returns: None
67  *---------------------------------------------------------------------------*/
68 BOOL    MPFSIsAvailable( void );
69 
70 /*---------------------------------------------------------------------------*
71   Name: MPFSPortCallback
72   Description: Does an MPFS port callback
73                 This callback must be preconfigured to some port number.
74   Arguments: type:       Callback type
75                 info: Callback information structure
76   Returns: None
77  *---------------------------------------------------------------------------*/
78 void    MPFSPortCallback( s32 type, MPPortCallbackInfo* info );
79 
80 
81 /*===========================================================================*/
82 #ifdef __cplusplus
83 }
84 #endif
85 #endif  /* REVOLUTION_MPFS_H__ */
86 
87 /*---------------------------------------------------------------------------*
88   End of file
89  *---------------------------------------------------------------------------*/
90