Julian Bouzas
412fae485a
m-lua-scripting: make sure pod is successfully parsed
...
Otherwise show a warning
2021-06-25 08:50:08 -04:00
Julian Bouzas
671b8110d9
m-lua-scripting: make sure lua type is valid
2021-06-25 08:50:08 -04:00
Julian Bouzas
c423012238
m-lua-scripting: fix conversion from SPA_TYPE_Bytes to LUA_TNUMBER
2021-06-25 08:50:08 -04:00
Julian Bouzas
419af5a228
spa-pod: respect the SPA size for long and int APIs
...
Fixes some issues for 32bit architectures
2021-05-12 11:53:31 -04:00
George Kiagiadakis
5b4fe3cd85
lua/pod: don't crash on parsing objects with unknown keys, just ignore them
2021-03-01 17:57:32 +02:00
George Kiagiadakis
51e24c58b5
m-lua-scripting/pod: retrieve Ids in Array & Choice as strings, if possible
...
When an Array or Choice that contains Spa:Id appears as a value for an object
field, it is possible to retrieve the Id type from that object field type.
2021-02-23 13:56:38 +02:00
George Kiagiadakis
5302700c6d
m-lua-scripting/pod: s/id_type/object_id/ as commented on !125
2021-02-23 12:47:24 +02:00
Julian Bouzas
bd65f9578d
m-lua-scripting: add support for choices when creating object pods
2021-02-23 10:41:46 +00:00
Julian Bouzas
0694889245
m-lua-scripting: refactor array and choice pod constructors to accept Id names
2021-02-23 10:41:46 +00:00
Julian Bouzas
910ff838e4
m-lua-scripting: allow constructing pod Ids with the Id name
2021-02-23 10:41:46 +00:00
Julian Bouzas
cd2e648b3c
m-lua-scripting: set id_type field when parsing pod objects
2021-02-23 10:41:46 +00:00
Julian Bouzas
2465088c5a
m-lua-scripting: set pod_type and value_type fieds when parsing non-primitive pods
2021-02-23 10:41:46 +00:00
Julian Bouzas
8fa6116786
m-lua-scripting: start indices from 1 when parsing pods
...
For consistency with LUA
2021-02-23 10:41:46 +00:00
George Kiagiadakis
a0fb8872a2
lua/pod: optimize push_primitive_values()
2021-02-05 20:15:32 +02:00
George Kiagiadakis
e916ff6b76
lua/pod: simplify spa_pod_object_new()
2021-02-05 19:49:25 +02:00
George Kiagiadakis
38039bdfe1
lua/pod: optimize lookups in primitive_lua_type and fix some mistakes
...
Use the numeric values of the spa types instead of their string representation
2021-02-05 19:33:55 +02:00
George Kiagiadakis
2ca3564b67
lua/pod: lookup the object type and values table only once when constructing objects
2021-02-05 19:23:09 +02:00
George Kiagiadakis
33e546d79b
lua/pod: convert Id object fields to strings, if possible
2021-02-05 18:58:02 +02:00
Julian Bouzas
dc2ad1f25d
rename all foo_iterate APIs to foo_new_iterator
...
Avoids confusion with LUA iterate API
2021-02-05 11:33:23 -05:00
George Kiagiadakis
d0113e54cb
m-lua-scripting/pod: push pod constructors using luaL_newlib instead of manually
2021-02-05 12:11:15 +02:00
Julian Bouzas
81163a52c0
m-lua-scripting: add WpSpaPod api
2021-02-05 08:47:27 +00:00