forked from ps2homebrew/wLaunchELF
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsmb2.h
36 lines (32 loc) · 1.28 KB
/
smb2.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* -*- mode:c; tab-width:8; c-basic-offset:8; indent-tabs-mode:nil; -*- */
//---------------------------------------------------------------------------
//File name: smb2.h
//---------------------------------------------------------------------------
struct smb2_share {
struct smb2_share *next;
struct smb2_context *smb2;
char *name;
const char *user;
const char *password;
char *url;
};
extern struct smb2_share *smb2_shares;
int init_smb2(const char *ip, const char *netmask, const char *gw);
void deinit_smb2(void);
int readSMB2(const char *path, FILEINFO *info, int max);
int SMB2mkdir(const char *dir, int fileMode);
int SMB2rmdir(const char *dir);
int SMB2unlink(const char *dir);
int SMB2rename(const char *path, const char *newpath);
struct SMB2FH {
struct smb2_context *smb2;
struct smb2fh *fh;
};
struct SMB2FH *SMB2open(const char *path, int mode);
int SMB2close(struct SMB2FH *fh);
int SMB2read(struct SMB2FH *fh, char *buf, int size);
int SMB2write(struct SMB2FH *fh, char *buf, int size);
int SMB2lseek(struct SMB2FH *fh, int where, int how);
//---------------------------------------------------------------------------
//End of file: smb2.h
//---------------------------------------------------------------------------