libose
Loading...
Searching...
No Matches
ose_pprint.h
Go to the documentation of this file.
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
35#ifndef OSE_PPRINT_H
36#define OSE_PPRINT_H
37
38#ifdef __cplusplus
39extern "C" {
40#endif
41
42#include "ose.h"
43
44int32_t ose_pprintPayloadItem_hook(ose_bundle bundle,
45 const char typetag,
46 const int32_t msg_offset,
47 const int32_t item_offset);
48
49int32_t ose_pprintBundleElem_msg(ose_bundle bundle,
50 int32_t offset,
51 char *buf,
52 int32_t buflen,
53 int32_t indent);
54
55int32_t ose_pprintBundle(ose_bundle bundle,
56 char *buf,
57 int32_t buflen);
58
59int32_t ose_pprintFullBundle_impl(ose_constbundle bundle,
60 char *buf, int32_t buflen,
61 const char * const name);
62void ose_pprintFullBundle(ose_constbundle src,
63 ose_bundle dest,
64 const char * const name);
65
66#ifdef __cplusplus
67}
68#endif
69
70#endif
provides global definitions and types
Definition ose.h:374