All pastes #256614 Raw Edit

konrads

public c v1 · immutable
#256614 ·published 2006-11-24 13:05 UTC
rendered paste body
static PyObject *__pyx_f_7gphoto2_6camera_getConfigByName(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/static PyObject *__pyx_f_7gphoto2_6camera_getConfigByName(PyObject *__pyx_v_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {  char (*__pyx_v_name);  CameraWidget (*__pyx_v_root);  CameraWidget (*__pyx_v_child);  char (*__pyx_v_value);  PyObject *__pyx_r;  PyObject *__pyx_1 = 0;  PyObject *__pyx_2 = 0;  static char *__pyx_argnames[] = {"name",0};  if (!PyArg_ParseTupleAndKeywords(__pyx_args, __pyx_kwds, "s", __pyx_argnames, &__pyx_v_name)) return 0;  Py_INCREF(__pyx_v_self);  /* "/home/konrads/libgphoto2/bindings/python/gphoto2.pyx":1019 */  __pyx_1 = PyInt_FromLong(gp_camera_get_config(((struct __pyx_obj_7gphoto2_camera *)__pyx_v_self)->camera,(&__pyx_v_root),0)); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1019; goto __pyx_L1;}  __pyx_2 = __pyx_f_7gphoto2_check(__pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1019; goto __pyx_L1;}  Py_DECREF(__pyx_1); __pyx_1 = 0;  Py_DECREF(__pyx_2); __pyx_2 = 0;  /* "/home/konrads/libgphoto2/bindings/python/gphoto2.pyx":1021 */  __pyx_1 = PyInt_FromLong(gp_widget_get_child_by_label(__pyx_v_root,__pyx_v_name,(&__pyx_v_child))); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1021; goto __pyx_L1;}  __pyx_2 = __pyx_f_7gphoto2_check(__pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1021; goto __pyx_L1;}  Py_DECREF(__pyx_1); __pyx_1 = 0;  Py_DECREF(__pyx_2); __pyx_2 = 0;  /* "/home/konrads/libgphoto2/bindings/python/gphoto2.pyx":1022 */  __pyx_1 = PyInt_FromLong(gp_widget_get_value(__pyx_v_child,(&__pyx_v_value))); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1022; goto __pyx_L1;}  __pyx_2 = __pyx_f_7gphoto2_check(__pyx_1); if (!__pyx_2) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1022; goto __pyx_L1;}  Py_DECREF(__pyx_1); __pyx_1 = 0;  Py_DECREF(__pyx_2); __pyx_2 = 0;  /* "/home/konrads/libgphoto2/bindings/python/gphoto2.pyx":1023 */  __pyx_1 = PyString_FromString(__pyx_v_value); if (!__pyx_1) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1023; goto __pyx_L1;}  __pyx_r = __pyx_1;  __pyx_1 = 0;  goto __pyx_L0;  __pyx_r = Py_None; Py_INCREF(__pyx_r);  goto __pyx_L0;  __pyx_L1:;  Py_XDECREF(__pyx_1);  Py_XDECREF(__pyx_2);  __Pyx_AddTraceback("gphoto2.camera.getConfigByName");  __pyx_r = 0;  __pyx_L0:;  Py_DECREF(__pyx_v_self);  return __pyx_r;}