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.

     1 /* This Source Code Form is subject to the terms of the Mozilla Public
     2  * License, v. 2.0. If a copy of the MPL was not distributed with this
     3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     5 #ifndef _CCAPI_LINE_H_
     6 #define _CCAPI_LINE_H_
     8 #include "ccapi_types.h"
    10 /**
    11  * Get reference handle for the line
    12  * @param [in] line - lineID on which to create call
    13  * @return cc_call_handle_t - handle of the call created
    14  * NOTE: The info returned by this method must be released using CCAPI_Line_releaseLineInfo()
    15  */
    16 cc_lineinfo_ref_t CCAPI_Line_getLineInfo(cc_uint32_t line);
    18 /**
    19  * Create a call on the line
    20  * @param [in] line - lineID on which to create call
    21  * @return cc_call_handle_t - handle of the call created
    22  */
    23 cc_call_handle_t CCAPI_Line_CreateCall(cc_lineid_t line);
    25 /**
    26  * Retain the lineInfo snapshot - this info shall not be freed until a
    27  * CCAPI_Line_releaseLineInfo() API releases this resource.
    28  * @param [in] ref - reference to the block to be retained
    29  * @return void
    30  * NOTE: Application may use this API to retain the device info using this API inside
    31  * CCAPI_LineListener_onLineEvent() App must release the Info using
    32  * CCAPI_Line_releaseLineInfo() once it is done with it.
    33  */
    34 void CCAPI_Line_retainLineInfo(cc_lineinfo_ref_t ref);
    36 /**
    37  * Release the lineInfo snapshot that was retained using the CCAPI_Line_retainLineInfo API
    38  * @param [in] ref - line info reference to be freed
    39  * @return void
    40  */
    41 void CCAPI_Line_releaseLineInfo(cc_lineinfo_ref_t ref);
    43 #endif /* _CCAPIAPI_LINE_H_ */

mercurial