mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 13:12:03 +00:00
committed by
Travis Cross
parent
589039481a
commit
fc97a91993
+1
-4
@@ -79,10 +79,7 @@ typedef struct zrtp_session_info_t zrtp_session_info_t;
|
||||
* big-endian (most significant byte first).
|
||||
*/
|
||||
|
||||
ZRTP_INLINE uint16_t zrtp_swap16(uint16_t x) {
|
||||
return (x >> 8 | x << 8);
|
||||
}
|
||||
|
||||
uint16_t zrtp_swap16(uint16_t x);
|
||||
uint32_t zrtp_swap32(uint32_t x);
|
||||
uint64_t zrtp_swap64(uint64_t x);
|
||||
|
||||
|
||||
@@ -17,7 +17,9 @@
|
||||
* If platworm is not specified manually in zrtp_config_user.h - try to detect it aytomatically
|
||||
*/
|
||||
#if !defined(ZRTP_PLATFORM)
|
||||
# if defined(linux) || defined(__linux)
|
||||
# if defined(ANDROID_NDK)
|
||||
# define ZRTP_PLATFORM ZP_ANDROID
|
||||
# elif defined(linux) || defined(__linux)
|
||||
# include <linux/version.h>
|
||||
# define ZRTP_PLATFORM ZP_LINUX
|
||||
# elif defined(__MACOSX__) || defined (__APPLE__) || defined (__MACH__)
|
||||
@@ -38,7 +40,9 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if (ZRTP_PLATFORM == ZP_LINUX) || (ZRTP_PLATFORM == ZP_DARWIN) || (ZRTP_PLATFORM == ZP_BSD) || defined(ZRTP_AUTOMAKE)
|
||||
#if ZRTP_PLATFORM == ZP_ANDROID
|
||||
# include "zrtp_config_android.h"
|
||||
#elif (ZRTP_PLATFORM == ZP_LINUX) || (ZRTP_PLATFORM == ZP_DARWIN) || (ZRTP_PLATFORM == ZP_BSD) || defined(ZRTP_AUTOMAKE)
|
||||
# include "zrtp_config_unix.h"
|
||||
#elif (ZRTP_PLATFORM == ZP_WIN32) || (ZRTP_PLATFORM == ZP_WIN32_KERNEL) || (ZRTP_PLATFORM == ZP_WINCE)
|
||||
# include "zrtp_config_win.h"
|
||||
@@ -59,7 +63,7 @@
|
||||
|
||||
/*
|
||||
* ZRTP BYTEORDER DETECTION
|
||||
* If the byte order is not specified manually in zrtp_config_user.h - try to detect it aytomatically
|
||||
* If the byte order is not specified manually in zrtp_config_user.h - try to detect it automatically
|
||||
*/
|
||||
#if !defined(ZRTP_BYTE_ORDER)
|
||||
|
||||
@@ -139,7 +143,7 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if (ZRTP_PLATFORM == ZP_WINCE) || (ZRTP_PLATFORM == ZP_SYMBIAN)
|
||||
#if (ZRTP_PLATFORM == ZP_WINCE) || (ZRTP_PLATFORM == ZP_SYMBIAN) || (ZRTP_PLATFORM == ZP_ANDROID)
|
||||
# define ALIGNMENT_32BIT_REQUIRED
|
||||
#endif
|
||||
|
||||
|
||||
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* libZRTP SDK library, implements the ZRTP secure VoIP protocol.
|
||||
* Copyright (c) 2006-2009 Philip R. Zimmermann. All rights reserved.
|
||||
* Contact: http://philzimmermann.com
|
||||
* For licensing and other legal details, see the file zrtp_legal.c.
|
||||
*
|
||||
* Viktor Krykun <v.krikun at zfoneproject.com>
|
||||
*/
|
||||
|
||||
#ifndef ZRTP_SYMB_CONFIG_H__
|
||||
#define ZRTP_SYMB_CONFIG_H__
|
||||
|
||||
#ifndef ZRTP_HAVE_STDIO_H
|
||||
# define ZRTP_HAVE_STDIO_H 1
|
||||
#endif
|
||||
|
||||
#ifndef ZRTP_HAVE_STDARG_H
|
||||
# define ZRTP_HAVE_STDARG_H 1
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef NO_ASSERT_H
|
||||
# define NO_ASSERT_H 1
|
||||
#endif
|
||||
|
||||
#ifndef NO_STDLIB_H
|
||||
# define NO_STDLIB_H 0
|
||||
#endif
|
||||
//#define ZRTP_HAVE_INTTYPES_H 1
|
||||
#ifndef ZRTP_HAVE_UNISTD_H
|
||||
# define ZRTP_HAVE_UNISTD_H 1
|
||||
#endif
|
||||
|
||||
#ifndef ZRTP_HAVE_PTHREAD_H
|
||||
# define ZRTP_HAVE_PTHREAD_H 1
|
||||
#endif
|
||||
|
||||
#ifndef ZRTP_HAVE_SEMAPHORE_H
|
||||
#define ZRTP_HAVE_SEMAPHORE_H 1
|
||||
#endif
|
||||
|
||||
#ifndef ZRTP_HAVE_ERRNO_H
|
||||
#define ZRTP_HAVE_ERRNO_H 1
|
||||
#endif
|
||||
|
||||
#ifndef ZRTP_HAVE_FCNTL_H
|
||||
#define ZRTP_HAVE_FCNTL_H 1
|
||||
#endif
|
||||
|
||||
#ifndef ZRTP_HAVE_SYS_TIME_H
|
||||
# define ZRTP_HAVE_SYS_TIME_H 1
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef ZRTP_HAVE_SYS_TYPES_H
|
||||
# define ZRTP_HAVE_SYS_TYPES_H 1
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef ZRTP_HAVE_INTTYPES_H
|
||||
# define ZRTP_HAVE_INTTYPES_H 1
|
||||
#endif
|
||||
|
||||
#ifndef ZRTP_HAVE_STDINT_H
|
||||
# define ZRTP_HAVE_STDINT_H 1
|
||||
#endif
|
||||
|
||||
#ifndef ZRTP_HAVE_LINUX_VERSION_H
|
||||
# define ZRTP_HAVE_LINUX_VERSION_H 0
|
||||
#endif
|
||||
|
||||
|
||||
// (ZRTP_PLATFORM == ZP_ANDROID)
|
||||
|
||||
|
||||
#define ZRTP_HAVE_INT64_T 1
|
||||
#define ZRTP_HAVE_INT32_T 1
|
||||
#define ZRTP_HAVE_INT16_T 1
|
||||
#define ZRTP_HAVE_INT8_T 1
|
||||
|
||||
#define ZRTP_HAVE_UINT64_T 1
|
||||
#define ZRTP_HAVE_UINT32_T 1
|
||||
#define ZRTP_HAVE_UINT16_T 1
|
||||
#define ZRTP_HAVE_UINT8_T 1
|
||||
|
||||
#define ZRTP_BYTE_ORDER ZBO_LITTLE_ENDIAN
|
||||
|
||||
#define SIZEOF_UNSIGNED_LONG 4
|
||||
#define SIZEOF_UNSIGNED_LONG_LONG 8
|
||||
|
||||
#define ZRTP_INLINE inline
|
||||
|
||||
#define ZRTP_USE_BUILTIN_CACHE 1
|
||||
#define ZRTP_USE_BUILTIN_SCEHDULER 1
|
||||
#undef ZRTP_USE_STACK_MINIM
|
||||
#define ZRTP_USE_STACK_MINIM 1
|
||||
#undef ZRTP_ENABLE_EC
|
||||
#define ZRTP_ENABLE_EC 0
|
||||
#define ALIGNMENT_32BIT_REQUIRED
|
||||
|
||||
#endif /* ZRTP_WIN_CONFIG_H__ */
|
||||
@@ -53,7 +53,8 @@
|
||||
#define ZP_SYMBIAN 105
|
||||
/** \brief Constant to define ZRTP BSD platform */
|
||||
#define ZP_BSD 107
|
||||
|
||||
/** \brief Constant to define ZRTP Android platform */
|
||||
#define ZP_ANDROID 108
|
||||
|
||||
/** \brief Define Platform manually there */
|
||||
//#undefine ZRTP_PLATFORM
|
||||
|
||||
@@ -41,7 +41,7 @@ extern "C"
|
||||
#if (ZRTP_PLATFORM == ZP_WIN32) || (ZRTP_PLATFORM == ZP_WINCE)
|
||||
#include <windows.h>
|
||||
typedef LPTHREAD_START_ROUTINE zrtp_thread_routine_t;
|
||||
#elif (ZRTP_PLATFORM == ZP_LINUX) || (ZRTP_PLATFORM == ZP_DARWIN) || (ZRTP_PLATFORM == ZP_BSD)
|
||||
#elif (ZRTP_PLATFORM == ZP_LINUX) || (ZRTP_PLATFORM == ZP_DARWIN) || (ZRTP_PLATFORM == ZP_BSD) || (ZRTP_PLATFORM == ZP_ANDROID)
|
||||
typedef void *(*zrtp_thread_routine_t)(void*);
|
||||
#elif (ZRTP_PLATFORM == ZP_SYMBIAN)
|
||||
typedef int(*zrtp_thread_routine_t)(void*);
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
|
||||
#define LIBZRTP_VERSION_MAJOR 1
|
||||
|
||||
#define LIBZRTP_VERSION_MINOR 12
|
||||
#define LIBZRTP_VERSION_BUILD 600
|
||||
#define LIBZRTP_VERSION_STR "v1.12 600"
|
||||
#define LIBZRTP_VERSION_MINOR 13
|
||||
#define LIBZRTP_VERSION_BUILD 604
|
||||
#define LIBZRTP_VERSION_STR "v1.13 604"
|
||||
|
||||
#endif /*__ZRTP_VERSION_H__*/
|
||||
|
||||
Reference in New Issue
Block a user