master/pdo_list.c
changeset 931 482bbaf3e76b
parent 879 9b395c5646ab
child 932 dbcc06156a60
--- a/master/pdo_list.c	Fri May 30 14:50:57 2008 +0000
+++ b/master/pdo_list.c	Mon Jun 02 08:54:51 2008 +0000
@@ -278,3 +278,21 @@
 }
 
 /*****************************************************************************/
+
+/**
+ */
+unsigned int ec_pdo_list_count(
+        const ec_pdo_list_t *pl /**< Pdo list. */
+        )
+{
+    const ec_pdo_t *pdo;
+    unsigned int num = 0;
+
+    list_for_each_entry(pdo, &pl->list, list) {
+        num++;
+    }
+
+    return num;
+}
+
+/*****************************************************************************/