mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-08-18 09:07:24 +08:00
Wrapped c function in 'extern "C"' to make the library usable in C++
applications.
This commit is contained in:
@@ -327,6 +327,10 @@ typedef enum {
|
||||
* Global functions
|
||||
*****************************************************************************/
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/** Returns the version magic of the realtime interface.
|
||||
*
|
||||
* \return Value of ECRT_VERSION_MAGIC() at EtherCAT master compile time.
|
||||
@@ -1054,6 +1058,12 @@ ec_request_state_t ecrt_voe_handler_execute(
|
||||
ec_voe_handler_t *voe /**< VoE handler. */
|
||||
);
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
/******************************************************************************
|
||||
* Bitwise read/write macros
|
||||
*****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user