merge -c1501 trunk: ecrt_domain_size() const. stable-1.4
authorFlorian Pose <fp@igh-essen.com>
Mon, 29 Dec 2008 15:27:39 +0000
branchstable-1.4
changeset 1689 3cf22779c0cb
parent 1688 12046addaec5
child 1690 b7c865818f0a
merge -c1501 trunk: ecrt_domain_size() const.
NEWS
include/ecrt.h
master/domain.c
--- a/NEWS	Mon Dec 29 15:24:37 2008 +0000
+++ b/NEWS	Mon Dec 29 15:27:39 2008 +0000
@@ -22,6 +22,7 @@
 * Restricted licence to GPLv2 only.
 * Fixed spelling of 'PDO', 'SDO' (all uppercase) and 'xx over EtherCAT'
   (without hyphens).
+* Made domain pointer parameter of ecrt_domain_size() const.
 
 Changes in version 1.4.0-rc3:
 
--- a/include/ecrt.h	Mon Dec 29 15:24:37 2008 +0000
+++ b/include/ecrt.h	Mon Dec 29 15:27:39 2008 +0000
@@ -751,7 +751,7 @@
  * \return Size of the process data image.
  */
 size_t ecrt_domain_size(
-        ec_domain_t *domain /**< Domain. */
+        const ec_domain_t *domain /**< Domain. */
         );
 
 /** Provide external memory to store the domain's process data.
--- a/master/domain.c	Mon Dec 29 15:24:37 2008 +0000
+++ b/master/domain.c	Mon Dec 29 15:27:39 2008 +0000
@@ -336,7 +336,7 @@
 
 /*****************************************************************************/
 
-size_t ecrt_domain_size(ec_domain_t *domain)
+size_t ecrt_domain_size(const ec_domain_t *domain)
 {
     return domain->data_size;
 }