equal
deleted
inserted
replaced
277 return NULL; |
277 return NULL; |
278 } |
278 } |
279 |
279 |
280 /*****************************************************************************/ |
280 /*****************************************************************************/ |
281 |
281 |
|
282 /** Finds a Pdo via its position in the list. |
|
283 * |
|
284 * Const version. |
|
285 */ |
|
286 const ec_pdo_t *ec_pdo_list_find_pdo_by_pos_const( |
|
287 const ec_pdo_list_t *pl, /**< Pdo list. */ |
|
288 unsigned int pos /**< Position in the list. */ |
|
289 ) |
|
290 { |
|
291 const ec_pdo_t *pdo; |
|
292 |
|
293 list_for_each_entry(pdo, &pl->list, list) { |
|
294 if (pos--) |
|
295 continue; |
|
296 return pdo; |
|
297 } |
|
298 |
|
299 return NULL; |
|
300 } |
|
301 |
|
302 /*****************************************************************************/ |
|
303 |
282 /** |
304 /** |
283 */ |
305 */ |
284 unsigned int ec_pdo_list_count( |
306 unsigned int ec_pdo_list_count( |
285 const ec_pdo_list_t *pl /**< Pdo list. */ |
307 const ec_pdo_list_t *pl /**< Pdo list. */ |
286 ) |
308 ) |