Loading...
Searching...
No Matches
su_types.h
Go to the documentation of this file.
/*
* This file is part of the Sofia-SIP package
*
* Copyright (C) 2005 Nokia Corporation.
*
* Contact: Pekka Pessi <pekka.pessi@nokia-email.address.hidden>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA
*
*/
#ifndef SU_TYPES_H
#define SU_TYPES_H
#ifndef SU_CONFIG_H
#include <sofia-sip/su_config.h>
#endif
#if SU_HAVE_STDINT
#include <stdint.h>
#elif SU_HAVE_INTTYPES
#include <inttypes.h>
#endif
#if SU_HAVE_SYS_TYPES
#include <sys/types.h>
#endif
#include <stddef.h>
SOFIA_BEGIN_DECLS
#if SU_HAVE_STDINT || SU_HAVE_INTTYPES
#define SU_S64_T int64_t
#define SU_U64_T uint64_t
#define SU_S32_T int32_t
#define SU_U32_T uint32_t
#define SU_S16_T int16_t
#define SU_U16_T uint16_t
#define SU_S8_T int8_t
#define SU_U8_T uint8_t
#define SU_LEAST64_T int_least64_t
#define SU_LEAST32_T int_least32_t
#define SU_LEAST16_T int_least16_t
#define SU_LEAST8_T int_least8_t
#endif
#if DOXYGEN_ONLY || (!SU_HAVE_STDINT && !SU_HAVE_INTTYPES && SU_HAVE_WIN32)
/* Use macros defined in <sofia-sip/su_configure_win32.h> */
#ifndef _INTPTR_T_DEFINED
typedef SU_INTPTR_T intptr_t;
#endif
#ifndef _UINTPTR_T_DEFINED
typedef unsigned SU_INTPTR_T uintptr_t;
#endif
typedef SU_U64_T uint64_t;
typedef SU_S64_T int64_t;
typedef SU_U32_T uint32_t;
typedef SU_S32_T int32_t;
typedef SU_U16_T uint16_t;
typedef SU_S16_T int16_t;
typedef SU_U8_T uint8_t;
typedef SU_S8_T int8_t;
typedef SU_LEAST64_T int_least64_t;
typedef SU_LEAST32_T int_least32_t;
typedef SU_LEAST16_T int_least16_t;
typedef SU_LEAST8_T int_least8_t;
#endif
#if !SU_HAVE_STDINT && !SU_HAVE_INTTYPES && !SU_HAVE_WIN32
#error "no integer types available."
#endif
/* ---------------------------------------------------------------------- */
/* size_t types for binary compatibility */
#ifdef SOFIA_SSIZE_T
typedef SOFIA_SSIZE_T ssize_t;
#endif
#ifdef SOFIA_ISIZE_T
typedef SOFIA_ISIZE_T isize_t;
#else
typedef size_t isize_t;
#endif
#ifdef SOFIA_ISSIZE_T
typedef SOFIA_ISSIZE_T issize_t;
#else
typedef ssize_t issize_t;
#endif
#ifdef SOFIA_USIZE_T
typedef SOFIA_USIZE_T usize_t;
#else
typedef size_t usize_t;
#endif
SOFIA_END_DECLS
#endif /* SU_TYPES_H */
su_config.h
su library configuration
SOFIA_ISSIZE_T
#define SOFIA_ISSIZE_T
Define this as ssize_t (int when compatible with sofia-sip-ua 1.12.0 binaries).
Definition su_configure.h:121
SOFIA_ISIZE_T
#define SOFIA_ISIZE_T
Define this as ssize_t.
Definition su_configure.h:114
SOFIA_USIZE_T
#define SOFIA_USIZE_T
Define this as size_t (unsigned int when compatible with sofia-sip-ua 1.12.0 binaries).
Definition su_configure.h:128
uint32_t
SU_U32_T uint32_t
32-bit unsigned integer
Definition su_types.h:87
int_least16_t
SU_LEAST16_T int_least16_t
At least 16-bit integer.
Definition su_types.h:104
uint16_t
SU_U16_T uint16_t
16-bit unsigned integer
Definition su_types.h:91
int64_t
SU_S64_T int64_t
64-bit signed integer
Definition su_types.h:85
uint64_t
SU_U64_T uint64_t
64-bit unsigned integer
Definition su_types.h:83
int_least8_t
SU_LEAST8_T int_least8_t
At least 8-bit integer.
Definition su_types.h:106
int_least32_t
SU_LEAST32_T int_least32_t
At least 32-bit integer.
Definition su_types.h:102
int16_t
SU_S16_T int16_t
16-bit signed integer
Definition su_types.h:93
intptr_t
SU_INTPTR_T intptr_t
Integer type large enough to store pointers.
Definition su_types.h:75
uint8_t
SU_U8_T uint8_t
8-bit unsigned integer
Definition su_types.h:95
int8_t
SU_S8_T int8_t
8-bit signed integer
Definition su_types.h:97
uintptr_t
unsigned SU_INTPTR_T uintptr_t
Unsigned integer type large enough to store pointers.
Definition su_types.h:79
int32_t
SU_S32_T int32_t
32-bit signed integer
Definition su_types.h:89
int_least64_t
SU_LEAST64_T int_least64_t
At least 64-bit integer.
Definition su_types.h:100

Sofia-SIP 1.12.11devel - Copyright (C) 2006 Nokia Corporation. All rights reserved. Licensed under the terms of the GNU Lesser General Public License.