diff options
| author | Tom Rini <[email protected]> | 2016-09-20 09:34:53 -0400 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2016-09-20 09:34:53 -0400 |
| commit | a2ed3f452dd1cf4982fe46d5111d200909786686 (patch) | |
| tree | a66b5a2f3b6491df7ba9345178502959fb19c84f /lib | |
| parent | 60c629b836fb6b6ae79e4e0663977056d75de198 (diff) | |
| parent | 8f224b3734d042884a8981a14db64c48e87b87a2 (diff) | |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libfdt/libfdt.swig | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lib/libfdt/libfdt.swig b/lib/libfdt/libfdt.swig index 14f583dfbee..b24c72b1a22 100644 --- a/lib/libfdt/libfdt.swig +++ b/lib/libfdt/libfdt.swig @@ -75,6 +75,14 @@ struct fdt_property { } %} +%typemap(in) (const void *) { + if (!PyByteArray_Check($input)) { + SWIG_exception_fail(SWIG_TypeError, "in method '" "$symname" "', argument " + "$argnum"" of type '" "$type""'"); + } + $1 = (void *) PyByteArray_AsString($input); +} + const void *fdt_offset_ptr(const void *fdt, int offset, unsigned int checklen); int fdt_path_offset(const void *fdt, const char *path); int fdt_first_property_offset(const void *fdt, int nodeoffset); @@ -87,3 +95,19 @@ const char *fdt_get_name(const void *fdt, int nodeoffset, int *OUTPUT); const char *fdt_string(const void *fdt, int stroffset); int fdt_first_subnode(const void *fdt, int offset); int fdt_next_subnode(const void *fdt, int offset); + +%typemap(in) (void *) { + if (!PyByteArray_Check($input)) { + SWIG_exception_fail(SWIG_TypeError, "in method '" "$symname" "', argument " + "$argnum"" of type '" "$type""'"); + } + $1 = PyByteArray_AsString($input); +} + +int fdt_delprop(void *fdt, int nodeoffset, const char *name); + +const char *fdt_strerror(int errval); +int fdt_pack(void *fdt); + +int fdt_totalsize(const void *fdt); +int fdt_off_dt_struct(const void *fdt); |
