LibreOffice Module onlineupdate (master) 1
Macros | Functions
mar_private.h File Reference
#include "limits.h"
#include "mozilla/Assertions.h"
#include <stdint.h>
#include <netinet/in.h>
#include <unistd.h>
#include <stdio.h>
Include dependency graph for mar_private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BLOCKSIZE   4096
 
#define ROUND_UP(n, incr)   (((n) / (incr) + 1) * (incr))
 
#define MAR_ID   "MAR1"
 
#define MAR_ID_SIZE   4
 
#define SIGNATURE_BLOCK_OFFSET   16
 
#define MAX_SIZE_OF_MAR_FILE   ((int64_t)1824288000)
 
#define MAX_SIGNATURE_LENGTH   2048
 
#define PRODUCT_INFO_BLOCK_ID   1
 
#define MAR_ITEM_SIZE(namelen)   (3*sizeof(uint32_t) + (namelen) + 1)
 
#define PIB_MAX_MAR_CHANNEL_ID_SIZE   63
 
#define PIB_MAX_PRODUCT_VERSION_SIZE   31
 
#define _FILE_OFFSET_BITS   64
 
#define HOST_TO_NETWORK64(x)
 
#define NETWORK_TO_HOST64   HOST_TO_NETWORK64
 

Functions

 MOZ_STATIC_ASSERT (MAX_SIZE_OF_MAR_FILE<((int64_t) LONG_MAX), "max mar file size is too big")
 

Macro Definition Documentation

◆ _FILE_OFFSET_BITS

#define _FILE_OFFSET_BITS   64

Definition at line 61 of file mar_private.h.

◆ BLOCKSIZE

#define BLOCKSIZE   4096

Definition at line 14 of file mar_private.h.

◆ HOST_TO_NETWORK64

#define HOST_TO_NETWORK64 (   x)
Value:
( \
((((uint64_t) x) & 0xFF) << 56) | \
((((uint64_t) x) >> 8) & 0xFF) << 48) | \
(((((uint64_t) x) >> 16) & 0xFF) << 40) | \
(((((uint64_t) x) >> 24) & 0xFF) << 32) | \
(((((uint64_t) x) >> 32) & 0xFF) << 24) | \
(((((uint64_t) x) >> 40) & 0xFF) << 16) | \
(((((uint64_t) x) >> 48) & 0xFF) << 8) | \
(((uint64_t) x) >> 56)
float x

Definition at line 68 of file mar_private.h.

◆ MAR_ID

#define MAR_ID   "MAR1"

Definition at line 17 of file mar_private.h.

◆ MAR_ID_SIZE

#define MAR_ID_SIZE   4

Definition at line 18 of file mar_private.h.

◆ MAR_ITEM_SIZE

#define MAR_ITEM_SIZE (   namelen)    (3*sizeof(uint32_t) + (namelen) + 1)

Definition at line 47 of file mar_private.h.

◆ MAX_SIGNATURE_LENGTH

#define MAX_SIGNATURE_LENGTH   2048

Definition at line 41 of file mar_private.h.

◆ MAX_SIZE_OF_MAR_FILE

#define MAX_SIZE_OF_MAR_FILE   ((int64_t)1824288000)

Definition at line 26 of file mar_private.h.

◆ NETWORK_TO_HOST64

#define NETWORK_TO_HOST64   HOST_TO_NETWORK64

Definition at line 77 of file mar_private.h.

◆ PIB_MAX_MAR_CHANNEL_ID_SIZE

#define PIB_MAX_MAR_CHANNEL_ID_SIZE   63

Definition at line 50 of file mar_private.h.

◆ PIB_MAX_PRODUCT_VERSION_SIZE

#define PIB_MAX_PRODUCT_VERSION_SIZE   31

Definition at line 51 of file mar_private.h.

◆ PRODUCT_INFO_BLOCK_ID

#define PRODUCT_INFO_BLOCK_ID   1

Definition at line 45 of file mar_private.h.

◆ ROUND_UP

#define ROUND_UP (   n,
  incr 
)    (((n) / (incr) + 1) * (incr))

Definition at line 15 of file mar_private.h.

◆ SIGNATURE_BLOCK_OFFSET

#define SIGNATURE_BLOCK_OFFSET   16

Definition at line 22 of file mar_private.h.

Function Documentation

◆ MOZ_STATIC_ASSERT()

MOZ_STATIC_ASSERT ( )