33#ifndef _SIR_INTERNAL_H_INCLUDED
34# define _SIR_INTERNAL_H_INCLUDED
36# include "sir/helpers.h"
38# include "sir/errors.h"
40# if defined(__cplusplus)
54bool _sir_cleanup(
void);
57bool _sir_isinitialized(
void);
63bool _sir_sanity(
void);
66bool _sir_init_sanity(
const sirinit* si);
69void _sir_reset_tls(
void);
102void* _sir_locksection(sir_mutex_id mid);
105void _sir_unlocksection(sir_mutex_id mid);
108bool _sir_mapmutexid(sir_mutex_id mid, sir_mutex** m,
void** section);
110# if !defined(__WIN__)
112void _sir_init_static_once(
void);
115BOOL CALLBACK _sir_init_static_once(PINIT_ONCE ponce, PVOID param, PVOID* ctx);
119bool _sir_init_common_static(
void);
122bool _sir_once(sir_once* once, sir_once_fn func);
125PRINTF_FORMAT_ATTR(2, 0)
126bool _sir_logv(
sir_level level, PRINTF_FORMAT const
char* format, va_list args);
171const
char* _sir_formattedlevelstr(
sir_level level);
174bool _sir_clock_gettime(
int clock, time_t* tbuf,
long* msecbuf);
183pid_t _sir_getpid(
void);
186pid_t _sir_gettid(
void);
189bool _sir_getthreadname(
char name[SIR_MAXPID]);
192bool _sir_setthreadname(const
char* name);
195bool _sir_gethostname(
char name[SIR_MAXHOST]);
198long __sir_nprocs(
bool test_mode);
199# define _sir_nprocs() __sir_nprocs(0)
200# define _sir_nprocs_test() __sir_nprocs(1)
202# if defined(__cplusplus)
uint16_t sir_level
The sir_level type.
Definition types.h:71
uint32_t sir_options
sir_option bitmask type.
Definition types.h:96
Configuration for the system logger destination.
Definition types.h:195
libsir initialization and configuration data.
Definition types.h:244
Internally-used time value type.
Definition types.h:281
Encapsulates dynamic updating of current configuration.
Definition types.h:478
Formatted output container.
Definition types.h:412