mirror of
https://salsa.debian.org/ha-team/libqb
synced 2026-08-12 22:17:34 +00:00
Mainly as a light-weight alternative to full-blown autoconf/pkg-config
machineries, whereby one can:
* workaround functionality not present in libqb up to 1.0 (inclusive)
- note that this versioning schema is being introduced *after*
1.0.0 release so one cannot tell that version from any older,
but will be able to safely identify any later one (1.0.1+)
and act accordingly
- example:
#if !defined(QB_VER_MAJOR) || ((QB_VER_MAJOR == 1) && (QB_VER_MINOR < 1))
#warning "Feature X not supported"
int do_foo(int arg) { };
#else
int
do_foo(int arg)
{
/* use feature X of libqb */
}
#endif
* make its program report libqb API version it was built with by
emitting QB_VER_STR symbolic string (see tests/print_ver.c for example)
Also added is a print_ver test program to:
* emit how original unparsed version is parsed to particular components
defined in qbconfig.h (QB_VER_{MAJOR,MINOR,PATCH} symbolic integer
constants and QB_VER_REST symbolic string) when being compiled
* emit mentioned QB_VER_STR symbolic string joining the components
back to a single string, plus the components themselves
Resolves: https://github.com/ClusterLabs/libqb/issues/186
|
||
|---|---|---|
| .. | ||
| _syslog_override.c | ||
| _syslog_override.h | ||
| .gitignore | ||
| bench-log.c | ||
| blackbox-segfault.sh | ||
| bmc.c | ||
| bmcpt.c | ||
| bms.c | ||
| check_array.c | ||
| check_common.h | ||
| check_ipc.c | ||
| check_log.c | ||
| check_loop.c | ||
| check_map.c | ||
| check_rb.c | ||
| check_util.c | ||
| crash_test_dummy.c | ||
| file_change_bytes.c | ||
| format_compare_speed.c | ||
| loop.c | ||
| make-log-test.sh | ||
| Makefile.am | ||
| print_ver.c | ||
| rbreader.c | ||
| rbwriter.c | ||
| resources.test | ||
| run-coverity | ||
| test.conf.in | ||