1 /*
2  * Copyright (C) 2020 Linux Studio Plugins Project <https://lsp-plug.in/>
3  *           (C) 2020 Vladimir Sadovnikov <sadko4u@gmail.com>
4  *
5  * This file is part of lsp-plugins
6  * Created on: 14 нояб. 2017 г.
7  *
8  * lsp-plugins is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU Lesser General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * any later version.
12  *
13  * lsp-plugins is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public License
19  * along with lsp-plugins. If not, see <https://www.gnu.org/licenses/>.
20  */
21 
22 #include <core/io/IOutStream.h>
23 #include <core/status.h>
24 
25 namespace lsp
26 {
27     namespace io
28     {
29 
IOutStream()30         IOutStream::IOutStream()
31         {
32             nErrorCode      = STATUS_OK;
33         }
34 
~IOutStream()35         IOutStream::~IOutStream()
36         {
37             nErrorCode      = STATUS_OK;
38         }
39 
position()40         wssize_t IOutStream::position()
41         {
42             return - set_error(STATUS_NOT_IMPLEMENTED);
43         }
44 
write(const void * buf,size_t count)45         ssize_t IOutStream::write(const void *buf, size_t count)
46         {
47             return - set_error(STATUS_NOT_IMPLEMENTED);
48         }
49 
seek(wsize_t position)50         wssize_t IOutStream::seek(wsize_t position)
51         {
52             return - set_error(STATUS_NOT_IMPLEMENTED);
53         }
54 
flush()55         status_t IOutStream::flush()
56         {
57             return - set_error(STATUS_NOT_IMPLEMENTED);
58         }
59 
close()60         status_t IOutStream::close()
61         {
62             return set_error(STATUS_OK);
63         }
64 
65     } /* namespace ws */
66 } /* namespace lsp */
67