Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_log_impl.h
Go to the documentation of this file.
1 // See the 'COPYING' file in the project root for licensing information.
2 /*
3  * Helpers for afw_log implementation development
4  *
5  * Copyright (c) 2010-2023 Clemson University
6  *
7  */
8 
9 #ifndef __AFW_LOG_IMPL_H__
10 #define __AFW_LOG_IMPL_H__
11 
12 #include "afw_minimal.h"
13 
28 
36 
38  const afw_log_t *log;
39 
42 
45 
48 
51 
54 };
55 
56 
57 
124  const afw_log_inf_t *inf,
125  afw_size_t instance_size,
126  const afw_object_t *properties,
127  const afw_pool_t *p, afw_xctx_t *xctx);
128 
129 
136 AFW_DECLARE(void)
138  const afw_log_t *log,
139  const afw_utf8_t *property_name,
140  afw_xctx_t *xctx);
141 
142 
150 AFW_DECLARE(void)
152  const afw_log_t *log,
153  const afw_utf8_t *property_name,
154  afw_xctx_t *xctx);
155 
156 
159 AFW_END_DECLARES
160 
161 #endif /* __AFW_LOG_IMPL_H__ */
#define AFW_BEGIN_DECLARES
#define AFW_DECLARE(type)
Declare a public afw function.
Adaptive Framework Minimal Header.
int afw_log_priority_mask_t
Definition: afw_common.h:659
apr_size_t afw_size_t
size_t.
Definition: afw_common.h:151
afw_log_t * afw_log_impl_create_cede_p(const afw_log_inf_t *inf, afw_size_t instance_size, const afw_object_t *properties, const afw_pool_t *p, afw_xctx_t *xctx)
Developers should call this in all create functions for afw_log.
Definition: afw_log.c:769
void afw_log_impl_throw_property_required(const afw_log_t *log, const afw_utf8_t *property_name, afw_xctx_t *xctx)
Developers should call this for missing required configuration property.
Definition: afw_log.c:754
void afw_log_impl_throw_property_invalid(const afw_log_t *log, const afw_utf8_t *property_name, afw_xctx_t *xctx)
Developers should call this for configuration property errors.
Definition: afw_log.c:740
Struct for afw_log_impl_t.
Definition: afw_log_impl.h:35
const afw_log_t * log
Definition: afw_log_impl.h:38
afw_log_priority_mask_t mask
Definition: afw_log_impl.h:53
const afw_object_t * log_variables
Definition: afw_log_impl.h:41
const afw_object_t * custom_variables
Definition: afw_log_impl.h:44
const afw_value_t * filter
Definition: afw_log_impl.h:47
const afw_value_t * format
Definition: afw_log_impl.h:50
Interface afw_log_inf_s struct.
Interface afw_log public struct.
Interface afw_object public struct.
Interface afw_pool public struct.
NFC normalized UTF-8 string.
Definition: afw_common.h:545
Interface afw_value public struct.
Interface afw_xctx public struct.