libptpmgmt  1.4
libptpmgmt library that provides the functionality of linuxptp pmc
Functions
err.h File Reference

Get Last Error happend in library, C API. More...

Go to the source code of this file.

Functions

int ptpmgmt_err_isError ()
 
const char * ptpmgmt_err_getError ()
 
const char * ptpmgmt_err_getFile ()
 
int ptpmgmt_err_getFileLine ()
 
const char * ptpmgmt_err_getFunc ()
 
int ptpmgmt_err_getErrno ()
 
const char * ptpmgmt_err_getMsg ()
 
const char * ptpmgmt_err_getErrnoMsg ()
 

Detailed Description

Get Last Error happend in library, C API.

Author
Erez Geva <ErezGeva2@gmail.com>
Note
library do not use C++ exceptions, users can use this class to fetch error.

Function Documentation

◆ ptpmgmt_err_getErrno()

int ptpmgmt_err_getErrno ( )

Get last error errno value

Returns
last errno value or zero if last error was not using errno

◆ ptpmgmt_err_getErrnoMsg()

const char* ptpmgmt_err_getErrnoMsg ( )

Get last errno message

Returns
last error message
Note
The error do not include the errno message!

◆ ptpmgmt_err_getError()

const char* ptpmgmt_err_getError ( )

Get last error full string

Returns
last error string

◆ ptpmgmt_err_getFile()

const char* ptpmgmt_err_getFile ( )

Get last error source file name

Returns
last error source file name

◆ ptpmgmt_err_getFileLine()

int ptpmgmt_err_getFileLine ( )

Get last error source file line number

Returns
last error source file line number

◆ ptpmgmt_err_getFunc()

const char* ptpmgmt_err_getFunc ( )

Get last error function name

Returns
last error function name

◆ ptpmgmt_err_getMsg()

const char* ptpmgmt_err_getMsg ( )

Get last error message

Returns
last error message
Note
The error do not include the errno message!

◆ ptpmgmt_err_isError()

int ptpmgmt_err_isError ( )

Query if we have error

Returns
last error string