box: rework func object as a function frontend
The function func object used to provide a call method only for C functions. In scope of this patch it reworked to be a uniform function call frontend both for C and Lua functions. Introduced classes func_c and func_lua, that provide own constructors which produce implementation-specific object with call and destroy methods. Needed for #4182, #1260
Showing
- src/box/alter.cc 1 addition, 0 deletionssrc/box/alter.cc
- src/box/call.c 7 additions, 124 deletionssrc/box/call.c
- src/box/func.c 153 additions, 19 deletionssrc/box/func.c
- src/box/func.h 12 additions, 13 deletionssrc/box/func.h
- src/box/func_def.h 2 additions, 0 deletionssrc/box/func_def.h
- src/box/lua/call.c 45 additions, 0 deletionssrc/box/lua/call.c
- src/box/lua/call.h 5 additions, 0 deletionssrc/box/lua/call.h
- src/box/session.cc 10 additions, 2 deletionssrc/box/session.cc
- src/box/session.h 10 additions, 0 deletionssrc/box/session.h
Loading
Please register or sign in to comment