Update of /cvsroot/ap-python/python/src
In directory usw-pr-cvs1:/tmp/cvs-serv14340/src
Modified Files:
pyplaylist.cpp
Log Message:
Bind Playlist::Sort method.
Index: pyplaylist.cpp
===================================================================
RCS file: /cvsroot/ap-python/python/src/pyplaylist.cpp,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** pyplaylist.cpp 21 Jul 2002 09:27:31 -0000 1.6
--- pyplaylist.cpp 29 Jul 2002 12:38:52 -0000 1.7
***************
*** 47,50 ****
--- 47,51 ----
// Clear clear
// Paused is_paused
+ // Sort sort
// Pause pause
// UnPause unpause
***************
*** 166,169 ****
--- 167,187 ----
};
+ // # # # # # # # # # # Sort (seq) # # # # # # # # # # # # # # #
+ static PyObject *pysort (PyPlaylist_Object *self, PyObject *args)
+ {
+ char *s;
+
+ if (!PyArg_ParseTuple (args, "s:sort", &s))
+ return NULL;
+
+ Py_BEGIN_ALLOW_THREADS
+ self->cobject->Sort (s);
+ Py_END_ALLOW_THREADS
+
+ Py_INCREF (Py_None);
+ return Py_None;
+ };
+
+
// # # # # # # # # # # Play (n, locking) # # # # # # # # # # # # #
static PyObject *pyplay (PyPlaylist_Object *self, PyObject *args)
***************
*** 431,434 ****
--- 449,453 ----
{"get_length", (PyCFunction) pyget_length, METH_VARARGS},
{"next", (PyCFunction) pynext, METH_VARARGS},
+ {"sort", (PyCFunction) pysort, METH_VARARGS},
{"prev", (PyCFunction) pyprev, METH_VARARGS},
{"get_current", (PyCFunction) pyget_current, METH_VARARGS},
|