aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amatus.name>2015-01-05 19:31:43 -0600
committerDavid Barksdale <amatus@amatus.name>2015-01-05 19:32:18 -0600
commit9349165882a72b3fe1cf1996880a4285a52a6821 (patch)
treee211fa5495857e4bb48fa2548348652de502903d
parent388200440ec6c993ea79d2872922c29bad40e29d (diff)
Setup logging in the client-lib
-rw-r--r--gnunet-build/packages/gnunet/gnunet/files/client-lib.c7
-rw-r--r--gnunet-build/packages/gnunet/gnunet/files/client-lib.exports3
2 files changed, 9 insertions, 1 deletions
diff --git a/gnunet-build/packages/gnunet/gnunet/files/client-lib.c b/gnunet-build/packages/gnunet/gnunet/files/client-lib.c
index 92d3299..a6779c3 100644
--- a/gnunet-build/packages/gnunet/gnunet/files/client-lib.c
+++ b/gnunet-build/packages/gnunet/gnunet/files/client-lib.c
@@ -19,6 +19,13 @@
#include "platform.h"
#include "gnunet_fs_service.h"
#include "gnunet_transport_service.h"
+#include "emscripten.h"
+
+int main(int argc, char **argv)
+{
+ GNUNET_log_setup("client.js", "DEBUG", NULL);
+ emscripten_exit_with_live_runtime();
+}
void *
GNUNET_FS_ProgressInfo_get_publish_cctx(struct GNUNET_FS_ProgressInfo *pi)
diff --git a/gnunet-build/packages/gnunet/gnunet/files/client-lib.exports b/gnunet-build/packages/gnunet/gnunet/files/client-lib.exports
index 539c196..52ab597 100644
--- a/gnunet-build/packages/gnunet/gnunet/files/client-lib.exports
+++ b/gnunet-build/packages/gnunet/gnunet/files/client-lib.exports
@@ -45,4 +45,5 @@
"_GNUNET_TRANSPORT_monitor_peers_simple",
"_GNUNET_TRANSPORT_offer_hello",
"_GNUNET_xstrdup_",
-"_free"]
+"_free",
+"_main"]