libdsm
libdsm copied to clipboard
Reading files
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.
This requires some development work
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);