gpiod 2.2.0__tar.gz → 2.2.1__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.
Files changed (63) hide show
  1. {gpiod-2.2.0/gpiod.egg-info → gpiod-2.2.1}/PKG-INFO +1 -1
  2. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/chip.py +4 -3
  3. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/ext/chip.c +4 -2
  4. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/ext/line-settings.c +4 -0
  5. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/version.py +1 -1
  6. {gpiod-2.2.0 → gpiod-2.2.1/gpiod.egg-info}/PKG-INFO +1 -1
  7. {gpiod-2.2.0 → gpiod-2.2.1}/lib/chip-info.c +2 -2
  8. {gpiod-2.2.0 → gpiod-2.2.1}/lib/line-info.c +2 -2
  9. gpiod-2.2.1/libgpiod-version.txt +1 -0
  10. gpiod-2.2.0/libgpiod-version.txt +0 -1
  11. {gpiod-2.2.0 → gpiod-2.2.1}/MANIFEST.in +0 -0
  12. {gpiod-2.2.0 → gpiod-2.2.1}/README.md +0 -0
  13. {gpiod-2.2.0 → gpiod-2.2.1}/build_tests.py +0 -0
  14. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/__init__.py +0 -0
  15. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/chip_info.py +0 -0
  16. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/edge_event.py +0 -0
  17. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/exception.py +0 -0
  18. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/ext/common.c +0 -0
  19. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/ext/internal.h +0 -0
  20. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/ext/line-config.c +0 -0
  21. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/ext/module.c +0 -0
  22. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/ext/request.c +0 -0
  23. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/info_event.py +0 -0
  24. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/internal.py +0 -0
  25. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/line.py +0 -0
  26. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/line_info.py +0 -0
  27. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/line_request.py +0 -0
  28. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/line_settings.py +0 -0
  29. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod.egg-info/SOURCES.txt +0 -0
  30. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod.egg-info/dependency_links.txt +0 -0
  31. {gpiod-2.2.0 → gpiod-2.2.1}/gpiod.egg-info/top_level.txt +0 -0
  32. {gpiod-2.2.0 → gpiod-2.2.1}/include/gpiod.h +0 -0
  33. {gpiod-2.2.0 → gpiod-2.2.1}/lib/chip.c +0 -0
  34. {gpiod-2.2.0 → gpiod-2.2.1}/lib/edge-event.c +0 -0
  35. {gpiod-2.2.0 → gpiod-2.2.1}/lib/info-event.c +0 -0
  36. {gpiod-2.2.0 → gpiod-2.2.1}/lib/internal.c +0 -0
  37. {gpiod-2.2.0 → gpiod-2.2.1}/lib/internal.h +0 -0
  38. {gpiod-2.2.0 → gpiod-2.2.1}/lib/line-config.c +0 -0
  39. {gpiod-2.2.0 → gpiod-2.2.1}/lib/line-request.c +0 -0
  40. {gpiod-2.2.0 → gpiod-2.2.1}/lib/line-settings.c +0 -0
  41. {gpiod-2.2.0 → gpiod-2.2.1}/lib/misc.c +0 -0
  42. {gpiod-2.2.0 → gpiod-2.2.1}/lib/request-config.c +0 -0
  43. {gpiod-2.2.0 → gpiod-2.2.1}/lib/uapi/gpio.h +0 -0
  44. {gpiod-2.2.0 → gpiod-2.2.1}/pyproject.toml +0 -0
  45. {gpiod-2.2.0 → gpiod-2.2.1}/setup.cfg +0 -0
  46. {gpiod-2.2.0 → gpiod-2.2.1}/setup.py +0 -0
  47. {gpiod-2.2.0 → gpiod-2.2.1}/tests/__init__.py +0 -0
  48. {gpiod-2.2.0 → gpiod-2.2.1}/tests/__main__.py +0 -0
  49. {gpiod-2.2.0 → gpiod-2.2.1}/tests/gpiosim/__init__.py +0 -0
  50. {gpiod-2.2.0 → gpiod-2.2.1}/tests/gpiosim/chip.py +0 -0
  51. {gpiod-2.2.0 → gpiod-2.2.1}/tests/gpiosim/ext.c +0 -0
  52. {gpiod-2.2.0 → gpiod-2.2.1}/tests/helpers.py +0 -0
  53. {gpiod-2.2.0 → gpiod-2.2.1}/tests/procname/__init__.py +0 -0
  54. {gpiod-2.2.0 → gpiod-2.2.1}/tests/procname/ext.c +0 -0
  55. {gpiod-2.2.0 → gpiod-2.2.1}/tests/tests_chip.py +0 -0
  56. {gpiod-2.2.0 → gpiod-2.2.1}/tests/tests_chip_info.py +0 -0
  57. {gpiod-2.2.0 → gpiod-2.2.1}/tests/tests_edge_event.py +0 -0
  58. {gpiod-2.2.0 → gpiod-2.2.1}/tests/tests_info_event.py +0 -0
  59. {gpiod-2.2.0 → gpiod-2.2.1}/tests/tests_line.py +0 -0
  60. {gpiod-2.2.0 → gpiod-2.2.1}/tests/tests_line_info.py +0 -0
  61. {gpiod-2.2.0 → gpiod-2.2.1}/tests/tests_line_request.py +0 -0
  62. {gpiod-2.2.0 → gpiod-2.2.1}/tests/tests_line_settings.py +0 -0
  63. {gpiod-2.2.0 → gpiod-2.2.1}/tests/tests_module.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gpiod
