libpaf 1.1.13
Loading...
Searching...
No Matches
paf_value.h
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: BSD-3-Clause
3 * Copyright(c) 2020 Ericsson AB
4 */
5
6#ifndef PAF_VALUE_H
7#define PAF_VALUE_H
8#ifdef __cplusplus
9extern "C" {
10#endif
11
19#include <stdbool.h>
20#include <stdint.h>
21
22struct paf_value;
23
24
30bool paf_value_is_int64(const struct paf_value *value);
36bool paf_value_is_str(const struct paf_value *value);
37
45struct paf_value *paf_value_int64_create(int64_t value);
46
54int64_t paf_value_int64(const struct paf_value *value);
55
63struct paf_value *paf_value_str_create(const char *value);
64
75const char *paf_value_str(const struct paf_value *value);
76
88bool paf_value_equal(const struct paf_value *value_a,
89 const struct paf_value *value_b);
90
91
99struct paf_value *paf_value_clone(const struct paf_value *orig);
100
109void paf_value_destroy(struct paf_value *value);
110
111#ifdef __cplusplus
112}
113#endif
114#endif
struct paf_value * paf_value_clone(const struct paf_value *orig)
struct paf_value * paf_value_str_create(const char *value)
bool paf_value_equal(const struct paf_value *value_a, const struct paf_value *value_b)
struct paf_value * paf_value_int64_create(int64_t value)
bool paf_value_is_str(const struct paf_value *value)
const char * paf_value_str(const struct paf_value *value)
bool paf_value_is_int64(const struct paf_value *value)
void paf_value_destroy(struct paf_value *value)
int64_t paf_value_int64(const struct paf_value *value)