]>
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 | |
7 | This program and the accompanying materials\r | |
8 | are licensed and made available under the terms and conditions of the BSD License\r | |
9 | which accompanies this distribution. The full text of the license may be found at\r | |
10 | http://opensource.org/licenses/bsd-license.php.\r | |
11 | \r | |
12 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
13 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
14 | \r | |
15 | **/\r | |
16 | \r | |
17 | #ifndef _FOREACH_H_\r | |
18 | #define _FOREACH_H_\r | |
19 | \r | |
20 | /**\r | |
21 | The prototype for the DumpSpdEntry()/DumpSadEntry()/DumpPadEntry().\r | |
22 | Print EFI_IPSEC_CONFIG_SELECTOR and corresponding content.\r | |
23 | \r | |
24 | @param[in] Selector The pointer to the EFI_IPSEC_CONFIG_SELECTOR union.\r | |
25 | @param[in] Data The pointer to the corresponding data.\r | |
26 | @param[in] Context The pointer to the Index in SPD/SAD/PAD Database.\r | |
27 | \r | |
28 | @retval EFI_SUCCESS Dump SPD/SAD/PAD information successfully.\r | |
29 | **/\r | |
30 | typedef\r | |
31 | EFI_STATUS\r | |
32 | (*VISIT_POLICY_ENTRY) (\r | |
33 | IN EFI_IPSEC_CONFIG_SELECTOR *Selector,\r | |
34 | IN VOID *Data,\r | |
35 | IN VOID *Context\r | |
36 | );\r | |
37 | \r | |
38 | /**\r | |
39 | Enumerate all entry in the database to execute a specified operation according to datatype.\r | |
40 | \r | |
41 | @param[in] DataType The value of EFI_IPSEC_CONFIG_DATA_TYPE.\r | |
42 | @param[in] Routine The pointer to function of a specified operation.\r | |
43 | @param[in] Context The pointer to the context of a function.\r | |
44 | \r | |
45 | @retval EFI_SUCCESS Execute specified operation successfully.\r | |
46 | **/\r | |
47 | EFI_STATUS\r | |
48 | ForeachPolicyEntry (\r | |
49 | IN EFI_IPSEC_CONFIG_DATA_TYPE DataType,\r | |
50 | IN VISIT_POLICY_ENTRY Routine,\r | |
51 | IN VOID *Context\r | |
52 | );\r | |
53 | \r | |
54 | #endif\r |