libose
Loading...
Searching...
No Matches
ose_print.h
1/*
2 Copyright (c) 2019-21 John MacCallum Permission is hereby granted,
3 free of charge, to any person obtaining a copy of this software
4 and associated documentation files (the "Software"), to deal in
5 the Software without restriction, including without limitation the
6 rights to use, copy, modify, merge, publish, distribute,
7 sublicense, and/or sell copies of the Software, and to permit
8 persons to whom the Software is furnished to do so, subject to the
9 following conditions:
10
11 The above copyright notice and this permission notice shall be
12 included in all copies or substantial portions of the Software.
13
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
18 HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
19 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 DEALINGS IN THE SOFTWARE.
22*/
23
24#ifndef OSE_PRINT_H
25#define OSE_PRINT_H
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31
32#ifdef OSE_PROVIDE_TYPE_SYMBOL
43int32_t ose_printSymbol(char *buf, int32_t buflen,
44 const char * const s);
45#endif
46
47#ifdef OSE_PROVIDE_TYPE_TIMETAG
65int32_t ose_printTimetag(char *buf, int32_t buflen,
66 struct ose_timetag timetag);
76int32_t ose_printTimetag_p(char *buf, int32_t buflen,
77 const struct ose_timetag timetag);
86int32_t ose_printTimetag_pq(char *buf, int32_t buflen,
87 const struct ose_timetag timetag);
100struct ose_timetag ose_parseTimetag(const char * const s);
101#endif
102
103#ifdef OSE_PROVIDE_TYPE_TRUE
111int32_t ose_paddedPrintLenTrue(void);
122int32_t ose_printTrue(char *buf, int32_t buflen);
123#endif
124
125#ifdef OSE_PROVIDE_TYPE_FALSE
133int32_t ose_paddedPrintLenFalse(void);
144int32_t ose_printFalse(char *buf, int32_t buflen);
145#endif
146
147#ifdef OSE_PROVIDE_TYPE_NIL
155int32_t ose_paddedPrintLenNil(void);
166int32_t ose_printNil(char *buf, int32_t buflen);
167#endif
168
169#ifdef OSE_PROVIDE_TYPE_INFINITUM
177int32_t ose_paddedPrintLenInfinitum(void);
188int32_t ose_printInfinitum(char *buf, int32_t buflen);
189#endif
190
191#ifdef __cplusplus
192}
193#endif
194
195#endif
Convenience struct for OSC/NTP timetags.
Definition ose.h:420