Real Time Open Sound Control librtosc
rtosc-version.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 Johannes Lorenz
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a
5  * copy of this software and associated documentation files (the "Software"),
6  * to deal in the Software without restriction, including without limitation
7  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8  * and/or sell copies of the Software, and to permit persons to whom the
9  * Software is furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice (including the next
12  * paragraph) shall be included in all copies or substantial portions of the
13  * Software.
14  *
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19  * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  * DEALINGS IN THE SOFTWARE.
23  */
24 
33 #ifndef RTOSC_VERSION
34 #define RTOSC_VERSION
35 
36 #ifdef __cplusplus
37 extern "C" {
38 #endif
39 
41 typedef struct
42 {
43  unsigned char major;
44  unsigned char minor;
45  unsigned char revision;
47 
51 int rtosc_version_cmp(const rtosc_version v1,
52  const rtosc_version v2);
53 
56 
63  char* _12bytes);
64 
65 #ifdef __cplusplus
66 };
67 #endif
68 
69 #endif // RTOSC_VERSION
70 
rtosc_version rtosc_current_version()
Return the version RT OSC has been compiled with.
struct containing an rtosc version
Definition: rtosc-version.h:41
int rtosc_version_cmp(const rtosc_version v1, const rtosc_version v2)
memcmp-like version compare
void rtosc_version_print_to_12byte_str(const rtosc_version *v, char *_12bytes)
Print the version pointed to by v to the buffer _12bytes.