summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEdwin Mons <edwin.mons@isode.com>2014-05-09 11:45:03 (GMT)
committerEdwin Mons <edwin.mons@isode.com>2014-05-12 13:06:20 (GMT)
commit15ccd713a988b8386d06ca9ea10910ae9f59ea5a (patch)
tree96ba6382a9f26c908efb56e8e58431a1090495c5 /Sluift/sluift.cpp
parent634555e64572531fece2a955d1168a88c7979d09 (diff)
downloadswift-15ccd713a988b8386d06ca9ea10910ae9f59ea5a.zip
swift-15ccd713a988b8386d06ca9ea10910ae9f59ea5a.tar.bz2
Add sluift function create_form
The function send_mam_query needs an optional form. Created a generic form creation function, and made the pubsub configuration form function use that. Change-Id: I9e839b28df3916c1fd0b09d84a03cc521d1736ad
Diffstat (limited to 'Sluift/sluift.cpp')
-rw-r--r--Sluift/sluift.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sluift/sluift.cpp b/Sluift/sluift.cpp
index a04ceeb..b55649b 100644
--- a/Sluift/sluift.cpp
+++ b/Sluift/sluift.cpp
@@ -391,7 +391,7 @@ SLUIFT_API int luaopen_sluift(lua_State* L) {
// Register convenience functions
lua_rawgeti(L, LUA_REGISTRYINDEX, Sluift::globals.coreLibIndex);
std::vector<std::string> coreLibExports = boost::assign::list_of
- ("tprint")("disco")("help")("get_help")("copy")("with")("read_file");
+ ("tprint")("disco")("help")("get_help")("copy")("with")("read_file")("create_form");
foreach (const std::string& coreLibExport, coreLibExports) {
lua_getfield(L, -1, coreLibExport.c_str());
lua_setfield(L, -3, coreLibExport.c_str());