more types

This commit is contained in:
Florian Dold 2015-12-26 00:56:02 +01:00
parent 18ee7c7f53
commit edf5d2cc62
2 changed files with 21 additions and 12 deletions

View File

@ -16,17 +16,17 @@
"use strict";
declare var Module: any;
// Size of a native pointer.
const PTR_SIZE = 4;
const GNUNET_OK = 1;
const GNUNET_YES = 1;
const GNUNET_NO = 0;
const GNUNET_SYSERR = -1;
declare var Module: EmscModule;
interface EmscModule {
cwrap: EmscFunGen;
_free(ptr: number);
_malloc(n: number): number;
Pointer_stringify(p: number, len?: number): string;
getValue(ptr: number, type: string, noSafe?: boolean): number;
setValue(ptr: number, value: number, type: string, noSafe?: boolean);
writeStringToMemory(s: string, buffer: number, dontAddNull?: boolean);
}
interface EmscFunGen {
(name: string,
@ -43,6 +43,16 @@ interface EmscFunGen {
args: string[]): ((...x: (number|string)[]) => string);
}
// Size of a native pointer.
const PTR_SIZE = 4;
const GNUNET_OK = 1;
const GNUNET_YES = 1;
const GNUNET_NO = 0;
const GNUNET_SYSERR = -1;
let getEmsc: EmscFunGen = (...args) => Module.cwrap.apply(null, args);
var emsc = {
@ -268,7 +278,6 @@ class SyncArena extends DefaultArena {
}
}
let arenaStack: Arena[] = [];
arenaStack.push(new SyncArena());

View File

@ -2,7 +2,7 @@
"description": "Privacy preserving and transparent payments",
"manifest_version": 2,
"name": "GNU Taler Wallet",
"version": "0.4",
"version": "0.5",
"applications": {
"gecko": {