libdsm icon indicating copy to clipboard operation
libdsm copied to clipboard

Reading files

Open RoniJacobson opened this issue 4 years ago • 2 comments

Does the capability to read files exist? I can't see it when looking through the docs. It's a pretty critical feature that this plugin definitely needs if not.

RoniJacobson avatar Jul 05 '20 11:07 RoniJacobson

This requires some development work

biezhihua avatar Jul 08 '20 11:07 biezhihua

I checked that videolan libDSM does support reading and writing files, but it does require some development work.


int       smb_fopen(smb_session *s, smb_tid tid, const char *path,
                    uint32_t mod, smb_fd *fd);

void      smb_fclose(smb_session *s, smb_fd fd);

ssize_t   smb_fread(smb_session *s, smb_fd fd, void *buf, size_t buf_size);

ssize_t   smb_fwrite(smb_session *s, smb_fd fd, void *buf, size_t buf_size);

ssize_t   smb_fseek(smb_session *s, smb_fd fd, off_t offset, int whence);

int  smb_file_rm(smb_session *s, smb_tid tid, const char *path);

int  smb_file_mv(smb_session *s, smb_tid tid, const char *old_path, const char *new_path);

biezhihua avatar Jul 11 '20 05:07 biezhihua