api: always use prefix FUNC_API, also change NOEVAL to REMOTE_ONLY

This commit is contained in:
Björn Linse
2017-05-10 10:29:43 +02:00
parent 3adcc0c50b
commit 2d5920ae1a
7 changed files with 23 additions and 24 deletions

View File

@@ -25,7 +25,7 @@ local gperfpipe = io.open(funcsfname .. '.gperf', 'wb')
local funcs = require('eval').funcs
local metadata = mpack.unpack(io.open(arg[3], 'rb'):read("*all"))
for i,fun in ipairs(metadata) do
if not fun.noeval then
if not fun.remote_only then
funcs[fun.name] = {
args=#fun.parameters,
func='api_wrapper',