1 /* 2 Copyright (C) 2016-2021, Dirk Krause 3 SPDX-License-Identifier: BSD-3-Clause 4 */ 5 6 /* 7 WARNING: This file was generated by the dkct program (see 8 http://dktools.sourceforge.net/ for details). 9 Changes you make here will be lost if dkct is run again! 10 You should modify the original source and run dkct on it. 11 Original source: dk4mbstrm.ctr 12 */ 13 14 /** @file dk4mbstrm.h Header file for the dk4mbstrm module. 15 */ 16 17 #ifndef DK4MBSTRM_H_INCLUDED 18 /** Avoid multiple inclusions. */ 19 #define DK4MBSTRM_H_INCLUDED 1 20 21 22 23 #ifndef DK4CONF_H_INCLUDED 24 #if DK4_BUILDING_DKTOOLS4 25 #include "dk4conf.h" 26 #else 27 #include <dktools-4/dk4conf.h> 28 #endif 29 #endif 30 31 #ifndef DK4STRM_H_INCLUDED 32 #if DK4_BUILDING_DKTOOLS4 33 #include <libdk4c/dk4strm.h> 34 #else 35 #include <dktools-4/dk4strm.h> 36 #endif 37 #endif 38 39 #ifndef DK4MEMBUF_H_INCLUDED 40 #if DK4_BUILDING_DKTOOLS4 41 #include <libdk4c/dk4membuf.h> 42 #else 43 #include <dktools-4/dk4membuf.h> 44 #endif 45 #endif 46 47 #ifndef DK4ERROR_H_INCLUDED 48 #if DK4_BUILDING_DKTOOLS4 49 #include <libdk4base/dk4error.h> 50 #else 51 #include <dktools-4/dk4error.h> 52 #endif 53 #endif 54 55 56 57 #ifdef __cplusplus 58 extern "C" { 59 #endif 60 61 /** Open stream to write to memory buffer. 62 Closing the resulting stream does not close the memory buffer. 63 @param mb Destination memory buffer. 64 @param erp Error report, may be NULL. 65 @return Valid pointer on success, NULL on error. 66 67 Error codes: 68 - DK4_E_INVALID_ARGUMENTS<br> 69 if mb is NULL. 70 */ 71 72 dk4_stream_t * 73 dk4stream_open_membuf_writer(dk4_membuf_t *mb, dk4_er_t *erp); 74 75 #ifdef __cplusplus 76 } 77 #endif 78 79 80 /* vim: set ai sw=4 ts=4 : */ 81 82 #endif 83