Ignore:
Timestamp:
May 19, 2006, 7:44:27 AM (14 years ago)
Author:
Sam Hocevar
Message:
  • Renamed caca_set_delay() and caca_get_rendertime() into caca_set_display_time() and caca_get_display_time() for consistency.
Location:
libcaca/trunk/python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/python/pypycaca.c

    r819 r964  
    1616static PyMethodDef CacaMethods[] = {
    1717    {"init", pycaca_init, METH_VARARGS, "Init libcaca"},
    18     {"set_delay", pycaca_set_delay, METH_VARARGS, "Set delay"},
    19     {"get_rendertime", pycaca_get_rendertime, METH_NOARGS, "Get render time"},
     18    {"set_display_time", pycaca_set_display_time, METH_VARARGS, "Set display time"},
     19    {"get_display_time", pycaca_get_display_time, METH_NOARGS, "Get render time"},
    2020    {"get_width", pycaca_get_width, METH_NOARGS, "Get width"},
    2121    {"get_height", pycaca_get_height, METH_NOARGS, "Get Height"},
     
    197197
    198198static PyObject *
    199 pycaca_set_delay(PyObject *self, PyObject *args)
     199pycaca_set_display_time(PyObject *self, PyObject *args)
    200200{
    201201  int value=0;
    202202  if (!PyArg_ParseTuple(args, "i", &value))
    203   caca_set_delay(value);
     203  caca_set_display_time(value);
    204204  return Py_BuildValue("i", 1); /*FIXME*/
    205205}
    206206
    207207static PyObject *
    208 pycaca_get_rendertime(PyObject *self, PyObject *args)
    209 {
    210   int ret = caca_get_rendertime();
     208pycaca_get_display_time(PyObject *self, PyObject *args)
     209{
     210  int ret = caca_get_display_time();
    211211  return Py_BuildValue("i", ret);
    212212}
  • libcaca/trunk/python/pypycaca.h

    r819 r964  
    2525pycaca_init(PyObject *self, PyObject *args);
    2626static PyObject *
    27 pycaca_set_delay(PyObject *self, PyObject *args);
     27pycaca_set_display_time(PyObject *self, PyObject *args);
    2828static PyObject *
    29 pycaca_get_rendertime(PyObject *self, PyObject *args);
     29pycaca_get_display_time(PyObject *self, PyObject *args);
    3030static PyObject *
    3131pycaca_get_width(PyObject *self, PyObject *args);
Note: See TracChangeset for help on using the changeset viewer.