Add missing files
[gmpc-magnatune.git] / src / axl / axl_config.h
blob890cf662441fe80da47963570d259651cba0d567
1 /*
2 * Axl Library axl_config.h
3 * Platform dependant definitions.
5 * This is a generated file. Please modify 'configure.in'
6 */
8 #ifndef __AXL_CONFIG_H__
9 #define __AXL_CONFIG_H__
11 /**
12 * \addtogroup axl_decl_module
13 * @{
16 /**
17 * @brief Allows to convert integer value (including constant values)
18 * into a pointer representation.
20 * Use the oposite function to restore the value from a pointer to a
21 * integer: \ref PTR_TO_INT.
23 * @param integer The integer value to cast to pointer.
25 * @return A \ref axlPointer reference.
27 #define INT_TO_PTR(integer) ((axlPointer) (long) (integer))
29 /**
30 * @brief Allows to convert a pointer reference (\ref axlPointer),
31 * which stores an integer that was stored using \ref INT_TO_PTR.
33 * Use the oposite function to restore the pointer value stored in the
34 * integer value.
36 * @param ptr The pointer to cast to a integer value.
38 * @return A int value.
40 #define PTR_TO_INT(ptr) ((int) (long) (ptr))
42 /**
43 * @brief Allows to get current platform configuration. This is used
44 * by Axl library but could be used by applications built on top of
45 * Axl to change its configuration based on the platform information.
47 #define AXL_OS_UNIX (1)
49 /**
50 * @internal Allows to now if the platform support vasprintf
51 * function. Do not use this macro as it is supposed to be for
52 * internal use.
54 #define AXL_HAVE_VASPRINTF (1)
56 /* @} */
58 #endif