Changeset 4278

Show
Ignore:
Timestamp:
03/03/10 23:08:44 (6 months ago)
Author:
andoma
Message:

Add htsmsg_get_map_in_list()

Location:
trunk/showtime/src/htsmsg
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/showtime/src/htsmsg/htsmsg.c

    r4259 r4278  
    620620  return dst; 
    621621} 
     622 
     623/** 
     624 * 
     625 */ 
     626htsmsg_t * 
     627htsmsg_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  
    288288#define HTSMSG_FOREACH(f, msg) TAILQ_FOREACH(f, &(msg)->hm_fields, hmf_link) 
    289289 
     290 
     291/** 
     292 * Misc 
     293 */ 
     294htsmsg_t *htsmsg_get_map_in_list(htsmsg_t *m, int num); 
     295 
    290296#endif /* HTSMSG_H_ */