damn wide font ;)
[open-ps2-loader/simon.git] / modules / debug / ps2link / net_fio.h
blob435967d12cb9393ea5f3becedb71f2b0c2889aef
1 /*********************************************************************
2 * Copyright (C) 2003 Tord Lindstrom (pukko@home.se)
3 * Copyright (C) 2004 adresd (adresd_ps2dev@yahoo.com)
4 * This file is subject to the terms and conditions of the PS2Link License.
5 * See the file LICENSE in the main directory of this distribution for more
6 * details.
7 */
9 #ifndef _NETFIO_H_
10 #define _NETFIO_H_
12 int pko_file_serv(void *arg);
13 int pko_recv_bytes(int fd, char *buf, int bytes);
14 int pko_accept_pkt(int fd, char *buf, int len, int pkt_type);
15 int pko_open_file(char *path, int flags);
16 int pko_close_file(int fd);
17 int pko_read_file(int fd, char *buf, int length);
18 int pko_write_file(int fd, char *buf, int length);
19 int pko_lseek_file(int fd, unsigned int offset, int whence);
20 void pko_close_socket(void);
21 void pko_close_fsys(void);
22 int pko_remove(char *name);
23 int pko_mkdir(char *name, int mode);
24 int pko_rmdir(char *name);
25 int pko_open_dir(char *path);
26 int pko_read_dir(int fd, void *buf);
27 int pko_close_dir(int fd);
30 * Don't want printfs to broadcast in case more than 1 ps2 on the same network, so at
31 * connect time, the remote PC's IP is stored here and used as destination for printfs.
33 extern unsigned int remote_pc_addr;
35 #endif