master/pdo_list.c
changeset 931 482bbaf3e76b
parent 879 9b395c5646ab
child 932 dbcc06156a60
equal deleted inserted replaced
930:35358e9bb62b 931:482bbaf3e76b
   276 
   276 
   277     return NULL;
   277     return NULL;
   278 }
   278 }
   279 
   279 
   280 /*****************************************************************************/
   280 /*****************************************************************************/
       
   281 
       
   282 /**
       
   283  */
       
   284 unsigned int ec_pdo_list_count(
       
   285         const ec_pdo_list_t *pl /**< Pdo list. */
       
   286         )
       
   287 {
       
   288     const ec_pdo_t *pdo;
       
   289     unsigned int num = 0;
       
   290 
       
   291     list_for_each_entry(pdo, &pl->list, list) {
       
   292         num++;
       
   293     }
       
   294 
       
   295     return num;
       
   296 }
       
   297 
       
   298 /*****************************************************************************/