inc/saiversion.h (11 lines of code) (raw):

/** * Copyright (c) 2014 Microsoft Open Technologies, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may * not use this file except in compliance with the License. You may obtain * a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 * * THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT * LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS * FOR A PARTICULAR PURPOSE, MERCHANTABILITY OR NON-INFRINGEMENT. * * See the Apache Version 2.0 License for specific language governing * permissions and limitations under the License. * * Microsoft would like to thank the following companies for their review and * assistance with these files: Intel Corporation, Mellanox Technologies Ltd, * Dell Products, L.P., Facebook, Inc., Marvell International Ltd. * * @file saiversion.h * * @brief Define the current version */ #if !defined (__SAIVERSION_H_) #define __SAIVERSION_H_ #include <saitypes.h> #define SAI_MAJOR 1 #define SAI_MINOR 15 #define SAI_REVISION 1 #define SAI_VERSION(major, minor, revision) (10000 * (major) + 100 * (minor) + (revision)) #define SAI_API_VERSION SAI_VERSION(SAI_MAJOR, SAI_MINOR, SAI_REVISION) /** * @brief Retrieve a SAI API version this implementation is aligned to * * @param[out] version Version number * * @return #SAI_STATUS_SUCCESS on success, failure status code on error */ sai_status_t sai_query_api_version( _Out_ sai_api_version_t *version); #endif /** __SAIVERSION_H_ */