]>
git.proxmox.com Git - mirror_edk2.git/blob - StdLib/EfiSocketLib/Init.c
2 Implement the constructor and destructor for the EFI socket library
4 Copyright (c) 2011, Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 EFI Socket Library Constructor
21 @retval EFI_SUCCESS The initialization was successful
40 // Call the image dependent constructor if available
42 if ( NULL
!= mpfnEslConstructor
) {
43 Status
= mpfnEslConstructor ( );
47 // Return the constructor status
49 DBG_EXIT_STATUS ( Status
);
55 EFI Socket Library Destructor
57 @retval EFI_SUCCESS The shutdown was successful
76 // Call the image dependent destructor if available
78 if ( NULL
!= mpfnEslDestructor
) {
79 Status
= mpfnEslDestructor ( );
83 // Return the constructor status
85 DBG_EXIT_STATUS ( Status
);