media/webrtc/signaling/src/sipcc/cpr/win32/cpr_win_defines.h
author Phil Ringnalda <philringnalda@gmail.com>
Mon, 08 Dec 2014 20:53:07 -0800
changeset 218811 960303b07c909e69db87467d0b499351d65c82af
permissions -rw-r--r--
Backed out 10 changesets (bug 1091242) for Android/b2g non-unified build bustage CLOSED TREE Backed out changeset 7f72b55c5de7 (bug 1091242) Backed out changeset f1501aa24397 (bug 1091242) Backed out changeset 7fde5994aee5 (bug 1091242) Backed out changeset 59b415714087 (bug 1091242) Backed out changeset dadb65fedc08 (bug 1091242) Backed out changeset 21be81424e4e (bug 1091242) Backed out changeset 498fb1dafba5 (bug 1091242) Backed out changeset 8d0653eb85ab (bug 1091242) Backed out changeset c82d484e135a (bug 1091242) Backed out changeset 3e0c8932f1b1 (bug 1091242)

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef _CPR_WIN_DEFINES_H
#define _CPR_WIN_DEFINES_H

#include "cpr_types.h"
#include "cpr_ipc.h"
#include "cpr_locks.h"
#include "cpr_timers.h"
#include "cpr_threads.h"
#include "cpr_debug.h"
#include "cpr_memory.h"

__BEGIN_DECLS

/*
 * CPR version number structure
 */
typedef struct {
    uint8_t majorRelease;
    uint8_t minorRelease;
    uint8_t pointRelease;
} cpr_version_t;

typedef void *cprRegion_t;
typedef void *cprPool_t;
/*
 * Define handle for signals
 */
typedef void* cprSignal_t;

/*
 * socket status
 */
typedef enum
{
    CPR_SOC_SECURE,
    CPR_SOC_NONSECURE
} cpr_soc_sec_status_e;

/*
 * secure socket connection status
 */
typedef enum
{
    CPR_SOC_CONN_OK,
    CPR_SOC_CONN_WAITING,
    CPR_SOC_CONN_FAILED
} cpr_soc_connect_status_e;




cprRegion_t cprCreateRegion (const char *regionName);
cprPool_t cprCreatePool (cprRegion_t region, const char *name, uint32_t initialBuffers, uint32_t bufferSize) ;


void cprDisableSwap (void);
void cprEnableSwap (void);

#define TCP_PORT_RETRY_CNT  5
#define TCP_PORT_MASK           0xfff
/*
 * tbd: need to finalize placement.
 * Define range of ephemeral ports used for Cisco IP Phones.
 */
#define CIPPORT_EPH_LOW         0xC000
#define CIPPORT_EPH_HI          0xCFFF



__END_DECLS

#endif