NVIDIA DOCA SDK Data Center on a Chip Framework Documentation
doca_compat.h File Reference
#include <doca_config.h>
#include <string.h>
#include <stdint.h>
#include <stdlib.h>
#include <assert.h>
#include <doca_version.h>
Include dependency graph for doca_compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __attribute__(_x_)
 To allow compiling functions and structs that are using GCC attributes using attribute() in compilers that don't support them. More...
 
#define DLL_EXPORT_ATTR   dllimport
 To hint the compiler that the function should be exposed to the DLL or imported from it, according to the availability of DOCA_EXPORTS. By default, it should be imported. More...
 
#define DOCA_STABLE   __declspec(DLL_EXPORT_ATTR)
 To set a Symbol (or specifically a function) as stable API, i.e. it won't be changed. More...
 
#define DOCA_EXPERIMENTAL   __declspec(deprecated("Symbol is defined as experimental"), DLL_EXPORT_ATTR)
 To set a Symbol (or specifically a function) as experimental. More...
 
#define DOCA_DEPRECATED   __declspec(deprecated("Symbol is defined as deprecated"), DLL_EXPORT_ATTR)
 To set a Symbol (or specifically a function) as deprecated. More...
 
#define DOCA_STRUCT_START   size_t __doca_api_version
 
#define DOCA_STRUCT_GET_VERSION(_X_)   (_X_)->__doca_api_version
 
#define DOCA_STRUCT_CTOR(_X_)   (_X_).__doca_api_version = DOCA_VERSION_EXACT
 
#define DOCA_STRUCT_PTR_CTOR(_X_)   DOCA_STRUCT_CTOR(*(_X_))
 
#define DOCA_STRUCT_MEMSET_CTOR(_X_)
 
#define DOCA_STRUCT_PTR_MEMSET_CTOR(_X_)   DOCA_STRUCT_MEMSET_CTOR(*(_X_))
 
#define DOCA_STRUCT_CTOR_LIST_START   .__doca_api_version = DOCA_VERSION_EXACT
 
#define DOCA_STRUCT_DEF(__st__, __name__)   struct __st__ __name__ = {.__doca_api_version = DOCA_VERSION_EXACT}