Lines Matching defs:obj
92 static void *get_C_ptr(PyObject *obj, const char *attr)
97 o = PyObject_GetAttr(obj, InternFromString(attr));
116 PyObject *obj = (PyObject *)pymelem, *res;
121 obj = PyObject_GetAttr(obj, InternFromString(attr));
122 if (!obj) {
129 res = PyObject_CallObject(obj, args);
578 PyObject *obj;
582 if (!PyArg_ParseTuple(args, "O", &obj))
584 helem = (snd_hctl_elem_t *)get_C_ptr(obj, "get_C_helem");
598 PyObject *obj;
602 if (!PyArg_ParseTuple(args, "O", &obj))
604 helem = (snd_hctl_elem_t *)get_C_ptr(obj, "get_C_helem");
723 PyObject *obj;
728 if (!PyArg_ParseTuple(args, "O", &obj))
730 hctl = (snd_hctl_t *)get_C_ptr(obj, "get_C_hctl");
745 pymixer->hctl[pymixer->hctl_count*2+1] = (void *)obj;
747 Py_INCREF(obj);
769 PyObject *obj, *obj1, *obj2;
775 obj = PyDict_GetItemString(pymixer->mdict, class);
776 if (obj) {
783 obj2 = PyObject_CallObject(obj, obj1);
808 PyObject *obj;
812 if (!PyArg_ParseTuple(args, "O", &obj))
814 pymelem = (struct pymelem *)obj;
907 PyObject *obj, *py_hctl = NULL, *obj1, *obj2;
920 obj = PyDict_GetItemString(priv->py_mdict, "HElement");
921 if (obj) {
927 obj2 = PyObject_CallObject(obj, obj1);
1049 PyObject *obj, *obj1, *obj2, *mdict;
1052 obj = PyUnicode_FromString(file);
1053 if (obj)
1054 PyDict_SetItemString(mdict, "__file__", obj);
1055 Py_XDECREF(obj);
1056 obj = PyUnicode_FromString(device);
1057 if (obj)
1058 PyDict_SetItemString(mdict, "device", obj);
1059 Py_XDECREF(obj);
1064 obj = PyDict_GetItemString(mdict, "InternalMixer");
1065 if (obj) {
1071 obj2 = PyObject_CallObject(obj, obj1);
1080 obj = PyRun_FileEx(fp, file, Py_file_input, mdict, mdict, 1);
1081 if (obj == NULL)
1083 Py_XDECREF(obj);
1113 PyObject *obj, *py_mod;
1148 obj = PyImport_GetModuleDict();
1149 py_mod = PyDict_GetItemString(obj, "__main__");