ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/Syncify/SambaReader.cpp
Revision: 440
Committed: 2005-04-07T22:53:00-07:00 (20 years, 2 months ago) by douglas
File size: 369 byte(s)
Log Message:
Worky!

File Contents

# User Rev Content
1 douglas 440 // Syncify
2     //
3     // Douglas Thrift
4     //
5     // $Id$
6    
7     #include "SambaReader.hpp"
8    
9     SambaReader::SambaReader(const ext::String& path) : file(CheckError(::smbc_open(path.NullTerminate(), O_RDONLY, 0)))
10     {
11     }
12    
13     SambaReader::~SambaReader()
14     {
15     CheckError(::smbc_close(file));
16     }
17    
18     size_t SambaReader::Read(char* data, size_t length)
19     {
20     return CheckError(::smbc_read(file, data, length));
21     }

Properties

Name Value
svn:eol-style native
svn:keywords Id