summaryrefslogtreecommitdiff
path: root/admin.cxx
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-09 19:55:28 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-09 19:55:28 +0800
commita1e538564d4b2a60be70a32ec39afdba249ce37d (patch)
tree98ff5e3531bf8c70369dc846c0d653e4ea878128 /admin.cxx
parent982495a8ee6932f4a1586faf0c853ebaf951000f (diff)
Add support for Emscripten
Diffstat (limited to 'admin.cxx')
-rw-r--r--admin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/admin.cxx b/admin.cxx
index f59082f..97f036e 100644
--- a/admin.cxx
+++ b/admin.cxx
@@ -1,5 +1,6 @@
#include <cstddef>
#include <memory>
+#include <icclient/typedefs.h>
#include <icclient/admin.h>
#include "qicclient/admin.hxx"
@@ -8,7 +9,7 @@ namespace QICClient {
std::shared_ptr<Admin> Admin::logIn(QString const& username,
QString const& password, QString const& successPage,
QString const& nextPage, QString const& failPage,
- size_t (*handler)(void*, size_t, size_t, void*))
+ icclient_handler handler)
{
auto admin = new Admin{};
admin->setData(icclient_admin_login(username.toLatin1().constData(),