libptpmgmt  1.4
libptpmgmt library that provides the functionality of linuxptp pmc
init.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: LGPL-3.0-or-later
2  SPDX-FileCopyrightText: Copyright © 2023 Erez Geva <ErezGeva2@gmail.com> */
3 
12 #ifndef __PTPMGMT_C_INIT_H
13 #define __PTPMGMT_C_INIT_H
14 
15 #include "c/opt.h"
16 #include "c/sock.h"
17 #include "c/msg.h"
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
24 typedef struct ptpmgmt_init_t *ptpmgmt_init;
25 
27 typedef const struct ptpmgmt_init_t *const_ptpmgmt_init;
28 
35  void *_this;
36  ptpmgmt_cfg sCfg;
37  ptpmgmt_safile sSaFile;
38  ptpmgmt_msg sMsg;
39  ptpmgmt_sk sSk;
46  void (*free)(ptpmgmt_init i);
51  void (*close)(ptpmgmt_init i);
85 
97 
103  bool (*use_uds)(ptpmgmt_init i);
104 
111 };
112 
118 
119 #ifdef __cplusplus
120 }
121 #endif
122 
123 #endif /* __PTPMGMT_C_INIT_H */
struct ptpmgmt_cfg_t * ptpmgmt_cfg
Definition: cfg.h:23
struct ptpmgmt_safile_t * ptpmgmt_safile
Definition: cfg.h:35
const struct ptpmgmt_init_t * const_ptpmgmt_init
Definition: init.h:27
struct ptpmgmt_init_t * ptpmgmt_init
Definition: init.h:24
ptpmgmt_init ptpmgmt_init_alloc()
Create and parse PTP management messages.
struct ptpmgmt_msg_t * ptpmgmt_msg
Definition: msg.h:26
C interface to command line options parsing class.
C interface to sockets classes.
struct ptpmgmt_sk_t * ptpmgmt_sk
Definition: sock.h:31
Definition: cfg.h:44
Definition: init.h:33
void(* close)(ptpmgmt_init i)
Definition: init.h:51
ptpmgmt_safile(* sa)(ptpmgmt_init i)
Definition: init.h:71
bool(* use_uds)(ptpmgmt_init i)
Definition: init.h:103
uint8_t(* allow_unauth)(const_ptpmgmt_init i)
Definition: init.h:110
char(* getNetSelect)(const_ptpmgmt_init i)
Definition: init.h:96
ptpmgmt_msg(* msg)(ptpmgmt_init i)
Definition: init.h:77
ptpmgmt_sk(* sk)(ptpmgmt_init i)
Definition: init.h:84
void(* free)(ptpmgmt_init i)
Definition: init.h:46
int(* process)(ptpmgmt_init i, const_ptpmgmt_opt opt)
Definition: init.h:59
ptpmgmt_cfg(* cfg)(ptpmgmt_init i)
Definition: init.h:65
Definition: msg.h:47
Definition: opt.h:50
Definition: cfg.h:295
Definition: sock.h:40