* ALL: bumped version number to 0.6.3-cvs
[vlc.git] / modules / control / corba / pyorbit-1.99.3.patch
1 --- pyorbit-1.99.3/src/pycorba-orb.c    2002-11-16 07:51:41.000000000 +0100
2 +++ pyorbit-1.99.3-modif/src/pycorba-orb.c      2003-01-22 14:43:30.000000000 +0100
3 @@ -154,6 +154,36 @@
4      return Py_None;
5  }
6  
7 +static PyObject *
8 +pycorba_orb_work_pending(PyCORBA_ORB *self)
9 +{
10 +    CORBA_boolean ret;
11 +    CORBA_Environment ev;
12 +    PyObject *py_ret;
13 +
14 +    CORBA_exception_init(&ev);
15 +    ret = CORBA_ORB_work_pending (self->orb, &ev);
16 +
17 +    if (pyorbit_check_ex(&ev))
18 +        return NULL;
19 +    py_ret = ret ? Py_True : Py_False;
20 +    Py_INCREF(py_ret);
21 +    return py_ret;
22 +}
23 +
24 +static PyObject *
25 +pycorba_orb_perform_work (PyCORBA_ORB *self)
26 +{
27 +    CORBA_Environment ev;
28 +
29 +    CORBA_exception_init(&ev);
30 +    CORBA_ORB_perform_work (self->orb, &ev);
31 +    if (pyorbit_check_ex(&ev))
32 +       return NULL;
33 +    Py_INCREF(Py_None);
34 +    return Py_None;
35 +}
36 +
37  static PyMethodDef pycorba_orb_methods[] = {
38      { "object_to_string", (PyCFunction)pycorba_orb_object_to_string, METH_VARARGS },
39      { "string_to_object", (PyCFunction)pycorba_orb_string_to_object, METH_VARARGS },
40 @@ -161,6 +191,8 @@
41      { "resolve_initial_references", (PyCFunction)pycorba_orb_resolve_initial_references, METH_VARARGS },
42      { "run", (PyCFunction)pycorba_orb_run, METH_NOARGS },
43      { "shutdown", (PyCFunction)pycorba_orb_shutdown, METH_VARARGS },
44 +    { "work_pending", (PyCFunction)pycorba_orb_work_pending, METH_VARARGS },
45 +    { "perform_work", (PyCFunction)pycorba_orb_perform_work, METH_VARARGS },
46      { NULL, NULL, 0 }
47  };
48