blob: c35d6f0ae2436a9e27e827696af344fe5b295507 [file] [log] [blame]
Shad Ansari01b0e652018-04-05 21:02:53 +00001/*
Girish Gowdraa707e7c2019-11-07 11:36:13 +05302 * Copyright 2018-present Open Networking Foundation
Shad Ansari01b0e652018-04-05 21:02:53 +00003
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
Shad Ansari01b0e652018-04-05 21:02:53 +00007
Girish Gowdraa707e7c2019-11-07 11:36:13 +05308 * http://www.apache.org/licenses/LICENSE-2.0
Shad Ansari01b0e652018-04-05 21:02:53 +00009
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 */
Shad Ansarib7b0ced2018-05-11 21:53:32 +000016#ifndef OPENOLT_UTILS_H_
17#define OPENOLT_UTILS_H_
Shad Ansari01b0e652018-04-05 21:02:53 +000018
Craig Lutgen88a22ad2018-10-04 12:30:46 -050019#include <string>
20
Shad Ansari01b0e652018-04-05 21:02:53 +000021extern "C"
22{
23#include <bcmos_system.h>
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +000024#include <bcmolt_api.h>
25#include <bcmolt_api_model_supporting_structs.h>
Shad Ansari01b0e652018-04-05 21:02:53 +000026}
27
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +000028std::string serial_number_to_str(bcmolt_serial_number* serial_number);
Craig Lutgen88a22ad2018-10-04 12:30:46 -050029std::string vendor_specific_to_str(const char* const serial_number);
Shad Ansari01b0e652018-04-05 21:02:53 +000030
31#endif