Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_writer.h
1 // See the 'COPYING' file in the project root for licensing information.
2 /*
3  * Helpers for interfaces afw_writer*
4  *
5  * Copyright (c) 2010-2023 Clemson University
6  *
7  */
8 
9 #ifndef __AFW_WRITER_H__
10 #define __AFW_WRITER_H__
11 
12 #include "afw_interface.h"
13 
28 
35 #define afw_writer_write_z(writer, s_z, xctx) \
36 afw_writer_write(writer, s_z, strlen(s_z), xctx)
37 
38 
45 #define afw_writer_write_utf8(writer, S, xctx) \
46 afw_writer_write(writer, (S)->s, (S)->len, xctx)
47 
48 
49 
56 AFW_DECLARE(void)
58  const afw_writer_t *writer,
59  afw_integer_t integer,
60  afw_xctx_t *xctx);
61 
62 
63 
70 AFW_DECLARE(void)
72  const afw_writer_t *writer,
73  afw_size_t size,
74  afw_xctx_t *xctx);
75 
76 
77 AFW_END_DECLARES
78 
81 #endif /* __AFW_WRITER_H__ */
#define AFW_BEGIN_DECLARES
#define AFW_DECLARE(type)
Declare a public afw function.
Interfaceafw_interface header.
apr_size_t afw_size_t
size_t.
Definition: afw_common.h:151
apr_int64_t afw_integer_t
typedef for big signed int.
Definition: afw_common.h:321
void afw_writer_write_integer(const afw_writer_t *writer, afw_integer_t integer, afw_xctx_t *xctx)
Call afw_writer_write() with an integer.
Definition: afw_writer.c:146
void afw_writer_write_size(const afw_writer_t *writer, afw_size_t size, afw_xctx_t *xctx)
Call afw_writer_write() with an size.
Definition: afw_writer.c:162
Interface afw_writer public struct.
Interface afw_xctx public struct.