eap_blob and eap_error wrapper classes introduced

This commit is contained in:
Simon Rozman 2016-10-03 15:19:06 +02:00
parent 7b0b38aab3
commit c582610967

View File

@ -24,6 +24,8 @@
#include <eaphostpeerconfigapis.h> #include <eaphostpeerconfigapis.h>
#include <eaptypes.h> // Must include after <Windows.h> #include <eaptypes.h> // Must include after <Windows.h>
#include <memory>
namespace winstd namespace winstd
{ {
/// ///
@ -44,11 +46,21 @@ namespace winstd
/// ///
struct WINSTD_API EapHostPeerFreeMemory_delete; struct WINSTD_API EapHostPeerFreeMemory_delete;
///
/// EapHost BLOB wrapper class
///
typedef std::unique_ptr<BYTE[], EapHostPeerFreeMemory_delete> WINSTD_API eap_blob;
/// ///
/// Deleter for unique_ptr to EAP_ERROR using EapHostPeerFreeEapError /// Deleter for unique_ptr to EAP_ERROR using EapHostPeerFreeEapError
/// ///
struct WINSTD_API EapHostPeerFreeErrorMemory_delete; struct WINSTD_API EapHostPeerFreeErrorMemory_delete;
///
/// EAP_ERROR wrapper class
///
typedef std::unique_ptr<EAP_ERROR, EapHostPeerFreeErrorMemory_delete> WINSTD_API eap_error;
/// ///
/// EAP_ATTRIBUTE wrapper class /// EAP_ATTRIBUTE wrapper class
/// ///