levels 414 src/libsir/include/sir.h sirfileid sir_addfile(const char* path, sir_levels levels, sir_options opts); levels 500 src/libsir/include/sir.h bool sir_filelevels(sirfileid id, sir_levels levels); levels 626 src/libsir/include/sir.h bool sir_stdoutlevels(sir_levels levels); levels 670 src/libsir/include/sir.h bool sir_stderrlevels(sir_levels levels); levels 715 src/libsir/include/sir.h bool sir_sysloglevels(sir_levels levels); levels 40 src/libsir/include/sir/filecache.h sirfileid _sir_addfile(const char* path, sir_levels levels, sir_options opts); levels 44 src/libsir/include/sir/filecache.h sirfile* _sirfile_create(const char* path, sir_levels levels, sir_options opts); levels 58 src/libsir/include/sir/filecache.h sirfileid _sir_fcache_add(sirfcache* sfc, const char* path, sir_levels levels, levels 205 src/libsir/include/sir/helpers.h bool __sir_validlevels(sir_levels levels, const char* func, const char* file, levels 209 src/libsir/include/sir/helpers.h # define _sir_validlevels(levels) \ levels 210 src/libsir/include/sir/helpers.h __sir_validlevels(levels, __func__, __file__, __LINE__) levels 222 src/libsir/include/sir/helpers.h void _sir_defaultlevels(sir_levels* levels, sir_levels def) { levels 223 src/libsir/include/sir/helpers.h if (levels && SIRL_DEFAULT == *levels) levels 224 src/libsir/include/sir/helpers.h *levels = def; levels 183 src/libsir/include/sir/types.h sir_levels levels; levels 196 src/libsir/include/sir/types.h sir_levels levels; /**< ::sir_level bitmask defining levels to register for. */ levels 315 src/libsir/include/sir/types.h sir_levels levels; levels 334 src/libsir/include/sir/types.h sir_levels levels; /**< Level registration bitmask. */ levels 480 src/libsir/include/sir/types.h sir_levels* levels; /**< Level registrations. */ levels 132 src/libsir/src/sir.c sirfileid sir_addfile(const char* path, sir_levels levels, sir_options opts) { levels 133 src/libsir/src/sir.c return _sir_addfile(path, levels, opts); levels 158 src/libsir/src/sir.c bool sir_filelevels(sirfileid id, sir_levels levels) { levels 159 src/libsir/src/sir.c _sir_defaultlevels(&levels, sir_file_def_lvls); levels 160 src/libsir/src/sir.c sir_update_config_data data = {SIRU_LEVELS, &levels, NULL, NULL, NULL}; levels 193 src/libsir/src/sir.c bool sir_stdoutlevels(sir_levels levels) { levels 194 src/libsir/src/sir.c _sir_defaultlevels(&levels, sir_stdout_def_lvls); levels 195 src/libsir/src/sir.c sir_update_config_data data = {SIRU_LEVELS, &levels, NULL, NULL, NULL}; levels 205 src/libsir/src/sir.c bool sir_stderrlevels(sir_levels levels) { levels 206 src/libsir/src/sir.c _sir_defaultlevels(&levels, sir_stderr_def_lvls); levels 207 src/libsir/src/sir.c sir_update_config_data data = {SIRU_LEVELS, &levels, NULL, NULL, NULL}; levels 217 src/libsir/src/sir.c bool sir_sysloglevels(sir_levels levels) { levels 219 src/libsir/src/sir.c _sir_defaultlevels(&levels, sir_syslog_def_lvls); levels 220 src/libsir/src/sir.c sir_update_config_data data = {SIRU_LEVELS, &levels, NULL, NULL, NULL}; levels 223 src/libsir/src/sir.c SIR_UNUSED(levels); levels 38 src/libsir/src/sirfilecache.c sirfileid _sir_addfile(const char* path, sir_levels levels, sir_options opts) { levels 46 src/libsir/src/sirfilecache.c _sir_defaultlevels(&levels, sir_file_def_lvls); levels 49 src/libsir/src/sirfilecache.c sirfileid retval = _sir_fcache_add(sfc, path, levels, opts); levels 81 src/libsir/src/sirfilecache.c sirfile* _sirfile_create(const char* path, sir_levels levels, sir_options opts) { levels 82 src/libsir/src/sirfilecache.c if (!_sir_validstr(path) || !_sir_validlevels(levels) || !_sir_validopts(opts)) levels 98 src/libsir/src/sirfilecache.c sf->levels = levels; levels 376 src/libsir/src/sirfilecache.c if (sf->levels != *data->levels) { levels 378 src/libsir/src/sirfilecache.c " to %04"PRIx16, sf->id, sf->levels, *data->levels); levels 379 src/libsir/src/sirfilecache.c sf->levels = *data->levels; levels 382 src/libsir/src/sirfilecache.c " levels: %04"PRIx16, sf->id, sf->levels); levels 407 src/libsir/src/sirfilecache.c sirfileid _sir_fcache_add(sirfcache* sfc, const char* path, sir_levels levels, levels 409 src/libsir/src/sirfilecache.c if (!_sir_validptr(sfc) || !_sir_validstr(path) || !_sir_validlevels(levels) || levels 423 src/libsir/src/sirfilecache.c sirfile* sf = _sirfile_create(path, levels, opts); levels 612 src/libsir/src/sirfilecache.c if (!_sir_bittest(sfc->files[n]->levels, level)) { levels 615 src/libsir/src/sirfilecache.c level, sfc->files[n]->levels, sfc->files[n]->path, levels 95 src/libsir/src/sirhelpers.c valid = _sir_validptrnofail(data->levels) && levels 96 src/libsir/src/sirhelpers.c _sir_validlevels(*data->levels); levels 116 src/libsir/src/sirhelpers.c bool __sir_validlevels(sir_levels levels, const char* func, levels 118 src/libsir/src/sirhelpers.c if ((SIRL_ALL == levels || SIRL_NONE == levels) || levels 119 src/libsir/src/sirhelpers.c ((_sir_bittest(levels, SIRL_INFO) || levels 120 src/libsir/src/sirhelpers.c _sir_bittest(levels, SIRL_DEBUG) || levels 121 src/libsir/src/sirhelpers.c _sir_bittest(levels, SIRL_NOTICE) || levels 122 src/libsir/src/sirhelpers.c _sir_bittest(levels, SIRL_WARN) || levels 123 src/libsir/src/sirhelpers.c _sir_bittest(levels, SIRL_ERROR) || levels 124 src/libsir/src/sirhelpers.c _sir_bittest(levels, SIRL_CRIT) || levels 125 src/libsir/src/sirhelpers.c _sir_bittest(levels, SIRL_ALERT) || levels 126 src/libsir/src/sirhelpers.c _sir_bittest(levels, SIRL_EMERG)) && levels 127 src/libsir/src/sirhelpers.c ((levels & ~SIRL_ALL) == 0U))) levels 130 src/libsir/src/sirhelpers.c _sir_selflog("invalid levels: %04"PRIx16, levels); levels 96 src/libsir/src/sirinternal.c si->d_stdout.levels = SIRL_DEFAULT; levels 99 src/libsir/src/sirinternal.c si->d_stderr.levels = SIRL_DEFAULT; levels 103 src/libsir/src/sirinternal.c si->d_syslog.levels = SIRL_DEFAULT; levels 106 src/libsir/src/sirinternal.c si->d_syslog.levels = SIRL_NONE; levels 137 src/libsir/src/sirinternal.c _sir_defaultlevels(&si->d_stdout.levels, sir_stdout_def_lvls); levels 140 src/libsir/src/sirinternal.c _sir_defaultlevels(&si->d_stderr.levels, sir_stderr_def_lvls); levels 144 src/libsir/src/sirinternal.c _sir_defaultlevels(&si->d_syslog.levels, sir_syslog_def_lvls); levels 197 src/libsir/src/sirinternal.c if (_cfg->si.d_syslog.levels != SIRL_NONE && levels 289 src/libsir/src/sirinternal.c _sir_eqland(levelcheck, _sir_validlevels(si->d_stdout.levels)); levels 290 src/libsir/src/sirinternal.c _sir_eqland(levelcheck, _sir_validlevels(si->d_stderr.levels)); levels 293 src/libsir/src/sirinternal.c _sir_eqland(regcheck, SIRL_NONE == si->d_stdout.levels); levels 294 src/libsir/src/sirinternal.c _sir_eqland(regcheck, SIRL_NONE == si->d_stderr.levels); levels 297 src/libsir/src/sirinternal.c _sir_eqland(levelcheck, _sir_validlevels(si->d_syslog.levels)); levels 298 src/libsir/src/sirinternal.c _sir_eqland(regcheck, SIRL_NONE == si->d_syslog.levels); levels 351 src/libsir/src/sirinternal.c return _sir_updatelevels(SIR_DESTNAME_STDOUT, &si->d_stdout.levels, data->levels); levels 359 src/libsir/src/sirinternal.c return _sir_updatelevels(SIR_DESTNAME_STDERR, &si->d_stderr.levels, data->levels); levels 367 src/libsir/src/sirinternal.c bool updated = _sir_updatelevels(SIR_DESTNAME_SYSLOG, &si->d_syslog.levels, data->levels); levels 721 src/libsir/src/sirinternal.c if (_sir_bittest(si->d_stdout.levels, level)) { levels 732 src/libsir/src/sirinternal.c if (_sir_bittest(si->d_stderr.levels, level)) { levels 744 src/libsir/src/sirinternal.c if (_sir_bittest(si->d_syslog.levels, level)) { levels 928 src/libsir/src/sirinternal.c _sir_selflog("opening log (levels: %04"PRIx16", options: %08"PRIx32")", ctx->levels, levels 1067 src/libsir/src/sirinternal.c bool levels = _sir_bittest(si->d_syslog._state.mask, SIRSL_LEVELS); levels 1076 src/libsir/src/sirinternal.c levels, options, category, identity, is_init, is_open); levels 143 src/libsir/src/sirplugins.c if (!_sir_validlevels(plugin->info.levels)) { levels 145 src/libsir/src/sirplugins.c " %04"PRIx16, plugin->path, plugin->handle, plugin->info.levels); levels 194 src/libsir/src/sirplugins.c plugin->info.bld_ver, plugin->info.levels, plugin->info.opts, levels 469 src/libsir/src/sirplugins.c if (!_sir_bittest(spc->plugins[n]->info.levels, level)) { levels 472 src/libsir/src/sirplugins.c level, spc->plugins[n]->info.levels, spc->plugins[n]->path,