aqhome: Added test for serial interface, added api.h.

This commit is contained in:
Martin Preuss
2023-01-22 17:47:30 +01:00
parent a8a9571a27
commit c0fca3bf98
4 changed files with 142 additions and 8 deletions

50
aqhome/api.h Normal file
View File

@@ -0,0 +1,50 @@
/****************************************************************************
* This file is part of the project AqHome.
* AqHome (c) by 2023 Martin Preuss, all rights reserved.
*
* The license for this file can be found in the file COPYING which you
* should have received along with this file.
****************************************************************************/
#ifndef AQH_API_H
#define AQH_API_H
# ifdef BUILDING_AQHOME
# /* building AqHome */
# if AQHOME_SYS_IS_WINDOWS
# /* for windows */
# ifdef __declspec
# define AQHOME_API __declspec (dllexport)
# else /* if __declspec */
# define AQHOME_API
# endif /* if NOT __declspec */
# else
# /* for non-win32 */
# ifdef GCC_WITH_VISIBILITY_ATTRIBUTE
# define AQHOME_API __attribute__((visibility("default")))
# else
# define AQHOME_API
# endif
# endif
# else
# /* not building AqHome */
# if AQHOME_SYS_IS_WINDOWS
# /* for windows */
# ifdef __declspec
# define AQHOME_API __declspec (dllimport)
# else /* if __declspec */
# define AQHOME_API
# endif /* if NOT __declspec */
# else
# /* for non-win32 */
# define AQHOME_API
# endif
# endif
#endif