@plone/volto 14.0.1 → 14.2.0

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 (218) hide show
  1. package/CHANGELOG.md +41 -0
  2. package/locales/ca/LC_MESSAGES/volto.po +12 -2
  3. package/locales/ca.json +1 -1
  4. package/locales/de/LC_MESSAGES/volto.po +12 -2
  5. package/locales/de.json +1 -1
  6. package/locales/en/LC_MESSAGES/volto.po +12 -2
  7. package/locales/en.json +1 -1
  8. package/locales/es/LC_MESSAGES/volto.po +12 -2
  9. package/locales/es.json +1 -1
  10. package/locales/eu/LC_MESSAGES/volto.po +12 -2
  11. package/locales/eu.json +1 -1
  12. package/locales/fr/LC_MESSAGES/volto.po +12 -2
  13. package/locales/fr.json +1 -1
  14. package/locales/it/LC_MESSAGES/volto.po +12 -2
  15. package/locales/it.json +1 -1
  16. package/locales/ja/LC_MESSAGES/volto.po +12 -2
  17. package/locales/ja.json +1 -1
  18. package/locales/nl/LC_MESSAGES/volto.po +12 -2
  19. package/locales/nl.json +1 -1
  20. package/locales/pt/LC_MESSAGES/volto.po +12 -2
  21. package/locales/pt.json +1 -1
  22. package/locales/pt_BR/LC_MESSAGES/volto.po +12 -2
  23. package/locales/pt_BR.json +1 -1
  24. package/locales/ro/LC_MESSAGES/volto.po +12 -2
  25. package/locales/ro.json +1 -1
  26. package/locales/volto.pot +12 -2
  27. package/package.json +2 -1
  28. package/public/icon.svg +13 -0
  29. package/src/actions/vocabularies/vocabularies.js +15 -3
  30. package/src/components/index.js +1 -0
  31. package/src/components/manage/Add/Add.jsx +1 -0
  32. package/src/components/manage/Blocks/HeroImageLeft/Edit.jsx +1 -1
  33. package/src/components/manage/Blocks/Listing/getAsyncData.js +1 -1
  34. package/src/components/manage/Blocks/Text/Edit.jsx +19 -0
  35. package/src/components/manage/Edit/Edit.jsx +1 -0
  36. package/src/components/manage/Form/Form.jsx +32 -6
  37. package/src/components/manage/Form/UndoToolbar.jsx +78 -0
  38. package/src/components/manage/Multilingual/TranslationObject.jsx +1 -0
  39. package/src/components/manage/Widgets/AlignWidget.stories.jsx +5 -21
  40. package/src/components/manage/Widgets/ArrayWidget.jsx +88 -88
  41. package/src/components/manage/Widgets/ArrayWidget.stories.jsx +37 -64
  42. package/src/components/manage/Widgets/CheckboxWidget.stories.jsx +5 -22
  43. package/src/components/manage/Widgets/DatetimeWidget.jsx +65 -74
  44. package/src/components/manage/Widgets/DatetimeWidget.stories.jsx +7 -23
  45. package/src/components/manage/Widgets/DatetimeWidget.test.jsx +17 -15
  46. package/src/components/manage/Widgets/EmailWidget.stories.jsx +5 -22
  47. package/src/components/manage/Widgets/FileWidget.stories.jsx +5 -22
  48. package/src/components/manage/Widgets/NumberWidget.stories.jsx +5 -23
  49. package/src/components/manage/Widgets/ObjectBrowserWidget.stories.js +24 -32
  50. package/src/components/manage/Widgets/ObjectListWidget.stories.js +44 -44
  51. package/src/components/manage/Widgets/ObjectWidget.stories.jsx +13 -28
  52. package/src/components/manage/Widgets/PasswordWidget.stories.jsx +5 -22
  53. package/src/components/manage/Widgets/QueryWidget.jsx +2 -2
  54. package/src/components/manage/Widgets/QueryWidget.stories.jsx +1637 -22
  55. package/src/components/manage/Widgets/SelectAutoComplete.jsx +79 -48
  56. package/src/components/manage/Widgets/SelectAutoComplete.test.jsx +16 -0
  57. package/src/components/manage/Widgets/SelectAutocompleteWidget.stories.jsx +161 -0
  58. package/src/components/manage/Widgets/SelectUtils.js +90 -30
  59. package/src/components/manage/Widgets/SelectUtils.test.jsx +76 -1
  60. package/src/components/manage/Widgets/SelectWidget.jsx +26 -37
  61. package/src/components/manage/Widgets/SelectWidget.stories.jsx +96 -28
  62. package/src/components/manage/Widgets/TextWidget.stories.jsx +5 -22
  63. package/src/components/manage/Widgets/TextareaWidget.stories.jsx +5 -22
  64. package/src/components/manage/Widgets/TokenWidget.jsx +19 -17
  65. package/src/components/manage/Widgets/TokenWidget.stories.jsx +141 -0
  66. package/src/components/manage/Widgets/UrlWidget.stories.jsx +5 -21
  67. package/src/components/manage/Widgets/VocabularyTermsWidget.stories.js +27 -64
  68. package/src/components/manage/Widgets/WysiwygWidget.stories.jsx +5 -22
  69. package/src/components/manage/Widgets/story.jsx +38 -0
  70. package/src/components/theme/ContactForm/ContactForm.jsx +1 -0
  71. package/src/components/theme/ContactForm/ContactForm.stories.jsx +126 -0
  72. package/src/components/theme/CorsError/CorsError.jsx +2 -2
  73. package/src/config/Blocks.jsx +8 -1
  74. package/src/config/Loadables.jsx +2 -0
  75. package/src/config/index.js +3 -0
  76. package/src/helpers/Html/Html.jsx +2 -12
  77. package/src/helpers/UndoManager/useUndoManager.js +102 -0
  78. package/src/helpers/index.js +1 -0
  79. package/src/reducers/vocabularies/vocabularies.js +13 -2
  80. package/src/store.js +1 -1
  81. package/src/storybook.jsx +55 -0
  82. package/theme/themes/pastanaga/extras/time-picker-overrides.less +1 -1
  83. package/include/python3.8/Python-ast.h +0 -715
  84. package/include/python3.8/Python.h +0 -160
  85. package/include/python3.8/abstract.h +0 -844
  86. package/include/python3.8/asdl.h +0 -46
  87. package/include/python3.8/ast.h +0 -37
  88. package/include/python3.8/bitset.h +0 -23
  89. package/include/python3.8/bltinmodule.h +0 -14
  90. package/include/python3.8/boolobject.h +0 -34
  91. package/include/python3.8/bytearrayobject.h +0 -62
  92. package/include/python3.8/bytes_methods.h +0 -69
  93. package/include/python3.8/bytesobject.h +0 -224
  94. package/include/python3.8/cellobject.h +0 -29
  95. package/include/python3.8/ceval.h +0 -231
  96. package/include/python3.8/classobject.h +0 -59
  97. package/include/python3.8/code.h +0 -180
  98. package/include/python3.8/codecs.h +0 -240
  99. package/include/python3.8/compile.h +0 -106
  100. package/include/python3.8/complexobject.h +0 -69
  101. package/include/python3.8/context.h +0 -84
  102. package/include/python3.8/cpython/abstract.h +0 -319
  103. package/include/python3.8/cpython/dictobject.h +0 -94
  104. package/include/python3.8/cpython/fileobject.h +0 -24
  105. package/include/python3.8/cpython/initconfig.h +0 -434
  106. package/include/python3.8/cpython/interpreteridobject.h +0 -19
  107. package/include/python3.8/cpython/object.h +0 -470
  108. package/include/python3.8/cpython/objimpl.h +0 -113
  109. package/include/python3.8/cpython/pyerrors.h +0 -188
  110. package/include/python3.8/cpython/pylifecycle.h +0 -78
  111. package/include/python3.8/cpython/pymem.h +0 -108
  112. package/include/python3.8/cpython/pystate.h +0 -252
  113. package/include/python3.8/cpython/sysmodule.h +0 -21
  114. package/include/python3.8/cpython/traceback.h +0 -22
  115. package/include/python3.8/cpython/tupleobject.h +0 -36
  116. package/include/python3.8/cpython/unicodeobject.h +0 -1239
  117. package/include/python3.8/datetime.h +0 -259
  118. package/include/python3.8/descrobject.h +0 -108
  119. package/include/python3.8/dictobject.h +0 -94
  120. package/include/python3.8/dtoa.h +0 -19
  121. package/include/python3.8/dynamic_annotations.h +0 -499
  122. package/include/python3.8/enumobject.h +0 -17
  123. package/include/python3.8/errcode.h +0 -38
  124. package/include/python3.8/eval.h +0 -37
  125. package/include/python3.8/fileobject.h +0 -49
  126. package/include/python3.8/fileutils.h +0 -185
  127. package/include/python3.8/floatobject.h +0 -130
  128. package/include/python3.8/frameobject.h +0 -92
  129. package/include/python3.8/funcobject.h +0 -104
  130. package/include/python3.8/genobject.h +0 -109
  131. package/include/python3.8/graminit.h +0 -94
  132. package/include/python3.8/grammar.h +0 -77
  133. package/include/python3.8/import.h +0 -149
  134. package/include/python3.8/internal/pycore_accu.h +0 -39
  135. package/include/python3.8/internal/pycore_atomic.h +0 -558
  136. package/include/python3.8/internal/pycore_ceval.h +0 -37
  137. package/include/python3.8/internal/pycore_code.h +0 -27
  138. package/include/python3.8/internal/pycore_condvar.h +0 -95
  139. package/include/python3.8/internal/pycore_context.h +0 -42
  140. package/include/python3.8/internal/pycore_fileutils.h +0 -54
  141. package/include/python3.8/internal/pycore_getopt.h +0 -22
  142. package/include/python3.8/internal/pycore_gil.h +0 -50
  143. package/include/python3.8/internal/pycore_hamt.h +0 -116
  144. package/include/python3.8/internal/pycore_initconfig.h +0 -166
  145. package/include/python3.8/internal/pycore_object.h +0 -81
  146. package/include/python3.8/internal/pycore_pathconfig.h +0 -75
  147. package/include/python3.8/internal/pycore_pyerrors.h +0 -62
  148. package/include/python3.8/internal/pycore_pyhash.h +0 -10
  149. package/include/python3.8/internal/pycore_pylifecycle.h +0 -118
  150. package/include/python3.8/internal/pycore_pymem.h +0 -212
  151. package/include/python3.8/internal/pycore_pystate.h +0 -326
  152. package/include/python3.8/internal/pycore_traceback.h +0 -96
  153. package/include/python3.8/internal/pycore_tupleobject.h +0 -19
  154. package/include/python3.8/internal/pycore_warnings.h +0 -25
  155. package/include/python3.8/interpreteridobject.h +0 -17
  156. package/include/python3.8/intrcheck.h +0 -33
  157. package/include/python3.8/iterobject.h +0 -25
  158. package/include/python3.8/listobject.h +0 -81
  159. package/include/python3.8/longintrepr.h +0 -99
  160. package/include/python3.8/longobject.h +0 -242
  161. package/include/python3.8/marshal.h +0 -28
  162. package/include/python3.8/memoryobject.h +0 -72
  163. package/include/python3.8/methodobject.h +0 -131
  164. package/include/python3.8/modsupport.h +0 -248
  165. package/include/python3.8/moduleobject.h +0 -90
  166. package/include/python3.8/namespaceobject.h +0 -19
  167. package/include/python3.8/node.h +0 -48
  168. package/include/python3.8/object.h +0 -753
  169. package/include/python3.8/objimpl.h +0 -284
  170. package/include/python3.8/odictobject.h +0 -43
  171. package/include/python3.8/opcode.h +0 -148
  172. package/include/python3.8/osdefs.h +0 -51
  173. package/include/python3.8/osmodule.h +0 -17
  174. package/include/python3.8/parsetok.h +0 -110
  175. package/include/python3.8/patchlevel.h +0 -35
  176. package/include/python3.8/picklebufobject.h +0 -31
  177. package/include/python3.8/py_curses.h +0 -100
  178. package/include/python3.8/pyarena.h +0 -64
  179. package/include/python3.8/pycapsule.h +0 -59
  180. package/include/python3.8/pyconfig.h +0 -1665
  181. package/include/python3.8/pyctype.h +0 -39
  182. package/include/python3.8/pydebug.h +0 -40
  183. package/include/python3.8/pydtrace.h +0 -59
  184. package/include/python3.8/pydtrace_probes.h +0 -228
  185. package/include/python3.8/pyerrors.h +0 -335
  186. package/include/python3.8/pyexpat.h +0 -55
  187. package/include/python3.8/pyfpe.h +0 -12
  188. package/include/python3.8/pyhash.h +0 -145
  189. package/include/python3.8/pylifecycle.h +0 -75
  190. package/include/python3.8/pymacconfig.h +0 -102
  191. package/include/python3.8/pymacro.h +0 -106
  192. package/include/python3.8/pymath.h +0 -230
  193. package/include/python3.8/pymem.h +0 -150
  194. package/include/python3.8/pyport.h +0 -850
  195. package/include/python3.8/pystate.h +0 -136
  196. package/include/python3.8/pystrcmp.h +0 -23
  197. package/include/python3.8/pystrhex.h +0 -22
  198. package/include/python3.8/pystrtod.h +0 -45
  199. package/include/python3.8/pythonrun.h +0 -210
  200. package/include/python3.8/pythread.h +0 -161
  201. package/include/python3.8/pytime.h +0 -246
  202. package/include/python3.8/rangeobject.h +0 -27
  203. package/include/python3.8/setobject.h +0 -108
  204. package/include/python3.8/sliceobject.h +0 -65
  205. package/include/python3.8/structmember.h +0 -74
  206. package/include/python3.8/structseq.h +0 -49
  207. package/include/python3.8/symtable.h +0 -123
  208. package/include/python3.8/sysmodule.h +0 -41
  209. package/include/python3.8/token.h +0 -92
  210. package/include/python3.8/traceback.h +0 -28
  211. package/include/python3.8/tracemalloc.h +0 -38
  212. package/include/python3.8/tupleobject.h +0 -48
  213. package/include/python3.8/typeslots.h +0 -85
  214. package/include/python3.8/ucnhash.h +0 -36
  215. package/include/python3.8/unicodeobject.h +0 -1044
  216. package/include/python3.8/warnings.h +0 -67
  217. package/include/python3.8/weakrefobject.h +0 -86
  218. package/src/components/theme/ContactForm/ContactForm.stories.mdx +0 -39
