1 | /** @file
|
---|
2 | This library provides help functions for REST EX Protocol.
|
---|
3 |
|
---|
4 | (C) Copyright 2020 Hewlett Packard Enterprise Development LP<BR>
|
---|
5 | Copyright (c) 2023, Ampere Computing LLC. All rights reserved.<BR>
|
---|
6 |
|
---|
7 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
8 |
|
---|
9 | **/
|
---|
10 |
|
---|
11 | #ifndef REST_EX_LIB_H_
|
---|
12 | #define REST_EX_LIB_H_
|
---|
13 |
|
---|
14 | #include <Protocol/RestEx.h>
|
---|
15 |
|
---|
16 | ///
|
---|
17 | /// Library class public functions
|
---|
18 | ///
|
---|
19 |
|
---|
20 | /**
|
---|
21 | This function allows the caller to create child handle for specific
|
---|
22 | REST server.
|
---|
23 |
|
---|
24 | @param[in] Controller The controller handle used of selected interface.
|
---|
25 | @param[in] Image The image handle used to open service.
|
---|
26 | @param[in] AccessMode Access mode of REST server.
|
---|
27 | @param[in] ConfigType Underlying configuration to communicate with REST server.
|
---|
28 | @param[in] ServiceType REST service type.
|
---|
29 | @param[out] ChildInstanceHandle The handle to receive the create child.
|
---|
30 |
|
---|
31 | @retval EFI_SUCCESS Can't create the corresponding REST EX child instance.
|
---|
32 | @retval EFI_INVALID_PARAMETERS Any of input parameters is improper.
|
---|
33 |
|
---|
34 | **/
|
---|
35 | EFI_STATUS
|
---|
36 | RestExLibCreateChild (
|
---|
37 | IN EFI_HANDLE Controller,
|
---|
38 | IN EFI_HANDLE Image,
|
---|
39 | IN EFI_REST_EX_SERVICE_ACCESS_MODE AccessMode,
|
---|
40 | IN EFI_REST_EX_CONFIG_TYPE ConfigType,
|
---|
41 | IN EFI_REST_EX_SERVICE_TYPE ServiceType,
|
---|
42 | OUT EFI_HANDLE *ChildInstanceHandle
|
---|
43 | );
|
---|
44 |
|
---|
45 | #endif
|
---|