Thu, 15 Jan 2015 15:59:08 +0100
Implement a real Private Browsing Mode condition by changing the API/ABI;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | #include "cpr_stdio.h" |
michael@0 | 6 | #include "ccapi_call.h" |
michael@0 | 7 | #include "sessionHash.h" |
michael@0 | 8 | #include "CCProvider.h" |
michael@0 | 9 | #include "phone_debug.h" |
michael@0 | 10 | |
michael@0 | 11 | |
michael@0 | 12 | /** |
michael@0 | 13 | * get the placed missed rcvd disposition for the call |
michael@0 | 14 | * @param [in] handle - reference to call log |
michael@0 | 15 | * @return cc_log_disposition_t - log disposition |
michael@0 | 16 | */ |
michael@0 | 17 | cc_log_disposition_t CCAPI_CallLog_getCallDisposition(cc_calllog_ref_t handle); |
michael@0 | 18 | |
michael@0 | 19 | /** |
michael@0 | 20 | * get call start Time as seconds since epoch |
michael@0 | 21 | * @param [in] handle - reference to call log |
michael@0 | 22 | * @return cc_uint32_t - start time as number of seconds since epoch |
michael@0 | 23 | */ |
michael@0 | 24 | cc_uint32_t CCAPI_CallLog_getStartTime(cc_calllog_ref_t handle); |
michael@0 | 25 | |
michael@0 | 26 | /** |
michael@0 | 27 | * get call duration in seconds |
michael@0 | 28 | * @param [in] handle - reference to call log |
michael@0 | 29 | * @return cc_uint32_t - call duration in seconds |
michael@0 | 30 | */ |
michael@0 | 31 | cc_uint32_t CCAPI_CallLog_getCallDuration(cc_calllog_ref_t handle); |
michael@0 | 32 | |
michael@0 | 33 | /** |
michael@0 | 34 | * get first leg remote party name |
michael@0 | 35 | * @param [in] handle - reference to call log |
michael@0 | 36 | * @return cc_string_t - remote party name for first leg |
michael@0 | 37 | */ |
michael@0 | 38 | cc_string_t CCAPI_CallLog_getFirstLegRemotePartyName(cc_calllog_ref_t handle); |
michael@0 | 39 | |
michael@0 | 40 | /** |
michael@0 | 41 | * get last leg remote party name |
michael@0 | 42 | * @param [in] handle - reference to call log |
michael@0 | 43 | * @return cc_string_t - remote party name for last leg |
michael@0 | 44 | */ |
michael@0 | 45 | cc_string_t CCAPI_CallLog_getLastLegRemotePartyName(cc_calllog_ref_t handle); |
michael@0 | 46 | |
michael@0 | 47 | /** |
michael@0 | 48 | * get first leg remote party number |
michael@0 | 49 | * @param [in] handle - reference to call log |
michael@0 | 50 | * @return cc_string_t - remote party number for first leg |
michael@0 | 51 | */ |
michael@0 | 52 | cc_string_t CCAPI_CallLog_getFirstLegRemotePartyNumber(cc_calllog_ref_t handle); |
michael@0 | 53 | |
michael@0 | 54 | /** |
michael@0 | 55 | * get last leg remote party number |
michael@0 | 56 | * @param [in] handle - reference to call log |
michael@0 | 57 | * @return cc_string_t - remote party number for last leg |
michael@0 | 58 | */ |
michael@0 | 59 | cc_string_t CCAPI_CallLog_getLastLegRemotePartyNumber(cc_calllog_ref_t handle); |
michael@0 | 60 | |
michael@0 | 61 | /** |
michael@0 | 62 | * get first leg local party name |
michael@0 | 63 | * @param [in] handle - reference to call log |
michael@0 | 64 | * @return cc_string_t - local party name for first leg |
michael@0 | 65 | */ |
michael@0 | 66 | cc_string_t CCAPI_CallLog_getLocalPartyName(cc_calllog_ref_t handle); |
michael@0 | 67 | |
michael@0 | 68 | /** |
michael@0 | 69 | * get first leg local party number |
michael@0 | 70 | * @param [in] handle - reference to call log |
michael@0 | 71 | * @return cc_string_t - local party number for first leg |
michael@0 | 72 | */ |
michael@0 | 73 | cc_string_t CCAPI_CallLog_getLocalPartyNumber(cc_calllog_ref_t handle); |
michael@0 | 74 | |
michael@0 | 75 | /** |
michael@0 | 76 | * get first leg alt party number |
michael@0 | 77 | * @param [in] handle - reference to call log |
michael@0 | 78 | * @return cc_string_t - alt party number for first leg |
michael@0 | 79 | */ |
michael@0 | 80 | cc_string_t CCAPI_CallLog_getFirstLegAltPartyNumber(cc_calllog_ref_t handle); |
michael@0 | 81 | |
michael@0 | 82 | /** |
michael@0 | 83 | * get last leg alt party number |
michael@0 | 84 | * @param [in] handle - reference to call log |
michael@0 | 85 | * @return cc_string_t - alt party number for last leg |
michael@0 | 86 | */ |
michael@0 | 87 | cc_string_t CCAPI_CallLog_getLastLegAltPartyNumber(cc_calllog_ref_t handle); |