@@ -1,31 +0,0 @@
1
- /* PickleBuffer object. This is built-in for ease of use from third-party
2
- * C extensions.
3
- */
4
-
5
- #ifndef Py_PICKLEBUFOBJECT_H
6
- #define Py_PICKLEBUFOBJECT_H
7
- #ifdef __cplusplus
8
- extern "C" {
9
- #endif
10
-
11
- #ifndef Py_LIMITED_API
12
-
13
- PyAPI_DATA(PyTypeObject) PyPickleBuffer_Type;
14
-
15
- #define PyPickleBuffer_Check(op) (Py_TYPE(op) == &PyPickleBuffer_Type)
16
-
17
- /* Create a PickleBuffer redirecting to the given buffer-enabled object */
18
- PyAPI_FUNC(PyObject *) PyPickleBuffer_FromObject(PyObject *);
19
- /* Get the PickleBuffer's underlying view to the original object
20
- * (NULL if released)
21
- */
22
- PyAPI_FUNC(const Py_buffer *) PyPickleBuffer_GetBuffer(PyObject *);
23
- /* Release the PickleBuffer. Returns 0 on success, -1 on error. */
24
- PyAPI_FUNC(int) PyPickleBuffer_Release(PyObject *);
25
-
26
- #endif /* !Py_LIMITED_API */
27
-
28
- #ifdef __cplusplus
29
- }
30
- #endif
31
- #endif /* !Py_PICKLEBUFOBJECT_H */
@@ -1,100 +0,0 @@
1
-
2
- #ifndef Py_CURSES_H
3
- #define Py_CURSES_H
4
-
5
- #ifdef __APPLE__
6
- /*
7
- ** On Mac OS X 10.2 [n]curses.h and stdlib.h use different guards
8
- ** against multiple definition of wchar_t.
9
- */
10
- #ifdef _BSD_WCHAR_T_DEFINED_
11
- #define _WCHAR_T
12
- #endif
13
- #endif /* __APPLE__ */
14
-
15
- /* On FreeBSD, [n]curses.h and stdlib.h/wchar.h use different guards
16
- against multiple definition of wchar_t and wint_t. */
17
- #if defined(__FreeBSD__) && defined(_XOPEN_SOURCE_EXTENDED)
18
- # ifndef __wchar_t
19
- # define __wchar_t
20
- # endif
21
- # ifndef __wint_t
22
- # define __wint_t
23
- # endif
24
- #endif
25
-
26
- #if !defined(HAVE_CURSES_IS_PAD) && defined(WINDOW_HAS_FLAGS)
27
- /* The following definition is necessary for ncurses 5.7; without it,
28
- some of [n]curses.h set NCURSES_OPAQUE to 1, and then Python
29
- can't get at the WINDOW flags field. */
30
- #define NCURSES_OPAQUE 0
31
- #endif
32
-
33
- #ifdef HAVE_NCURSES_H
34
- #include <ncurses.h>
35
- #else
36
- #include <curses.h>
37
- #endif
38
-
39
- #ifdef HAVE_NCURSES_H
40
- /* configure was checking <curses.h>, but we will
41
- use <ncurses.h>, which has some or all these features. */
42
- #if !defined(WINDOW_HAS_FLAGS) && !(NCURSES_OPAQUE+0)
43
- #define WINDOW_HAS_FLAGS 1
44
- #endif
45
- #if !defined(HAVE_CURSES_IS_PAD) && NCURSES_VERSION_PATCH+0 >= 20090906
46
- #define HAVE_CURSES_IS_PAD 1
47
- #endif
48
- #ifndef MVWDELCH_IS_EXPRESSION
49
- #define MVWDELCH_IS_EXPRESSION 1
50
- #endif
51
- #endif
52
-
53
- #ifdef __cplusplus
54
- extern "C" {
55
- #endif
56
-
57
- #define PyCurses_API_pointers 4
58
-
59
- /* Type declarations */
60
-
61
- typedef struct {
62
- PyObject_HEAD
63
- WINDOW *win;
64
- char *encoding;
65
- } PyCursesWindowObject;
66
-
67
- #define PyCursesWindow_Check(v) (Py_TYPE(v) == &PyCursesWindow_Type)
68
-
69
- #define PyCurses_CAPSULE_NAME "_curses._C_API"
70
-
71
-
72
- #ifdef CURSES_MODULE
73
- /* This section is used when compiling _cursesmodule.c */
74
-
75
- #else
76
- /* This section is used in modules that use the _cursesmodule API */
77
-
78
- static void **PyCurses_API;
79
-
80
- #define PyCursesWindow_Type (*(PyTypeObject *) PyCurses_API[0])
81
- #define PyCursesSetupTermCalled {if (! ((int (*)(void))PyCurses_API[1]) () ) return NULL;}
82
- #define PyCursesInitialised {if (! ((int (*)(void))PyCurses_API[2]) () ) return NULL;}
83
- #define PyCursesInitialisedColor {if (! ((int (*)(void))PyCurses_API[3]) () ) return NULL;}
84
-
85
- #define import_curses() \
86
- PyCurses_API = (void **)PyCapsule_Import(PyCurses_CAPSULE_NAME, 1);
87
-
88
- #endif
89
-
90
- /* general error messages */
91
- static const char catchall_ERR[] = "curses function returned ERR";
92
- static const char catchall_NULL[] = "curses function returned NULL";
93
-
94
- #ifdef __cplusplus
95
- }
96
- #endif
97
-
98
- #endif /* !defined(Py_CURSES_H) */
99
-
100
-
@@ -1,64 +0,0 @@
1
- /* An arena-like memory interface for the compiler.
2
- */
3
-
4
- #ifndef Py_LIMITED_API
5
- #ifndef Py_PYARENA_H
6
- #define Py_PYARENA_H
7
-
8
- #ifdef __cplusplus
9
- extern "C" {
10
- #endif
11
-
12
- typedef struct _arena PyArena;
13
-
14
- /* PyArena_New() and PyArena_Free() create a new arena and free it,
15
- respectively. Once an arena has been created, it can be used
16
- to allocate memory via PyArena_Malloc(). Pointers to PyObject can
17
- also be registered with the arena via PyArena_AddPyObject(), and the
18
- arena will ensure that the PyObjects stay alive at least until
19
- PyArena_Free() is called. When an arena is freed, all the memory it
20
- allocated is freed, the arena releases internal references to registered
21
- PyObject*, and none of its pointers are valid.
22
- XXX (tim) What does "none of its pointers are valid" mean? Does it
23
- XXX mean that pointers previously obtained via PyArena_Malloc() are
24
- XXX no longer valid? (That's clearly true, but not sure that's what
25
- XXX the text is trying to say.)
26
-
27
- PyArena_New() returns an arena pointer. On error, it
28
- returns a negative number and sets an exception.
29
- XXX (tim): Not true. On error, PyArena_New() actually returns NULL,
30
- XXX and looks like it may or may not set an exception (e.g., if the
31
- XXX internal PyList_New(0) returns NULL, PyArena_New() passes that on
32
- XXX and an exception is set; OTOH, if the internal
33
- XXX block_new(DEFAULT_BLOCK_SIZE) returns NULL, that's passed on but
34
- XXX an exception is not set in that case).
35
- */
36
- PyAPI_FUNC(PyArena *) PyArena_New(void);
37
- PyAPI_FUNC(void) PyArena_Free(PyArena *);
38
-
39
- /* Mostly like malloc(), return the address of a block of memory spanning
40
- * `size` bytes, or return NULL (without setting an exception) if enough
41
- * new memory can't be obtained. Unlike malloc(0), PyArena_Malloc() with
42
- * size=0 does not guarantee to return a unique pointer (the pointer
43
- * returned may equal one or more other pointers obtained from
44
- * PyArena_Malloc()).
45
- * Note that pointers obtained via PyArena_Malloc() must never be passed to
46
- * the system free() or realloc(), or to any of Python's similar memory-
47
- * management functions. PyArena_Malloc()-obtained pointers remain valid
48
- * until PyArena_Free(ar) is called, at which point all pointers obtained
49
- * from the arena `ar` become invalid simultaneously.
50
- */
51
- PyAPI_FUNC(void *) PyArena_Malloc(PyArena *, size_t size);
52
-
53
- /* This routine isn't a proper arena allocation routine. It takes
54
- * a PyObject* and records it so that it can be DECREFed when the
55
- * arena is freed.
56
- */
57
- PyAPI_FUNC(int) PyArena_AddPyObject(PyArena *, PyObject *);
58
-
59
- #ifdef __cplusplus
60
- }
61
- #endif
62
-
63
- #endif /* !Py_PYARENA_H */
64
- #endif /* Py_LIMITED_API */
@@ -1,59 +0,0 @@
1
-
2
- /* Capsule objects let you wrap a C "void *" pointer in a Python
3
- object. They're a way of passing data through the Python interpreter
4
- without creating your own custom type.
5
-
6
- Capsules are used for communication between extension modules.
7
- They provide a way for an extension module to export a C interface
8
- to other extension modules, so that extension modules can use the
9
- Python import mechanism to link to one another.
10
-
11
- For more information, please see "c-api/capsule.html" in the
12
- documentation.
13
- */
14
-
15
- #ifndef Py_CAPSULE_H
16
- #define Py_CAPSULE_H
17
- #ifdef __cplusplus
18
- extern "C" {
19
- #endif
20
-
21
- PyAPI_DATA(PyTypeObject) PyCapsule_Type;
22
-
23
- typedef void (*PyCapsule_Destructor)(PyObject *);
24
-
25
- #define PyCapsule_CheckExact(op) (Py_TYPE(op) == &PyCapsule_Type)
26
-
27
-
28
- PyAPI_FUNC(PyObject *) PyCapsule_New(
29
- void *pointer,
30
- const char *name,
31
- PyCapsule_Destructor destructor);
32
-
33
- PyAPI_FUNC(void *) PyCapsule_GetPointer(PyObject *capsule, const char *name);
34
-
35
- PyAPI_FUNC(PyCapsule_Destructor) PyCapsule_GetDestructor(PyObject *capsule);
36
-
37
- PyAPI_FUNC(const char *) PyCapsule_GetName(PyObject *capsule);
38
-
39
- PyAPI_FUNC(void *) PyCapsule_GetContext(PyObject *capsule);
40
-
41
- PyAPI_FUNC(int) PyCapsule_IsValid(PyObject *capsule, const char *name);
42
-
43
- PyAPI_FUNC(int) PyCapsule_SetPointer(PyObject *capsule, void *pointer);
44
-
45
- PyAPI_FUNC(int) PyCapsule_SetDestructor(PyObject *capsule, PyCapsule_Destructor destructor);
46
-
47
- PyAPI_FUNC(int) PyCapsule_SetName(PyObject *capsule, const char *name);
48
-
49
- PyAPI_FUNC(int) PyCapsule_SetContext(PyObject *capsule, void *context);
50
-
51
- PyAPI_FUNC(void *) PyCapsule_Import(
52
- const char *name, /* UTF-8 encoded string */
53
- int no_block);
54
-
55
-
56
- #ifdef __cplusplus
57
- }
58
- #endif
59
- #endif /* !Py_CAPSULE_H */