# HG changeset patch
# User Florian Pose <fp@igh-essen.com>
# Date 1204197814 0
# Node ID 3cb5769059f43465328fc225bf0f00d94270de72
# Parent  133528cfd5280b5a3773ffea823fb721dd8f99b3
Renamed ec_pdo_mapping_add_pdo() to ec_pdo_mapping_add_pdo_copy().

diff -r 133528cfd528 -r 3cb5769059f4 master/pdo_mapping.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;
     }
     
diff -r 133528cfd528 -r 3cb5769059f4 master/pdo_mapping.h
--- 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 *);
 
diff -r 133528cfd528 -r 3cb5769059f4 master/slave.c
--- 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;
diff -r 133528cfd528 -r 3cb5769059f4 master/sync.c
--- 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);
 }
 
 /*****************************************************************************/