libptpmgmt  1.3
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 
20 typedef struct ptpmgmt_init_t *ptpmgmt_init;
21 
23 typedef const struct ptpmgmt_init_t *const_ptpmgmt_init;
24 
31  void *_this;
32  ptpmgmt_cfg sCfg;
33  ptpmgmt_safile sSaFile;
34  ptpmgmt_msg sMsg;
35  ptpmgmt_sk sSk;
42  void (*free)(ptpmgmt_init i);
47  void (*close)(ptpmgmt_init i);
81 
93 
99  bool (*use_uds)(ptpmgmt_init i);
100 
107 };
108 
114 
115 #endif /* __PTPMGMT_C_INIT_H */
struct ptpmgmt_cfg_t * ptpmgmt_cfg
Definition: cfg.h:21
struct ptpmgmt_safile_t * ptpmgmt_safile
Definition: cfg.h:33
const struct ptpmgmt_init_t * const_ptpmgmt_init
Definition: init.h:23
struct ptpmgmt_init_t * ptpmgmt_init
Definition: init.h:20
ptpmgmt_init ptpmgmt_init_alloc()
Create and parse PTP management messages.
struct ptpmgmt_msg_t * ptpmgmt_msg
Definition: msg.h:22
C interface to command line options parsing class.
C interface to sockets classes.
struct ptpmgmt_sk_t * ptpmgmt_sk
Definition: sock.h:27
Definition: cfg.h:42
Definition: init.h:29
void(* close)(ptpmgmt_init i)
Definition: init.h:47
ptpmgmt_safile(* sa)(ptpmgmt_init i)
Definition: init.h:67
bool(* use_uds)(ptpmgmt_init i)
Definition: init.h:99
uint8_t(* allow_unauth)(const_ptpmgmt_init i)
Definition: init.h:106
char(* getNetSelect)(const_ptpmgmt_init i)
Definition: init.h:92
ptpmgmt_msg(* msg)(ptpmgmt_init i)
Definition: init.h:73
ptpmgmt_sk(* sk)(ptpmgmt_init i)
Definition: init.h:80
void(* free)(ptpmgmt_init i)
Definition: init.h:42
int(* process)(ptpmgmt_init i, const_ptpmgmt_opt opt)
Definition: init.h:55
ptpmgmt_cfg(* cfg)(ptpmgmt_init i)
Definition: init.h:61
Definition: msg.h:43
Definition: opt.h:46
Definition: cfg.h:293
Definition: sock.h:36