libptpmgmt  1.4
libptpmgmt library that provides the functionality of linuxptp pmc
Classes | Typedefs | Functions
ptp.h File Reference

C interface to network and PHC classes. More...

#include "name.h"
#include <time.h>
Include dependency graph for ptp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ptpmgmt_ifInfo_t
 
struct  ptpmgmt_clock_t
 

Typedefs

typedef struct ptpmgmt_ifInfo_tptpmgmt_ifInfo
 
typedef const struct ptpmgmt_ifInfo_tconst_ptpmgmt_ifInfo
 
typedef struct ptpmgmt_clock_tptpmgmt_clock
 
typedef const struct ptpmgmt_clock_tconst_ptpmgmt_clock
 

Functions

ptpmgmt_ifInfo ptpmgmt_ifInfo_alloc ()
 
bool ptpmgmt_clock_isCharFile (const char *file)
 
ptpmgmt_clock ptpmgmt_clock_alloc ()
 
ptpmgmt_clock ptpmgmt_clock_alloc_sys ()
 

Detailed Description

C interface to network and PHC classes.

Author
Erez Geva <ErezGeva2@gmail.com>

Typedef Documentation

◆ const_ptpmgmt_clock

typedef const struct ptpmgmt_clock_t* const_ptpmgmt_clock

pointer to constant ptpmgmt clock structure

◆ const_ptpmgmt_ifInfo

typedef const struct ptpmgmt_ifInfo_t* const_ptpmgmt_ifInfo

pointer to constant ptpmgmt network interface structure

◆ ptpmgmt_clock

typedef struct ptpmgmt_clock_t* ptpmgmt_clock

pointer to ptpmgmt clocl structure

◆ ptpmgmt_ifInfo

< pointer to ptpmgmt network interface structure

Function Documentation

◆ ptpmgmt_clock_alloc()

ptpmgmt_clock ptpmgmt_clock_alloc ( )

Allocate a new ptpmgmt clock structure

Returns
a pointer to a new ptpmgmt clock structure or null on error

◆ ptpmgmt_clock_alloc_sys()

ptpmgmt_clock ptpmgmt_clock_alloc_sys ( )

Allocate a new ptpmgmt clock structure for system clock

Returns
a pointer to a new ptpmgmt clock structure or null on error

◆ ptpmgmt_clock_isCharFile()

bool ptpmgmt_clock_isCharFile ( const char *  file)

Check file is a char file

Parameters
[in]filename to check
Returns
true if file is char device
Note
function will follow a symbolic link

◆ ptpmgmt_ifInfo_alloc()

ptpmgmt_ifInfo ptpmgmt_ifInfo_alloc ( )

Allocate a new network interface object

Returns
a new network interface object or null on error