1 /*
2  * Copyright (c) 2022, Arm Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include "fwu_service_context.h"
8 
9 struct rpc_service_interface *fwu_service_context::m_provider_iface = NULL;
10 
fwu_service_context(const char * sn)11 fwu_service_context::fwu_service_context(const char *sn)
12 	: standalone_service_context(sn)
13 {
14 }
15 
~fwu_service_context()16 fwu_service_context::~fwu_service_context()
17 {
18 }
19 
set_provider(struct rpc_service_interface * iface)20 void fwu_service_context::set_provider(struct rpc_service_interface *iface)
21 {
22 	m_provider_iface = iface;
23 }
24 
do_init()25 void fwu_service_context::do_init()
26 {
27 	standalone_service_context::set_rpc_interface(m_provider_iface);
28 }
29 
do_deinit()30 void fwu_service_context::do_deinit()
31 {
32 	set_provider(NULL);
33 }
34 
fwu_service_context_set_provider(struct rpc_service_interface * iface)35 void fwu_service_context_set_provider(struct rpc_service_interface *iface)
36 {
37 	fwu_service_context::set_provider(iface);
38 }