media/libmkv/EbmlBufferWriter.h

Sat, 03 Jan 2015 20:18:00 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 03 Jan 2015 20:18:00 +0100
branch
TOR_BUG_3246
changeset 7
129ffea94266
permissions
-rw-r--r--

Conditionally enable double key logic according to:
private browsing mode or privacy.thirdparty.isolate preference and
implement in GetCookieStringCommon and FindCookie where it counts...
With some reservations of how to convince FindCookie users to test
condition and pass a nullptr when disabling double key logic.

     1 #ifndef EBMLBUFFERWRITER_HPP
     2 #define EBMLBUFFERWRITER_HPP
     4 typedef struct {
     5   unsigned long long offset;
     6 } EbmlLoc;
     8 typedef struct {
     9   unsigned char *buf;
    10   unsigned int length;
    11   unsigned int offset;
    12 } EbmlGlobal;
    14 void Ebml_Write(EbmlGlobal *glob, const void *buffer_in, unsigned long len);
    15 void Ebml_Serialize(EbmlGlobal *glob, const void *buffer_in,
    16                     int buffer_size, unsigned long len);
    17 void Ebml_StartSubElement(EbmlGlobal *glob, EbmlLoc *ebmlLoc, unsigned long class_id);
    18 void Ebml_EndSubElement(EbmlGlobal *glob,  EbmlLoc *ebmlLoc);
    20 #endif

mercurial