Tue, 06 Jan 2015 21:39:09 +0100
Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #ifndef __UNIPRIV__
6 #define __UNIPRIV__
8 #include <stdint.h>
9 #include "umap.h"
10 #include "uconvutil.h"
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
16 int uMapCode(const uTable *uT,
17 uint16_t in,
18 uint16_t* out);
20 int uGenerate(uScanClassID scanClass,
21 int32_t* state,
22 uint16_t in,
23 unsigned char* out,
24 uint32_t outbuflen,
25 uint32_t* outlen);
27 int uScan(uScanClassID scanClass,
28 int32_t *state,
29 unsigned char *in,
30 uint16_t *out,
31 uint32_t inbuflen,
32 uint32_t* inscanlen);
34 int uGenerateShift(uShiftOutTable *shift,
35 int32_t* state,
36 uint16_t in,
37 unsigned char* out,
38 uint32_t outbuflen,
39 uint32_t* outlen);
41 int uScanShift(uShiftInTable *shift,
42 int32_t *state,
43 unsigned char *in,
44 uint16_t *out,
45 uint32_t inbuflen,
46 uint32_t* inscanlen);
48 #ifdef __cplusplus
49 }
50 #endif
52 #endif /* __UNIPRIV__ */