[Ap-python-commits] python/src pystreaminfo.cpp,1.5,1.6
Status: Beta
Brought to you by:
sjah
From: <sj...@us...> - 2002-08-17 09:24:37
|
Update of /cvsroot/ap-python/python/src In directory usw-pr-cvs1:/tmp/cvs-serv20799/src Modified Files: pystreaminfo.cpp Log Message: Bind ap_get_file_path. Add path member in StreamInfo object. Index: pystreaminfo.cpp =================================================================== RCS file: /cvsroot/ap-python/python/src/pystreaminfo.cpp,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** pystreaminfo.cpp 31 May 2002 19:28:42 -0000 1.5 --- pystreaminfo.cpp 17 Aug 2002 09:24:34 -0000 1.6 *************** *** 54,60 **** // MEMBERS if (!strcmp (name, "__members__")) ! return Py_BuildValue ("(s,s,s,s,s,s)", "stream_type", "title", "artist", "status", "album", "genre", ! "year", "track", "comment"); // -- filename member --- 54,60 ---- // MEMBERS if (!strcmp (name, "__members__")) ! return Py_BuildValue ("(s,s,s,s,s,s,s)", "stream_type", "title", "artist", "status", "album", "genre", ! "year", "track", "comment", "path"); // -- filename member *************** *** 86,89 **** --- 86,93 ---- return Py_BuildValue ("s", self->cstruct.comment); + // -- comment member + if (!strcmp (name, "path")) + return Py_BuildValue ("s", self->cstruct.path); + // -- track member if (!strcmp (name, "track")) *************** *** 121,124 **** --- 125,129 ---- pystreaminfo->cstruct.status[0] = '\0'; pystreaminfo->cstruct.stream_type[0] = '\0'; + pystreaminfo->cstruct.path[0] = '\0'; return pystreaminfo; |