media/webrtc/signaling/src/sipcc/include/ccapi_line.h

Thu, 15 Jan 2015 15:59:08 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:59:08 +0100
branch
TOR_BUG_9701
changeset 10
ac0c01689b40
permissions
-rw-r--r--

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 #ifndef _CCAPI_LINE_H_
michael@0 6 #define _CCAPI_LINE_H_
michael@0 7
michael@0 8 #include "ccapi_types.h"
michael@0 9
michael@0 10 /**
michael@0 11 * Get reference handle for the line
michael@0 12 * @param [in] line - lineID on which to create call
michael@0 13 * @return cc_call_handle_t - handle of the call created
michael@0 14 * NOTE: The info returned by this method must be released using CCAPI_Line_releaseLineInfo()
michael@0 15 */
michael@0 16 cc_lineinfo_ref_t CCAPI_Line_getLineInfo(cc_uint32_t line);
michael@0 17
michael@0 18 /**
michael@0 19 * Create a call on the line
michael@0 20 * @param [in] line - lineID on which to create call
michael@0 21 * @return cc_call_handle_t - handle of the call created
michael@0 22 */
michael@0 23 cc_call_handle_t CCAPI_Line_CreateCall(cc_lineid_t line);
michael@0 24
michael@0 25 /**
michael@0 26 * Retain the lineInfo snapshot - this info shall not be freed until a
michael@0 27 * CCAPI_Line_releaseLineInfo() API releases this resource.
michael@0 28 * @param [in] ref - reference to the block to be retained
michael@0 29 * @return void
michael@0 30 * NOTE: Application may use this API to retain the device info using this API inside
michael@0 31 * CCAPI_LineListener_onLineEvent() App must release the Info using
michael@0 32 * CCAPI_Line_releaseLineInfo() once it is done with it.
michael@0 33 */
michael@0 34 void CCAPI_Line_retainLineInfo(cc_lineinfo_ref_t ref);
michael@0 35
michael@0 36 /**
michael@0 37 * Release the lineInfo snapshot that was retained using the CCAPI_Line_retainLineInfo API
michael@0 38 * @param [in] ref - line info reference to be freed
michael@0 39 * @return void
michael@0 40 */
michael@0 41 void CCAPI_Line_releaseLineInfo(cc_lineinfo_ref_t ref);
michael@0 42
michael@0 43 #endif /* _CCAPIAPI_LINE_H_ */

mercurial