blob: c9de0c335490a53960c999400d100908a7f89bd7 [file] [log] [blame]
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +00001/*
Girish Gowdraa707e7c2019-11-07 11:36:13 +05302 * Copyright 2018-present Open Networking Foundation
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +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
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +00007
Girish Gowdraa707e7c2019-11-07 11:36:13 +05308 * http://www.apache.org/licenses/LICENSE-2.0
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +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 */
Thiyagarajan Subramani89fffc02019-05-13 21:33:20 +000016#ifndef __BCMCLI_SESSION_H__
17#define __BCMCLI_SESSION_H__
18#include "bcmos_errno.h"
19// This is a stub header file for unit test case only
20typedef int bcmcli_session;
21typedef char bcmcli_entry[50];
22typedef char bcmcli_cmd_parm;
23struct bcmos_task {
24 char task_name[50];
25};
26
27typedef struct bcmcli_session_parm {
28 void *get_prompt;
29 int access_right;
30} bcmcli_session_parm;
31
32#define BCMCLI_ACCESS_ADMIN 0xff
33#define BUG_ON //
34#define BCMCLI_MAKE_CMD_NOPARM(ptr, command1, command2, command3)
35#define BAL_API_VERSION 3
36
37
38extern bool bcmcli_is_stopped(bcmcli_session *sess);
39extern bool bcmcli_parse(bcmcli_session *sess, char *s);
40extern bool bcmcli_driver(bcmcli_session *sess);
41extern void bcmcli_token_destroy(void *);
42extern void bcmcli_session_close(bcmcli_session *sess);
43extern bcmos_errno bcm_api_cli_set_commands(bcmcli_session *sess);
44extern void bcmcli_stop(bcmcli_session *sess);
45extern void bcmcli_session_print(bcmcli_session *sess, const char *s);
46extern bcmos_errno bcmcli_session_open(bcmcli_session_parm *mon_sess, bcmcli_session **curr_sess);
47#endif
48