libptpmgmt 2.0
libptpmgmt library that provides the functionality of linuxptp pmc
Loading...
Searching...
No Matches
json.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: LGPL-3.0-or-later
2 SPDX-FileCopyrightText: Copyright © 2021 Erez Geva <ErezGeva2@gmail.com> */
3
12#ifndef __PTPMGMT_C_JSON_H
13#define __PTPMGMT_C_JSON_H
14
15#include "c/msg.h"
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
24typedef const struct ptpmgmt_json_t *const_ptpmgmt_json;
27
35 const char *json_string;
40 void (*free)(ptpmgmt_json_str obj);
41};
42
50
59 const void *tlv, int indent);
60
224
225#ifdef __cplusplus
226}
227#endif
228
229#endif /* __PTPMGMT_C_JSON_H */
ptpmgmt_json ptpmgmt_json_alloc()
struct ptpmgmt_json_str_t * ptpmgmt_json_str
Definition json.h:26
struct ptpmgmt_json_t * ptpmgmt_json
Definition json.h:22
const struct ptpmgmt_json_t * const_ptpmgmt_json
Definition json.h:24
ptpmgmt_json_str ptpmgmt_json_tlv2json(enum ptpmgmt_mng_vals_e managementId, const void *tlv, int indent)
ptpmgmt_json_str ptpmgmt_json_msg2json(const_ptpmgmt_msg message, int indent)
ptpmgmt_mng_vals_e
Management TLVs ID.
Definition mngIds.h:28
Create and parse PTP management messages.
ptpmgmt_actionField_e
Definition types.h:199
Definition types.h:416
Definition json.h:31
const char * json_string
Definition json.h:35
void(* free)(ptpmgmt_json_str obj)
Definition json.h:40
Definition json.h:65
bool(* setAction)(const_ptpmgmt_json j, ptpmgmt_msg message)
Definition json.h:217
bool(* haveDomainNumber)(const_ptpmgmt_json j)
Definition json.h:139
bool(* havePTPProfileSpecific)(const_ptpmgmt_json j)
Definition json.h:127
uint8_t(* versionPTP)(const_ptpmgmt_json j)
Definition json.h:145
uint32_t(* sdoId)(const_ptpmgmt_json j)
Definition json.h:181
uint8_t(* domainNumber)(const_ptpmgmt_json j)
Definition json.h:133
enum ptpmgmt_actionField_e(* actionField)(const_ptpmgmt_json j)
Definition json.h:103
bool(* isUnicast)(const_ptpmgmt_json j)
Definition json.h:109
bool(* haveSequenceId)(const_ptpmgmt_json j)
Definition json.h:175
enum ptpmgmt_mng_vals_e(* managementId)(const_ptpmgmt_json j)
Definition json.h:90
bool(* fromJson)(ptpmgmt_json j, const char *json)
Definition json.h:84
void(* free)(ptpmgmt_json j)
Definition json.h:78
bool(* haveSrcPort)(const_ptpmgmt_json j)
Definition json.h:199
bool(* haveMinorVersionPTP)(const_ptpmgmt_json j)
Definition json.h:163
bool(* haveIsUnicast)(const_ptpmgmt_json j)
Definition json.h:115
bool(* haveSdoId)(const_ptpmgmt_json j)
Definition json.h:187
uint8_t(* PTPProfileSpecific)(const_ptpmgmt_json j)
Definition json.h:121
bool(* haveDstPort)(const_ptpmgmt_json j)
Definition json.h:211
bool(* haveVersionPTP)(const_ptpmgmt_json j)
Definition json.h:151
uint8_t(* minorVersionPTP)(const_ptpmgmt_json j)
Definition json.h:157
uint16_t(* sequenceId)(const_ptpmgmt_json j)
Definition json.h:169
Definition msg.h:47