| 1 |
/* |
| 2 |
* Copyright (C) 2020 Red Hat, Inc. |
| 3 |
* SPDX-License-Identifier: LGPL-2.1-or-later |
| 4 |
*/ |
| 5 |
|
| 6 |
#pragma once |
| 7 |
|
| 8 |
#include <stdbool.h> |
| 9 |
#include <stdint.h> |
| 10 |
#include <stdio.h> |
| 11 |
|
| 12 |
bool |
| 13 |
cockpit_json_print_string_property (FILE *stream, |
| 14 |
const char *key, |
| 15 |
const char *value, |
| 16 |
ssize_t maxlen); |
| 17 |
|
| 18 |
bool |
| 19 |
cockpit_json_print_bool_property (FILE *stream, |
| 20 |
const char *key, |
| 21 |
bool value); |
| 22 |
|
| 23 |
bool |
| 24 |
cockpit_json_print_integer_property (FILE *stream, |
| 25 |
const char *key, |
| 26 |
uint64_t value); |
| 27 |
|
| 28 |
FILE * |
| 29 |
cockpit_json_print_open_memfd (const char *name, |
| 30 |
int version); |
| 31 |
|
| 32 |
int |
| 33 |
cockpit_json_print_finish_memfd (FILE **stream); |