Made ecrt_domain_size() const.
authorFlorian Pose <fp@igh-essen.com>
Fri, 10 Oct 2008 07:58:48 +0000
changeset 1257 9844ac126275
parent 1256 45fe0af4340b
child 1258 900f1124e8f8
Made ecrt_domain_size() const.
include/ecrt.h
lib/domain.c
master/domain.c
--- a/include/ecrt.h	Thu Oct 09 14:35:08 2008 +0000
+++ b/include/ecrt.h	Fri Oct 10 07:58:48 2008 +0000
@@ -785,7 +785,7 @@
  * \return Size of the process data image.
  */
 size_t ecrt_domain_size(
-        ec_domain_t *domain /**< Domain. */
+        const ec_domain_t *domain /**< Domain. */
         );
 
 #ifdef __KERNEL__
--- a/lib/domain.c	Thu Oct 09 14:35:08 2008 +0000
+++ b/lib/domain.c	Fri Oct 10 07:58:48 2008 +0000
@@ -66,13 +66,6 @@
 
 /*****************************************************************************/
 
-size_t ecrt_domain_size(ec_domain_t *domain)
-{
-	return 0;
-}
-
-/*****************************************************************************/
-
 uint8_t *ecrt_domain_data(ec_domain_t *domain)
 {
     return 0;
--- a/master/domain.c	Thu Oct 09 14:35:08 2008 +0000
+++ b/master/domain.c	Fri Oct 10 07:58:48 2008 +0000
@@ -344,7 +344,7 @@
 
 /*****************************************************************************/
 
-size_t ecrt_domain_size(ec_domain_t *domain)
+size_t ecrt_domain_size(const ec_domain_t *domain)
 {
     return domain->data_size;
 }