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

Real Time Open Sound Control librtosc

Loading...
Searching...
No Matches
Classes | Functions
rtosc-version.h File Reference

Definition of rtosc's version struct. More...

Go to the source code of this file.

## Classes
struct | rtosc_version
| struct containing an rtosc version More...

## Functions
int | rtosc_version_cmp (const rtosc_version v1, const rtosc_version v2)
| memcmp-like version compare
rtosc_version | rtosc_current_version ()
| Return the version RT OSC has been compiled with.
void | rtosc_version_print_to_12byte_str (const rtosc_version *v, char *_12bytes)
| Print the version pointed to by `v` to the buffer `_12bytes`.

## Detailed Description

Definition of rtosc's version struct.

Note
  the implementation is in version.c.in

Test:
  version.c

## Function Documentation

## ◆ rtosc_version_cmp()

int rtosc_version_cmp | ( | const rtosc_version | v1,
|  | const rtosc_version | v2
| ) |  |

memcmp-like version compare

Returns
  an integer greater than, equal to, or less than 0, if v1 is greater than, equal to, or less than v2, respectively

## ◆ 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`.

The format "<major>.<minor>.<revision>" is being used

Parameters

  v | Pointer to the version that shall be printed
  _12bytes | A buffer with a size of at least 12 bytes