KallistiOS  ##version##
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
fs_dclnative.h
Go to the documentation of this file.
1 /* KallistiOS ##version##
2 
3  kernel/arch/dreamcast/include/dc/fs_dclnative.h
4  Copyright (C)2003 Dan Potter
5 
6 */
7 
8 /** \file dc/fs_dclnative.h
9  \brief Implementation of dcload-ip over KOS network drivers.
10 
11  This file contains declarations related to using dcload-ip over the KOS
12  network adapter drivers. This should be considered deprecated in favor of
13  fs_dclsocket, and I'm not even sure that it would still work at this point.
14 
15  \author Dan Potter
16  \see dc/fs_dclsocket.h
17  \see dc/fs_dcload.h
18 */
19 
20 #ifndef __DC_FS_DCLNATIVE_H
21 #define __DC_FS_DCLNATIVE_H
22 
23 /* Definitions for the "dcload-ip native" file system. This is like,
24  dc-load, but it uses KOS' ethernet drivers to talk directly to the
25  installed network adapter. This is far faster and more reliable as
26  long as you're not debugging interrupts or something. :) When KOS
27  exits, control will be handed back to the resident dcload-ip
28  instance. */
29 
30 #include <sys/cdefs.h>
31 __BEGIN_DECLS
32 
33 #include <dc/fs_dcload.h>
34 
35 /* \cond */
36 /* Printk replacement */
37 void dclnative_printk(const char *str);
38 
39 /* File functions */
40 file_t dclnative_open(vfs_handler_t * vfs, const char *fn, int mode);
41 void dclnative_close(file_t hnd);
42 ssize_t dclnative_read(file_t hnd, void *buf, size_t cnt);
43 off_t dclnative_seek(file_t hnd, off_t offset, int whence);
44 off_t dclnative_tell(file_t hnd);
45 size_t dclnative_total(file_t hnd);
46 dirent_t* dclnative_readdir(file_t hnd);
47 int dclnative_rename(vfs_handler_t * vfs, const char *fn1, const char *fn2);
48 int dclnative_unlink(vfs_handler_t * vfs, const char *fn);
49 
50 /* Init/Shutdown */
51 int fs_dclnative_init();
52 int fs_dclnative_shutdown();
53 
54 /* \endcond */
55 
56 __END_DECLS
57 
58 #endif /* __DC_FS_DCLNATIVE_H */
59 
60 
VFS handler interface.
Definition: fs.h:97
Implementation of dcload "filesystem".
int file_t
File descriptor type.
Definition: fs.h:86
Directory entry.
Definition: fs.h:44