/vbox/src/libs/xpcom18a4/python/server/ |
H A D | __init__.py | 55 def WrapObject(ob, iid, policy = None, bWrapClient = 1): 63 ob = tracer(ob) 64 return _xpcom.WrapObject(policy( ob, iid ), iid, bWrapClient) 67 def UnwrapObject(ob): 68 if ob is None: 70 ret = _xpcom.UnwrapObject(ob)._obj_
|
H A D | policy.py | 103 def GetClassInfoForObject(ob): 105 ob = xpcom.server.tracer_unwrap(ob) 106 klass = ob.__class__
|
/vbox/src/libs/xpcom18a4/python/test/ |
H A D | test_isupports_primitives.py | 127 ob = xpcom.server.WrapObject( NoSupportsString(), components.interfaces.nsISupports) 128 if not str(ob).startswith("<XPCOM "): 129 raise RuntimeError, "Wrong str() value: %s" % (ob,) 132 ob = xpcom.server.WrapObject( ImplicitSupportsString(), components.interfaces.nsISupports) 133 self.failUnlessEqual(str(ob), "<MyImplicitStrObject>") 136 ob = xpcom.server.WrapObject( ExplicitSupportsString(), components.interfaces.nsISupports) 137 self.failUnlessEqual(str(ob), "<MyExplicitStrObject>") 140 ob = xpcom.server.WrapObject( ImplicitSupportsUnicode(), components.interfaces.nsISupports) 141 self.failUnlessEqual(unicode(ob), ImplicitSupportsUnicode.test_data) 144 ob [all...] |
H A D | test_weakreferences.py | 63 ob = xpcom.server.WrapObject( koTestSimple(), components.interfaces.nsIInputStream) 68 wr = xpcom.client.WeakReference(ob) 75 ob = None # This should kill the object. 82 ob = xpcom.server.WrapObject( koTestSimple(), components.interfaces.nsISupports) 84 wr = xpcom.client.WeakReference(ob, components.interfaces.nsIInputStream) 87 ob = None # This should kill the object.
|
H A D | test_com_exceptions.py | 113 ob = WrapObject( PythonFailingComponent(), components.interfaces.nsIPythonTestInterfaceExtra) 114 self._testit(nsError.NS_ERROR_FAILURE, 0, ob.do_boolean, 0, 0) 115 self._testit(nsError.NS_ERROR_NOT_IMPLEMENTED, 0, ob.do_octet, 0, 0) 116 self._testit(nsError.NS_ERROR_FAILURE, 1, ob.do_short, 0, 0) 117 self._testit(nsError.NS_ERROR_FAILURE, 1, ob.do_unsigned_short, 0, 0) 118 self._testit(nsError.NS_ERROR_FAILURE, 0, ob.do_long, 0, 0) 119 self._testit(nsError.NS_ERROR_NOT_IMPLEMENTED, 0, ob.do_unsigned_long, 0, 0) 120 self._testit(nsError.NS_ERROR_NOT_IMPLEMENTED, 0, ob.do_long_long, 0, 0) 121 self._testit(nsError.NS_ERROR_FAILURE, 1, ob.do_unsigned_long_long, 0, 0)
|
H A D | test_misc.py | 190 ob = xpcom.components.classes[progid].createInstance() 192 ob = progid 193 self.failUnless(repr(ob).find(str(progid)) >= 0, repr(ob)) 195 self.failUnless(repr(ob).find(interface_name) >= 0, repr(ob)) 207 ob = get_sample_component_cpp() 208 if ob is None: 210 self._doTestRepr(ob, "nsISample") 216 ob [all...] |
H A D | test_streams.py | 79 ob = xpcom.server.WrapObject( koTestSimpleStream(), _xpcom.IID_nsISupports) 80 ob = xpcom.client.Component(ob._comobj_, components.interfaces.nsIInputStream) 81 return ob
|
H A D | test_test_component.py | 80 def test_attribute(ob, attr_name, expected_init, new_value, new_value_really = None): 86 _test_value( "getting initial attribute value (%s)" % (attr_name,), getattr(ob, attr_name), expected_init) 87 setattr(ob, attr_name, new_value) 88 _test_value( "getting new attribute value (%s)" % (attr_name,), getattr(ob, attr_name), new_value_really) 90 setattr(ob, attr_name, expected_init) 91 _test_value( "getting back initial attribute value after change (%s)" % (attr_name,), getattr(ob, attr_name), expected_init) 93 def test_string_attribute(ob, attr_name, expected_init, is_dumb_sz = False, ascii_only = False): 94 test_attribute(ob, attr_name, expected_init, "normal value") 100 test_attribute(ob, attr_name, expected_init, val, expected) 101 test_attribute(ob, attr_nam [all...] |
/vbox/src/libs/xpcom18a4/python/tools/ |
H A D | tracer_demo.py | 64 def __init__(self, ob): 65 self.__dict__['_ob'] = ob 87 def MakeTracer(ob): 89 if isinstance(ob, Tracer): 90 return ob 91 return Tracer(ob)
|
/vbox/src/libs/xpcom18a4/python/src/ |
H A D | PyISupports.cpp | 184 Py_nsISupports::SafeRelease(Py_nsISupports *ob) argument 186 if (!ob) 188 if (ob->m_obj) 191 ob->m_obj = nsnull; 245 Py_nsISupports::InterfaceFromPyISupports(PyObject *ob, argument 251 if ( !Check(ob) ) 253 PyErr_Format(PyExc_TypeError, "Objects of type '%s' can not be used as COM objects", ob->ob_type->tp_name); 257 pis = GetI(ob, &already_iid); 294 Py_nsISupports::InterfaceFromPyObject(PyObject *ob, argument 300 if ( ob [all...] |
H A D | PyIID.cpp | 102 Py_nsIID::IIDFromPyObject(PyObject *ob, nsIID *pRet) { argument 105 if (ob==NULL) { 109 if (PyString_Check(ob)) { 110 ok = iid.Parse(PyString_AsString(ob)); 115 } else if (ob->ob_type == &type) { 116 iid = ((Py_nsIID *)ob)->m_iid; 117 } else if (PyObject_HasAttrString(ob, "__class__")) { 119 PyObject *use_ob = PyObject_GetAttrString(ob, "_iidobj_"); 132 PyErr_Format(PyExc_TypeError, "Objects of type '%s' can not be converted to an IID", ob->ob_type->tp_name); 243 Py_nsIID::PyTypeMethod_dealloc(PyObject *ob) argument [all...] |
H A D | PyXPCOM.h | 222 PYXPCOM_EXPORT PRBool PyObject_AsNSString( PyObject *ob, nsAString &aStr); 225 PYXPCOM_EXPORT nsresult PyObject_AsVariant( PyObject *ob, nsIVariant **aRet); 264 static void Py_dealloc(PyObject *ob); 265 static PyObject *Py_repr(PyObject *ob); 266 static PyObject *Py_str(PyObject *ob); 288 static PRBool Check( PyObject *ob, const nsIID &checkIID = Py_nsIID_NULL) { argument 289 Py_nsISupports *self = static_cast<Py_nsISupports *>(ob); 290 if (ob==NULL || !PyXPCOM_TypeObject::IsType(ob->ob_type )) 327 PyObject *ob, 402 IsEqual(PyObject *ob) argument [all...] |
H A D | Pyxpt_info.cpp | 82 PyObject *ob = PyObject_FromXPTTypeDescriptor(&d->type); local 83 PyObject *ret = Py_BuildValue("bO", d->flags, ob); 84 Py_DECREF(ob);
|
H A D | PyGBase.cpp | 195 PyG_Base::AutoWrapPythonInstance(PyObject *ob, const nsIID &iid, nsISupports **ppret) argument 198 NS_PRECONDITION(ob && PyObject_HasAttrString(ob, "__class__"), 214 if (CheckDefaultGateway(ob, iid, ppret)) { 221 args = Py_BuildValue("OOzi", ob, obIID, NULL, 0); 231 NS_ABORT_IF_FALSE(CheckDefaultGateway(ob, iid, &temp), "Auto-wrapped object didnt get a default gateway!"); 363 PyObject * ob = Py_nsIID::PyObjectFromIID(iid); local 369 if ( !ob || !this_interface_ob) { 370 Py_XDECREF(ob); 377 this_interface_ob, ob); [all...] |
H A D | VariantUtils.cpp | 657 static PRUint16 BestVariantTypeForPyObject( PyObject *ob, BVFTResult *pdata = NULL) argument 662 if (ob==Py_None) 664 if (ob==Py_True || ob == Py_False) 666 if (PyInt_Check(ob)) 668 if (PyLong_Check(ob)) 670 if (PyFloat_Check(ob)) 672 if (PyString_Check(ob)) 674 if (PyUnicode_Check(ob)) 676 if (PyTuple_Check(ob) || PyList_Chec 705 PyObject_AsVariant( PyObject *ob, nsIVariant **aRet) argument [all...] |
/vbox/src/libs/xpcom18a4/python/ |
H A D | primitives.py | 29 def GetPrimitive(ob): 33 prin = ob.QueryInterface(components.interfaces.nsISupportsPrimitive)
|
/vbox/src/libs/xpcom18a4/python/src/module/ |
H A D | _xpcom.cpp | 279 PyObject *ob, *obIID; local 281 if (!PyArg_ParseTuple(args, "OO|i", &ob, &obIID, &bWrapClient)) 289 nsresult r = PyXPCOM_XPTStub::CreateNew(ob, iid, getter_AddRefs(ret)); 295 AddDefaultGateway(ob, ret); // inject a weak reference to myself into the instance. 304 PyObject *ob; local 305 if (!PyArg_ParseTuple(args, "O", &ob)) 311 if (!Py_nsISupports::InterfaceFromPyObject(ob, 442 PyObject *ob; local 443 if (!PyArg_ParseTuple(args, "O:MakeVariant", &ob)) 446 nsresult nr = PyObject_AsVariant(ob, getter_AddRef 459 PyObject *ob, *obParent = NULL; local 777 PyObject *ob = PyBool_FromLong( local [all...] |
/vbox/src/libs/xpcom18a4/python/client/ |
H A D | __init__.py | 234 def __init__(self, ob, iid = IID_nsISupports): 235 assert not hasattr(ob, "_comobj_"), "Should be a raw nsIWhatever, not a wrapped one" 237 if not hasattr(ob, "IID"): 238 ob_name = ob 240 ob = cm.createInstanceByContractID(ob) 241 assert not hasattr(ob, "_comobj_"), "The created object should be a raw nsIWhatever, not a wrapped one" 243 self.__dict__['_comobj_'] = ob 496 def MakeInterfaceResult(ob, iid): 497 return Component(ob, ii [all...] |
/vbox/src/VBox/Devices/PC/ipxe/src/drivers/net/ath/ath9k/ |
H A D | ath9k_eeprom_4k.c | 791 u8 ob[5], db1[5], db2[5]; local 835 ob[0] = pModal->ob_0; 836 ob[1] = pModal->ob_1; 837 ob[2] = pModal->ob_2; 838 ob[3] = pModal->ob_3; 839 ob[4] = pModal->ob_4; 853 ob[0] = pModal->ob_0; 854 ob[1] = ob[2] = ob[ [all...] |
H A D | ar9003_eeprom.h | 220 u8 ob[AR9300_MAX_CHAINS]; member in struct:ar9300_modal_eep_header
|
H A D | ath9k_eeprom_def.c | 301 return pModal[0].ob; 305 return pModal[1].ob; 453 pModal->ob); 470 pModal->ob);
|
H A D | ath9k_ar9003_eeprom.c | 148 .ob = {1, 1, 1},/* 3 chain */ 350 .ob = {3, 3, 3}, /* 3 chain */ 725 .ob = {1, 1, 1},/* 3 chain */ 927 .ob = {3, 3, 3}, /* 3 chain */ 1303 .ob = {1, 1, 1},/* 3 chain */ 1505 .ob = {3, 3, 3}, /* 3 chain */ 1881 .ob = {1, 1, 1},/* 3 chain */ 2083 .ob = {3, 3, 3}, /* 3 chain */ 2458 .ob = {1, 1, 1},/* 3 chain */ 2660 .ob [all...] |
H A D | eeprom.h | 354 u8 ob; member in struct:modal_eep_header
|
/vbox/src/VBox/Devices/EFI/Firmware/AppPkg/Applications/Python/PyMod-2.7.2/Python/ |
H A D | marshal.c | 154 w_PyLong(const PyLongObject *ob, WFILE *p) argument 160 if (Py_SIZE(ob) == 0) { 166 n = ABS(Py_SIZE(ob)); 168 d = ob->ob_digit[n-1]; 174 w_long((long)(Py_SIZE(ob) > 0 ? l : -l), p); 177 d = ob->ob_digit[i]; 184 d = ob->ob_digit[n-1]; 235 PyLongObject *ob = (PyLongObject *)v; local 236 w_PyLong(ob, p); 577 PyLongObject *ob; local [all...] |
/vbox/src/VBox/Additions/linux/sharedfolders/ |
H A D | mount.vboxsf.c | 312 size_t ob = sizeof(info->name) - 1; local 324 size_t c = iconv(cd, &i, &ib, &o, &ob);
|