Delete.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /** @file
  2. The internal structure and function declaration of delete policy entry function
  3. in IpSecConfig application.
  4. Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>
  5. SPDX-License-Identifier: BSD-2-Clause-Patent
  6. **/
  7. #ifndef __DELETE_H_
  8. #define __DELETE_H_
  9. typedef struct {
  10. EFI_IPSEC_CONFIG_DATA_TYPE DataType;
  11. POLICY_ENTRY_INDEXER Indexer;
  12. EFI_STATUS Status; //Indicate whether deletion succeeds.
  13. } DELETE_POLICY_ENTRY_CONTEXT;
  14. /**
  15. Flush or delete entry information in the database according to datatype.
  16. @param[in] DataType The value of EFI_IPSEC_CONFIG_DATA_TYPE.
  17. @param[in] ParamPackage The pointer to the ParamPackage list.
  18. @retval EFI_SUCCESS Delete entry information successfully.
  19. @retval EFI_NOT_FOUND Can't find the specified entry.
  20. @retval Others Some mistaken case.
  21. **/
  22. EFI_STATUS
  23. FlushOrDeletePolicyEntry (
  24. IN EFI_IPSEC_CONFIG_DATA_TYPE DataType,
  25. IN LIST_ENTRY *ParamPackage
  26. );
  27. #endif