Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
afw_os.h
Go to the documentation of this file.
1 // See the 'COPYING' file in the project root for licensing information.
2 /*
3  * Adaptive Framework OS Specific Header for unix-like systems
4  *
5  * Copyright (c) 2010-2023 Clemson University
6  *
7  */
8 
9 #ifndef __AFW_OS_H__
10 #define __AFW_OS_H__
11 
12 #include "afw_interface.h"
13 
29 
40 AFW_DECLARE(void)
42 
43 
50 
51 
56 AFW_DECLARE(const afw_utf8_t *)
58 
59 
67 AFW_DECLARE(const afw_log_t *)
69  const afw_object_t * properties,
70  const afw_pool_t *p, afw_xctx_t *xctx);
71 
72 
79 
80 
96 AFW_DECLARE(const afw_utf8_t *)
98  afw_error_code_t code,
99  int max_backtrace,
100  afw_xctx_t *xctx);
101 
102 
103 AFW_END_DECLARES
104 
107 #endif /* __AFW_OS_H__ */
#define AFW_BEGIN_DECLARES
#define AFW_DECLARE(type)
Declare a public afw function.
Interfaceafw_interface header.
enum afw_error_code_e afw_error_code_t
apr_uint32_t afw_uint32_t
32-bit unsigned integer.
Definition: afw_common.h:184
void afw_os_environment_initialize(afw_xctx_t *xctx)
afw_os environment initialize
Definition: nix/afw_os.c:607
const afw_utf8_t * afw_os_backtrace(afw_error_code_t code, int max_backtrace, afw_xctx_t *xctx)
Provide a backtrace if possible.
Definition: nix/afw_os.c:729
const afw_utf8_t * afw_os_get_dso_suffix()
Return the suffix appended to dso file names for this system.
Definition: nix/afw_os.c:643
afw_uint32_t afw_os_get_pid()
Return a process id or similar number.
Definition: win/afw_os.c:174
const afw_log_t * afw_os_log_create(const afw_object_t *properties, const afw_pool_t *p, afw_xctx_t *xctx)
Create an instance of the OS log.
const afw_log_factory_t * afw_os_log_factory_get()
Get the factory for OS log.
Interface afw_log_factory public 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_xctx public struct.