Renamed ec_pdo_mapping_add_pdo() to ec_pdo_mapping_add_pdo_copy().
authorFlorian Pose <fp@igh-essen.com>
Thu, 28 Feb 2008 11:23:34 +0000
changeset 838 3cb5769059f4
parent 837 133528cfd528
child 839 e0757d452fc9
Renamed ec_pdo_mapping_add_pdo() to ec_pdo_mapping_add_pdo_copy().
master/pdo_mapping.c
master/pdo_mapping.h
master/slave.c
master/sync.c
--- a/master/pdo_mapping.c	Thu Feb 28 11:07:40 2008 +0000
+++ b/master/pdo_mapping.c	Thu Feb 28 11:23:34 2008 +0000
@@ -119,7 +119,7 @@
  *
  * \return 0 on success, else < 0
  */
-int ec_pdo_mapping_add_pdo(
+int ec_pdo_mapping_add_pdo_copy(
         ec_pdo_mapping_t *pm, /**< Pdo mapping. */
         const ec_pdo_t *pdo /**< Pdo to add. */
         )
@@ -269,7 +269,7 @@
 
     // Pdo already mapped?
     list_for_each_entry(other_pdo, &other->pdos, list) {
-        if (ec_pdo_mapping_add_pdo(pm, other_pdo))
+        if (ec_pdo_mapping_add_pdo_copy(pm, other_pdo))
             return -1;
     }
     
--- a/master/pdo_mapping.h	Thu Feb 28 11:07:40 2008 +0000
+++ b/master/pdo_mapping.h	Thu Feb 28 11:23:34 2008 +0000
@@ -64,7 +64,7 @@
 
 void ec_pdo_mapping_clear_pdos(ec_pdo_mapping_t *);
 
-int ec_pdo_mapping_add_pdo(ec_pdo_mapping_t *, const ec_pdo_t *);
+int ec_pdo_mapping_add_pdo_copy(ec_pdo_mapping_t *, const ec_pdo_t *);
 int ec_pdo_mapping_add_pdo_info(ec_pdo_mapping_t *, const ec_pdo_info_t *,
         const ec_slave_config_t *);
 
--- a/master/slave.c	Thu Feb 28 11:07:40 2008 +0000
+++ b/master/slave.c	Thu Feb 28 11:23:34 2008 +0000
@@ -568,7 +568,7 @@
             }
             sync = &slave->sii.syncs[pdo->sync_index];
 
-            if (ec_pdo_mapping_add_pdo(&sync->mapping, pdo))
+            if (ec_pdo_mapping_add_pdo_copy(&sync->mapping, pdo))
                 return -1;
 
             sync->mapping_source = EC_SYNC_MAPPING_SII;
--- a/master/sync.c	Thu Feb 28 11:07:40 2008 +0000
+++ b/master/sync.c	Thu Feb 28 11:23:34 2008 +0000
@@ -107,7 +107,7 @@
         const ec_pdo_t *pdo /**< Pdo to map. */
         )
 {
-    return ec_pdo_mapping_add_pdo(&sync->mapping, pdo);
+    return ec_pdo_mapping_add_pdo_copy(&sync->mapping, pdo);
 }
 
 /*****************************************************************************/