Changeset 4278
- Timestamp:
- 03/03/10 23:08:44 (6 months ago)
- Location:
- trunk/showtime/src/htsmsg
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/showtime/src/htsmsg/htsmsg.c
r4259 r4278 620 620 return dst; 621 621 } 622 623 /** 624 * 625 */ 626 htsmsg_t * 627 htsmsg_get_map_in_list(htsmsg_t *m, int num) 628 { 629 htsmsg_field_t *f; 630 631 HTSMSG_FOREACH(f, m) { 632 if(!--num) 633 return htsmsg_get_map_by_field(f); 634 } 635 return NULL; 636 } 637 638 -
trunk/showtime/src/htsmsg/htsmsg.h
r4259 r4278 288 288 #define HTSMSG_FOREACH(f, msg) TAILQ_FOREACH(f, &(msg)->hm_fields, hmf_link) 289 289 290 291 /** 292 * Misc 293 */ 294 htsmsg_t *htsmsg_get_map_in_list(htsmsg_t *m, int num); 295 290 296 #endif /* HTSMSG_H_ */