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

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 douglas 444 ::smbc_close(file);
16 douglas 440 }
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