Added EC_HAVE_REDUNDANCY. redundancy
authorFlorian Pose <fp@igh-essen.com>
Thu, 31 May 2012 16:09:03 +0200
branchredundancy
changeset 2381 9efaf2a0cc48
parent 2380 cf9db49bcce8
child 2418 8cbb68315d29
Added EC_HAVE_REDUNDANCY.
include/ecrt.h
--- a/include/ecrt.h	Thu May 31 11:03:58 2012 +0200
+++ b/include/ecrt.h	Thu May 31 16:09:03 2012 +0200
@@ -44,6 +44,8 @@
  * - Added redundancy_active flag to ec_domain_state_t.
  * - Added ecrt_master_link_state() method and ec_master_link_state_t to query
  *   the state of a redundant link.
+ * - Added the EC_HAVE_REDUNDANCY define, to check, if the interface contains
+ *   redundancy features.
  *
  * Changes in version 1.5:
  *
@@ -125,6 +127,17 @@
  */
 #define ECRT_VERSION_MAGIC ECRT_VERSION(ECRT_VER_MAJOR, ECRT_VER_MINOR)
 
+/******************************************************************************
+ * Feature flags
+ *****************************************************************************/
+
+/** Defined, if the redundancy features are available.
+ *
+ * I. e. if the \a redundancy_active flag in ec_domain_state_t and the
+ * ecrt_master_link_state() method are available.
+ */
+#define EC_HAVE_REDUNDANCY
+
 /*****************************************************************************/
 
 /** End of list marker.