3
- Version: 2.2.0
3
+ Version: 2.2.1
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
@@ -279,11 +279,12 @@ class Chip:
279
279
  else:
280
280
  mapped_output_values = None
281
281
 
282
+ name_map = dict()
283
+ offset_map = dict()
284
+ global_output_values = list()
285
+
282
286
  for lines, settings in config.items():
283
287
  offsets = list()
284
- name_map = dict()
285
- offset_map = dict()
286
- global_output_values = list()
287
288
 
288
289
  if isinstance(lines, int) or isinstance(lines, str):
289
290
  lines = (lines,)
@@ -274,14 +274,16 @@ static PyObject *chip_request_lines(chip_object *self, PyObject *args)
274
274
  Py_BEGIN_ALLOW_THREADS;
275
275
  request = gpiod_chip_request_lines(self->chip, req_cfg, line_cfg);
276
276
  Py_END_ALLOW_THREADS;
277
- gpiod_request_config_free(req_cfg);
278
- if (!request)
277
+ if (!request) {
278
+ gpiod_request_config_free(req_cfg);
279
279
  return Py_gpiod_SetErrFromErrno();
280
+ }
280
281
 
281
282
  req_obj = Py_gpiod_MakeRequestObject(request,
282
283
  gpiod_request_config_get_event_buffer_size(req_cfg));
283
284
  if (!req_obj)
284
285
  gpiod_line_request_release(request);
286
+ gpiod_request_config_free(req_cfg);
285
287
 
286
288
  return req_obj;
287
289
  }
@@ -79,6 +79,10 @@ line_settings_init(line_settings_object *self, PyObject *args, PyObject *kwargs)
79
79
  if (ret)
80
80
  return set_error();
81
81
 
82
+ ret = gpiod_line_settings_set_event_clock(self->settings, event_clock);
83
+ if (ret)
84
+ return set_error();
85
+
82
86
  return 0;
83
87
  }
84
88
 
@@ -2,4 +2,4 @@
2
2
  # SPDX-FileCopyrightText: 2022 Linaro Ltd.
3
3
  # SPDX-FileCopyrightText: 2022 Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
4
4
 
5
- __version__ = "2.2.0"
5
+ __version__ = "2.2.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gpiod
3
- Version: 2.2.0
3
+ Version: 2.2.1
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
@@ -10,8 +10,8 @@
10
10
 
11
11
  struct gpiod_chip_info {
12
12
  size_t num_lines;
13
- char name[32];
14
- char label[32];
13
+ char name[GPIO_MAX_NAME_SIZE + 1];
14
+ char label[GPIO_MAX_NAME_SIZE + 1];
15
15
  };
16
16
 
17
17
  GPIOD_API void gpiod_chip_info_free(struct gpiod_chip_info *info)
@@ -10,9 +10,9 @@
10
10
 
11
11
  struct gpiod_line_info {
12
12
  unsigned int offset;
13
- char name[GPIO_MAX_NAME_SIZE];
13
+ char name[GPIO_MAX_NAME_SIZE + 1];
14
14
  bool used;
15
- char consumer[GPIO_MAX_NAME_SIZE];
15
+ char consumer[GPIO_MAX_NAME_SIZE + 1];
16
16
  enum gpiod_line_direction direction;
17
17
  bool active_low;
18
18
  enum gpiod_line_bias bias;
@@ -0,0 +1 @@
1
+ 2.1.3
@@ -1 +0,0 @@
1
- 2.1.2
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