gpiod 2.2.2__tar.gz → 2.2.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gpiod-2.2.2/gpiod.egg-info → gpiod-2.2.4}/PKG-INFO +11 -2
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod/chip.py +0 -1
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod/ext/request.c +7 -4
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod/version.py +1 -1
- {gpiod-2.2.2 → gpiod-2.2.4/gpiod.egg-info}/PKG-INFO +11 -2
- {gpiod-2.2.2 → gpiod-2.2.4}/tests/gpiosim/ext.c +5 -4
- {gpiod-2.2.2 → gpiod-2.2.4}/MANIFEST.in +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/README.md +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/build_tests.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod/__init__.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod/chip_info.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod/edge_event.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod/exception.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod/ext/chip.c +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod/ext/common.c +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod/ext/internal.h +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod/ext/line-config.c +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod/ext/line-settings.c +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod/ext/module.c +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod/info_event.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod/internal.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod/line.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod/line_info.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod/line_request.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod/line_settings.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod.egg-info/SOURCES.txt +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod.egg-info/dependency_links.txt +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/gpiod.egg-info/top_level.txt +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/include/gpiod.h +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/lib/chip-info.c +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/lib/chip.c +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/lib/edge-event.c +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/lib/info-event.c +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/lib/internal.c +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/lib/internal.h +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/lib/line-config.c +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/lib/line-info.c +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/lib/line-request.c +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/lib/line-settings.c +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/lib/misc.c +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/lib/request-config.c +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/lib/uapi/gpio.h +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/libgpiod-version.txt +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/pyproject.toml +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/setup.cfg +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/setup.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/tests/__init__.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/tests/__main__.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/tests/gpiosim/__init__.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/tests/gpiosim/chip.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/tests/helpers.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/tests/procname/__init__.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/tests/procname/ext.c +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/tests/tests_chip.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/tests/tests_chip_info.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/tests/tests_edge_event.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/tests/tests_info_event.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/tests/tests_line.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/tests/tests_line_info.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/tests/tests_line_request.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/tests/tests_line_settings.py +0 -0
- {gpiod-2.2.2 → gpiod-2.2.4}/tests/tests_module.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: gpiod
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.4
|
|
4
4
|
Summary: Python bindings for libgpiod
|
|
5
5
|
Home-page: https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git
|
|
6
6
|
Author: Bartosz Golaszewski
|
|
@@ -9,6 +9,15 @@ License: LGPLv2.1
|
|
|
9
9
|
Platform: linux
|
|
10
10
|
Requires-Python: >=3.9.0
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
|
+
Dynamic: author
|
|
13
|
+
Dynamic: author-email
|
|
14
|
+
Dynamic: description
|
|
15
|
+
Dynamic: description-content-type
|
|
16
|
+
Dynamic: home-page
|
|
17
|
+
Dynamic: license
|
|
18
|
+
Dynamic: platform
|
|
19
|
+
Dynamic: requires-python
|
|
20
|
+
Dynamic: summary
|
|
12
21
|
|
|
13
22
|
<!-- SPDX-License-Identifier: CC-BY-SA-4.0 -->
|
|
14
23
|
<!-- SPDX-FileCopyrightText: 2023 Phil Howard <phil@gadgetoid.com> -->
|
|
@@ -205,7 +205,7 @@ static PyObject *request_get_values(request_object *self, PyObject *args)
|
|
|
205
205
|
static PyObject *request_set_values(request_object *self, PyObject *args)
|
|
206
206
|
{
|
|
207
207
|
PyObject *values, *key, *val, *val_stripped;
|
|
208
|
-
Py_ssize_t pos = 0;
|
|
208
|
+
Py_ssize_t pos = 0, index = 0;
|
|
209
209
|
int ret;
|
|
210
210
|
|
|
211
211
|
ret = PyArg_ParseTuple(args, "O", &values);
|
|
@@ -214,8 +214,9 @@ static PyObject *request_set_values(request_object *self, PyObject *args)
|
|
|
214
214
|
|
|
215
215
|
clear_buffers(self);
|
|
216
216
|
|
|
217
|
+
/* Note: pos may not be contiguous. */
|
|
217
218
|
while (PyDict_Next(values, &pos, &key, &val)) {
|
|
218
|
-
self->offsets[
|
|
219
|
+
self->offsets[index] = Py_gpiod_PyLongAsUnsignedInt(key);
|
|
219
220
|
if (PyErr_Occurred())
|
|
220
221
|
return NULL;
|
|
221
222
|
|
|
@@ -223,15 +224,17 @@ static PyObject *request_set_values(request_object *self, PyObject *args)
|
|
|
223
224
|
if (!val_stripped)
|
|
224
225
|
return NULL;
|
|
225
226
|
|
|
226
|
-
self->values[
|
|
227
|
+
self->values[index] = PyLong_AsLong(val_stripped);
|
|
227
228
|
Py_DECREF(val_stripped);
|
|
228
229
|
if (PyErr_Occurred())
|
|
229
230
|
return NULL;
|
|
231
|
+
|
|
232
|
+
index++;
|
|
230
233
|
}
|
|
231
234
|
|
|
232
235
|
Py_BEGIN_ALLOW_THREADS;
|
|
233
236
|
ret = gpiod_line_request_set_values_subset(self->request,
|
|
234
|
-
|
|
237
|
+
index,
|
|
235
238
|
self->offsets,
|
|
236
239
|
self->values);
|
|
237
240
|
Py_END_ALLOW_THREADS;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: gpiod
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.4
|
|
4
4
|
Summary: Python bindings for libgpiod
|
|
5
5
|
Home-page: https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git
|
|
6
6
|
Author: Bartosz Golaszewski
|
|
@@ -9,6 +9,15 @@ License: LGPLv2.1
|
|
|
9
9
|
Platform: linux
|
|
10
10
|
Requires-Python: >=3.9.0
|
|
11
11
|
Description-Content-Type: text/markdown
|
|
12
|
+
Dynamic: author
|
|
13
|
+
Dynamic: author-email
|
|
14
|
+
Dynamic: description
|
|
15
|
+
Dynamic: description-content-type
|
|
16
|
+
Dynamic: home-page
|
|
17
|
+
Dynamic: license
|
|
18
|
+
Dynamic: platform
|
|
19
|
+
Dynamic: requires-python
|
|
20
|
+
Dynamic: summary
|
|
12
21
|
|
|
13
22
|
<!-- SPDX-License-Identifier: CC-BY-SA-4.0 -->
|
|
14
23
|
<!-- SPDX-FileCopyrightText: 2023 Phil Howard <phil@gadgetoid.com> -->
|
|
@@ -96,15 +96,16 @@ static int chip_init(chip_object *self,
|
|
|
96
96
|
|
|
97
97
|
static void chip_finalize(chip_object *self)
|
|
98
98
|
{
|
|
99
|
-
if (self->bank)
|
|
100
|
-
gpiosim_bank_unref(self->bank);
|
|
101
|
-
|
|
102
99
|
if (self->dev) {
|
|
103
100
|
if (gpiosim_dev_is_live(self->dev))
|
|
104
101
|
gpiosim_dev_disable(self->dev);
|
|
102
|
+
}
|
|
105
103
|
|
|
104
|
+
if (self->bank)
|
|
105
|
+
gpiosim_bank_unref(self->bank);
|
|
106
|
+
|
|
107
|
+
if (self->dev)
|
|
106
108
|
gpiosim_dev_unref(self->dev);
|
|
107
|
-
}
|
|
108
109
|
}
|
|
109
110
|
|
|
110
111
|
static void chip_dealloc(PyObject *self)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|