ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/DecentralizedMedia/BeepRemote.cpp
(Generate patch)

Comparing DecentralizedMedia/BeepRemote.cpp (file contents):
Revision 478 by douglas, 2005-06-08T17:16:59-07:00 vs.
Revision 480 by douglas, 2005-06-14T20:15:18-07:00

# Line 8 | Line 8
8  
9   #include "BeepRemote.hpp"
10  
11 < void BeepRemote::Playlist(const _L<ext::String>& list, bool enqueue)
12 < {
13 <        char** list_(new char*[list.GetSize()]);
14 <
15 <        _foreach (const _L<ext::String>, item, list)
16 <                list_[_index] = const_cast<char*>(item->NullTerminate());
17 <
18 <        ::xmms_remote_playlist(session, list_, list.GetSize(), enqueue);
19 <
20 <        delete [] list_;
21 < }
22 <
23 < void BeepRemote::PlaylistAdd(const _L<ext::String>& list)
24 < {
25 <        ::GList* list_(NULL);
26 <
27 <        _foreach (const _L<ext::String>, item, list)
28 <                list_ = ::g_list_append(list_, const_cast<char*>(item->NullTerminate()));
29 <
30 <        ::xmms_remote_playlist_add(session, list_);
31 <        ::g_list_free(list_);
32 < }
33 <
11 > template <>
12   void BeepRemote::PlaylistAdd(const ext::String& item)
13   {
14          ::GList list = { const_cast<char*>(item.NullTerminate()), NULL, NULL };

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines