aboutsummaryrefslogtreecommitdiffstats
path: root/man/rb_version.3
blob: 37a7a4ae3b3ab779bcec148005063287b0024981 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
.TH "rb_version" "3" " 9 February 2018 (v1.0.0)" "bofc.pl"
.SH NAME
.PP
.B rb_version
- queries for library version
.SH SYNOPSIS
.PP
.BI "#include <librb.h>"
.PP
.BI "const char *rb_version(char *" major ", char *" minor ", char *" patch ");"
.SH DESCRIPTION
.PP
Function returns library version.
Each of input parameters should be at least 4 bytes long.
If any of the input parameters is NULL function won't store anything and will
just return version as string.
.B librb
uses semantic versioning:
.TP
.I major
This will be incremented when changes non backward compatible changes are made
to either ABI or API.
.TP
.I minor
This will incremented when backward compatible changes are introduced (like new
features) to either ABI or API.
.TP
.I patch
This is incremented when patch is introduced without changing neither ABI nor
API.
.SH RETURN VALUES
.PP
Function returns pointer to statically allocated string with full version, like
"1.2.6"
.SH SEE ALSO
.PP
.BR rb_overview (7),
.BR rb_new (3),
.BR rb_destroy (3),
.BR rb_discard (3),
.BR rb_stop (3),
.BR rb_read (3),
.BR rb_recv (3),
.BR rb_write (3),
.BR rb_send (3),
.BR rb_clear (3),
.BR rb_count (3),
.BR rb_space (3),