]>
Commit | Line | Data |
---|---|---|
a3bcde70 HT |
1 | /** @file\r |
2 | The internal structure and function declaration of the implementation\r | |
3 | to go through each entry in IpSecConfig application.\r | |
4 | \r | |
5 | Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r | |
6 | \r | |
ecf98fbc | 7 | SPDX-License-Identifier: BSD-2-Clause-Patent\r |
a3bcde70 HT |
8 | \r |
9 | **/\r | |
10 | \r | |
11 | #ifndef _FOREACH_H_\r | |
12 | #define _FOREACH_H_\r | |
13 | \r | |
14 | /**\r | |
15 | The prototype for the DumpSpdEntry()/DumpSadEntry()/DumpPadEntry().\r | |
16 | Print EFI_IPSEC_CONFIG_SELECTOR and corresponding content.\r | |
17 | \r | |
18 | @param[in] Selector The pointer to the EFI_IPSEC_CONFIG_SELECTOR union.\r | |
19 | @param[in] Data The pointer to the corresponding data.\r | |
20 | @param[in] Context The pointer to the Index in SPD/SAD/PAD Database.\r | |
21 | \r | |
22 | @retval EFI_SUCCESS Dump SPD/SAD/PAD information successfully.\r | |
23 | **/\r | |
24 | typedef\r | |
25 | EFI_STATUS\r | |
26 | (*VISIT_POLICY_ENTRY) (\r | |
27 | IN EFI_IPSEC_CONFIG_SELECTOR *Selector,\r | |
28 | IN VOID *Data,\r | |
29 | IN VOID *Context\r | |
30 | );\r | |
31 | \r | |
32 | /**\r | |
33 | Enumerate all entry in the database to execute a specified operation according to datatype.\r | |
34 | \r | |
35 | @param[in] DataType The value of EFI_IPSEC_CONFIG_DATA_TYPE.\r | |
36 | @param[in] Routine The pointer to function of a specified operation.\r | |
37 | @param[in] Context The pointer to the context of a function.\r | |
38 | \r | |
39 | @retval EFI_SUCCESS Execute specified operation successfully.\r | |
40 | **/\r | |
41 | EFI_STATUS\r | |
42 | ForeachPolicyEntry (\r | |
43 | IN EFI_IPSEC_CONFIG_DATA_TYPE DataType,\r | |
44 | IN VISIT_POLICY_ENTRY Routine,\r | |
45 | IN VOID *Context\r | |
46 | );\r | |
47 | \r | |
48 | #endif\r |