summaryrefslogtreecommitdiff
path: root/StdLib/EfiSocketLib/Socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'StdLib/EfiSocketLib/Socket.h')
-rw-r--r--StdLib/EfiSocketLib/Socket.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/StdLib/EfiSocketLib/Socket.h b/StdLib/EfiSocketLib/Socket.h
index f2fbdb57b3..43a7084f95 100644
--- a/StdLib/EfiSocketLib/Socket.h
+++ b/StdLib/EfiSocketLib/Socket.h
@@ -1188,6 +1188,28 @@ EslSocketCopyFragmentedBuffer (
);
/**
+ Free the socket.
+
+ This routine frees the socket structure and handle resources.
+
+ The ::close routine calls EslServiceFreeProtocol which then calls
+ this routine to free the socket context structure and close the
+ handle.
+
+ @param [in] pSocketProtocol Address of an ::EFI_SOCKET_PROTOCOL structure.
+
+ @param [out] pErrno Address to receive the errno value upon completion.
+
+ @retval EFI_SUCCESS The socket resources were returned successfully.
+
+ **/
+EFI_STATUS
+EslSocketFree (
+ IN EFI_SOCKET_PROTOCOL * pSocketProtocol,
+ IN int * pErrno
+ );
+
+/**
Free the ESL_IO_MGMT event and structure
This support routine walks the free list to close the event in