36#include <Inventor/C/basic.h>
45enum CoinEndiannessValues {
46 COIN_HOST_IS_UNKNOWNENDIAN = -1,
47 COIN_HOST_IS_LITTLEENDIAN = 0,
48 COIN_HOST_IS_BIGENDIAN = 1
51COIN_DLL_API
int coin_host_get_endianness(
void);
53COIN_DLL_API
int coin_snprintf(
char * dst,
unsigned int n,
const char * fmtstr, ...);
54COIN_DLL_API
int coin_vsnprintf(
char * dst,
unsigned int n,
const char * fmtstr, va_list args);
56COIN_DLL_API
const char * coin_getenv(
const char * name);
57COIN_DLL_API SbBool coin_setenv(
const char * name,
const char * value,
int overwrite);
58COIN_DLL_API
void coin_unsetenv(
const char * name);
60COIN_DLL_API
int coin_strncasecmp(
const char * str1,
const char * str2,
int len);
62COIN_DLL_API uint16_t coin_hton_uint16(uint16_t value);
63COIN_DLL_API uint16_t coin_ntoh_uint16(uint16_t value);
64COIN_DLL_API uint32_t coin_hton_uint32(uint32_t value);
65COIN_DLL_API uint32_t coin_ntoh_uint32(uint32_t value);
66COIN_DLL_API uint64_t coin_hton_uint64(uint64_t value);
67COIN_DLL_API uint64_t coin_ntoh_uint64(uint64_t value);
69COIN_DLL_API
void coin_hton_float_bytes(
float value,
char * result);
70COIN_DLL_API
float coin_ntoh_float_bytes(
const char * value);
72COIN_DLL_API
void coin_hton_double_bytes(
double value,
char * result);
73COIN_DLL_API
double coin_ntoh_double_bytes(
const char * value);
75COIN_DLL_API SbBool coin_isascii(
const int c);
76COIN_DLL_API SbBool coin_isspace(
const char c);
78COIN_DLL_API SbBool coin_is_power_of_two(uint32_t x);
79COIN_DLL_API uint32_t coin_next_power_of_two(uint32_t x);
80COIN_DLL_API uint32_t coin_geq_power_of_two(uint32_t x);
82COIN_DLL_API
void coin_viewvolume_jitter(
int numpasses,
int curpass,
const int * vpsize,
float * jitter);
84typedef void coin_atexit_f(
void);
85COIN_DLL_API
void cc_coin_atexit(coin_atexit_f * fp);
88COIN_DLL_API
void cc_coin_atexit_static_internal(coin_atexit_f * fp);