blob: 4f844a54a1c0dda6a498fa29cb7baf5142591a32 [file] [log] [blame]
anjana_sreekumar@infosys.com991c2062020-01-08 11:42:57 +05301/*
2 * Copyright (c) 2019, Infosys Ltd.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef INCLUDE_MME_APP_UTILS_MMECONTEXTMANAGERUTILS_H_
18#define INCLUDE_MME_APP_UTILS_MMECONTEXTMANAGERUTILS_H_
19
20#include <utils/mmeProcedureTypes.h>
21#include <stdint.h>
22
23namespace SM
24{
25class ControlBlock;
26}
27
28namespace mme
29{
30
31class MmeProcedureCtxt;
32class MmeContextManagerUtils
33{
34public:
35
36 static MmeProcedureCtxt* findProcedureCtxt(SM::ControlBlock& cb_r, ProcedureType procType);
37
38 static bool deleteProcedureCtxt(MmeProcedureCtxt* procedure_p);
39 static bool deallocateProcedureCtxt(SM::ControlBlock& cb_r, ProcedureType procType);
40 static bool deallocateAllProcedureCtxts(SM::ControlBlock& cb_r);
41
42 static void deleteUEContext(uint32_t cbIndex);
43 static void deleteSessionContext(SM::ControlBlock& cb_r);
44
45private:
46 MmeContextManagerUtils();
47 ~MmeContextManagerUtils();
48};
49}
50
51
52
53#endif /* INCLUDE_MME_APP_UTILS_MMECONTEXTMANAGERUTILS_H_ */