From 8ce397e8c0a83e49e390de9deb73d588e4931ecf Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Tue, 29 Oct 2024 21:02:25 -0500 Subject: Reworking of Result. --- include/fud_drain.hpp | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 include/fud_drain.hpp (limited to 'include/fud_drain.hpp') diff --git a/include/fud_drain.hpp b/include/fud_drain.hpp new file mode 100644 index 0000000..5b78b10 --- /dev/null +++ b/include/fud_drain.hpp @@ -0,0 +1,35 @@ +/* + * libfud + * Copyright 2024 Dominick Allen + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef FUD_DRAIN_HPP +#define FUD_DRAIN_HPP + +#include "fud_status.hpp" + +#include +#include + +namespace fud { + +struct DrainResult { + size_t bytesWritten; + FudStatus status; +}; + +} // namespace fud + +#endif -- cgit v1.2.3