Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_log_deprecated_interface.h
1 // See the 'COPYING' file in the project root for licensing information.
2 /*
3  * Adaptive Framework - Log Interface Header
4  *
5  * Copyright (c) 2010-2023 Clemson University
6  *
7  */
8 
9 #ifndef __AFWLOGINTERFACE_H__
10 #define __AFWLOGINTERFACE_H__
11 
12 
23 #include "afw_minimal.h"
24 
27 
31  int debug;
33 
37 );
38 
42  apr_pool_t *temp_pool,
43  const afw_utf8_z_t *prefix,
44  const afw_utf8_z_t *fmt,
45  va_list args
46 );
47 
51  apr_pool_t *temp_pool,
52  const afw_utf8_z_t *prefix,
53  const afw_utf8_z_t *fmt,
54  va_list args);
55 
59  apr_pool_t *temp_pool,
60  const afw_utf8_z_t *prefix,
61  const afw_utf8_z_t *fmt,
62  va_list args);
63 
65 typedef struct afw_log_deprecated_inf_t {
71 
74  const afw_log_deprecated_inf_t *inf;
76 };
77 
82 AFW_DEFINE_STATIC_INLINE(void) afw_release_log(afw_log_deprecated_t *log)
83 {
84  log->inf->release(log);
85 }
86 
94 AFW_DEFINE_STATIC_INLINE(void) afw_log_deprecated_message_v(
96  apr_pool_t *temp_pool,
97  const afw_utf8_z_t *prefix,
98  const afw_utf8_z_t *fmt,
99  va_list args)
100 {
101  log->inf->log_message(log, temp_pool, prefix, fmt, args);
102 }
103 
111 AFW_DEFINE_STATIC_INLINE(void) afw_log_deprecated_message(
113  apr_pool_t *temp_pool,
114  const afw_utf8_z_t *prefix,
115  const afw_utf8_z_t *fmt,
116  ...)
117 {
118  va_list args;
119  va_start(args, fmt);
120  log->inf->log_message(log, temp_pool, prefix, fmt, args);
121  va_end(args);
122 }
123 
131 AFW_DEFINE_STATIC_INLINE(void) afw_log_deprecated_error_v(
133  apr_pool_t *temp_pool,
134  const afw_utf8_z_t *prefix,
135  const afw_utf8_z_t *fmt,
136  va_list args)
137 {
138  log->inf->log_error(log, temp_pool, prefix, fmt, args);
139 }
140 
148 AFW_DEFINE_STATIC_INLINE(void) afw_log_deprecated_error(
150  apr_pool_t *temp_pool,
151  const afw_utf8_z_t *prefix,
152  const afw_utf8_z_t *fmt,
153  ...)
154 {
155  va_list args;
156  va_start(args, fmt);
157  log->inf->log_error(log, temp_pool, prefix, fmt, args);
158  va_end(args);
159 }
160 
168 AFW_DEFINE_STATIC_INLINE(void) afw_log_deprecated_trace_v(
170  apr_pool_t *temp_pool,
171  const afw_utf8_z_t *prefix,
172  const afw_utf8_z_t *fmt,
173  va_list args)
174 {
175  log->inf->log_trace(log, temp_pool, prefix, fmt, args);
176 }
177 
185 AFW_DEFINE_STATIC_INLINE(void) afw_log_deprecated_trace(
187  apr_pool_t *temp_pool,
188  const afw_utf8_z_t *prefix,
189  const afw_utf8_z_t *fmt,
190  ...)
191 {
192  va_list args;
193  va_start(args, fmt);
194  log->inf->log_trace(log, temp_pool, prefix, fmt, args);
195  va_end(args);
196 }
197 
200 #endif /* __AFWLOGINTERFACE_H__ */
Adaptive Framework Minimal Header.
afw_utf8_octet_t afw_utf8_z_t
NFC normalized UTF-8 null terminated string.
Definition: afw_common.h:523
void afw_log_deprecated_trace(afw_log_deprecated_t *log, apr_pool_t *temp_pool, const afw_utf8_z_t *prefix, const afw_utf8_z_t *fmt,...)
Issue a trace message.
void afw_log_deprecated_message_v(afw_log_deprecated_t *log, apr_pool_t *temp_pool, const afw_utf8_z_t *prefix, const afw_utf8_z_t *fmt, va_list args)
Issue a message.
void(* afw_log_deprecated_error_v_t)(afw_log_deprecated_t *log, apr_pool_t *temp_pool, const afw_utf8_z_t *prefix, const afw_utf8_z_t *fmt, va_list args)
void afw_release_log(afw_log_deprecated_t *log)
Release a log.
void afw_log_deprecated_error_v(afw_log_deprecated_t *log, apr_pool_t *temp_pool, const afw_utf8_z_t *prefix, const afw_utf8_z_t *fmt, va_list args)
Issue an error message.
void afw_log_deprecated_error(afw_log_deprecated_t *log, apr_pool_t *temp_pool, const afw_utf8_z_t *prefix, const afw_utf8_z_t *fmt,...)
Issue an error message.
struct afw_log_deprecated_trace_options_t afw_log_deprecated_trace_options_t
void(* afw_log_deprecated_message_v_t)(afw_log_deprecated_t *log, apr_pool_t *temp_pool, const afw_utf8_z_t *prefix, const afw_utf8_z_t *fmt, va_list args)
void(* afw_log_deprecated_release_t)(afw_log_deprecated_t *log)
void(* afw_log_deprecated_trace_v_t)(afw_log_deprecated_t *log, apr_pool_t *temp_pool, const afw_utf8_z_t *prefix, const afw_utf8_z_t *fmt, va_list args)
void afw_log_deprecated_trace_v(afw_log_deprecated_t *log, apr_pool_t *temp_pool, const afw_utf8_z_t *prefix, const afw_utf8_z_t *fmt, va_list args)
Issue a trace message.
struct afw_log_deprecated_inf_t afw_log_deprecated_inf_t
afw_log_deprecated_t interface.
void afw_log_deprecated_message(afw_log_deprecated_t *log, apr_pool_t *temp_pool, const afw_utf8_z_t *prefix, const afw_utf8_z_t *fmt,...)
Issue a message.
afw_log_deprecated_t interface.
Public afw_log_deprecated_t object.