~ubuntu-branches/ubuntu/maverick/xmms2/maverick

« back to all changes in this revision

Viewing changes to src/clients/lib/perl/XMMSClientCollection.xs

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung
  • Date: 2010-03-07 04:11:24 UTC
  • mfrom: (1.1.7 upstream) (6.1.13 sid)
  • Revision ID: james.westby@ubuntu.com-20100307041124-df7p8f9yejg1u1qn
Tags: 0.7DrNo-3ubuntu1
* Merge from Debian unstable (LP: #532278), remaining changes:
  - Use PulseAudio as default output plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
561
561
void
562
562
xmmsv_coll_attribute_list (xmmsv_coll_t *coll)
563
563
        PREINIT:
 
564
                xmmsv_dict_iter_t *it;
564
565
                const char *key;
565
566
                const char *value;
566
567
        PPCODE:
567
 
                xmmsv_coll_attribute_list_first (coll);
568
 
 
569
 
                while (xmmsv_coll_attribute_list_valid (coll)) {
570
 
                        xmmsv_coll_attribute_list_entry (coll, &key, &value);
 
568
                xmmsv_get_dict_iter (xmmsv_coll_attributes_get (coll), &it);
 
569
 
 
570
                for (xmmsv_dict_iter_first (it);
 
571
                     xmmsv_dict_iter_valid (it);
 
572
                     xmmsv_dict_iter_next (it)) {
 
573
 
 
574
                        xmmsv_dict_iter_pair_string (it, &key, &value);
571
575
 
572
576
                        EXTEND (sp, 2);
573
577
                        mPUSHp (key, strlen (key));
574
578
                        mPUSHp (value, strlen (value));
575
 
 
576
 
                        xmmsv_coll_attribute_list_next (coll);
577
579
                }
578
580
 
 
581
                xmmsv_dict_iter_explicit_destroy (it);
 
582
 
579
583
=head2 universe
580
584
 
581
585
=over 4