blob: e066ef2382d38e6f6640e1e0a4340fed6ed540d7 [file] [log] [blame]
Zack Williams477ba092018-10-17 10:50:06 -07001/*
Girish Gowdraa707e7c2019-11-07 11:36:13 +05302 * Copyright 2018-present Open Networking Foundation
Zack Williams477ba092018-10-17 10:50:06 -07003
Girish Gowdraa707e7c2019-11-07 11:36:13 +05304 * 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
Zack Williams477ba092018-10-17 10:50:06 -07007
Girish Gowdraa707e7c2019-11-07 11:36:13 +05308 * http://www.apache.org/licenses/LICENSE-2.0
Zack Williams477ba092018-10-17 10:50:06 -07009
Girish Gowdraa707e7c2019-11-07 11:36:13 +053010 * 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 */
Zack Williams477ba092018-10-17 10:50:06 -070016
Nicolas Palpacuer73222e02018-07-16 12:20:26 -040017#ifndef OPENOLT_ERROR_FORMAT_H_
18#define OPENOLT_ERROR_FORMAT_H_
19
20#include <string>
21#include <grpc++/grpc++.h>
22
23extern "C"
24{
25#include <bcmos_system.h>
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +000026#include <bcmolt_api.h>
Nicolas Palpacuer73222e02018-07-16 12:20:26 -040027}
28
29grpc::Status bcm_to_grpc_err(bcmos_errno bcm_err, std::string message);
Nicolas Palpacuer967438f2018-09-07 14:41:54 -040030std::string grpc_status_code_to_string(grpc::StatusCode status_code);
Nicolas Palpacuer73222e02018-07-16 12:20:26 -040031
32
33#endif