Real Time Open Sound Control librtosc: /build/rtosc/src/rtosc-0.3.1/include/rtosc/rtosc-version.h Source File

Real Time Open Sound Control librtosc

Loading...
Searching...
No Matches
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
37extern "C" {
38#endif
39
41 typedef struct
42{
43 unsigned char major;
44 unsigned char minor;
45 unsigned char revision;
46} rtosc_version;
47
51 int rtosc_version_cmp(const rtosc_version v1,
52 const rtosc_version v2);
53
55 rtosc_version rtosc_current_version();
56
62 void rtosc_version_print_to_12byte_str(const rtosc_version* v,
63 char* _12bytes);
64
65#ifdef __cplusplus
66};
67#endif
68
69#endif // RTOSC_VERSION
70
rtosc_version_cmp
int rtosc_version_cmp(const rtosc_version v1, const rtosc_version v2)
memcmp-like version compare
rtosc_current_version
rtosc_version rtosc_current_version()
Return the version RT OSC has been compiled with.
rtosc_version_print_to_12byte_str
void rtosc_version_print_to_12byte_str(const rtosc_version *v, char *_12bytes)
Print the version pointed to by v to the buffer _12bytes.
rtosc_version
struct containing an rtosc version
Definition: rtosc-version.h:42