michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef __PLAT_DEBUG_H__ michael@0: #define __PLAT_DEBUG_H__ michael@0: #include "cc_constants.h" michael@0: #include "debug.h" michael@0: michael@0: typedef cc_int32_t (*ci_callback)(cc_int32_t argc, const char *argv[]); michael@0: typedef struct ci_cmd_block michael@0: { michael@0: const char *cmd; michael@0: ci_callback func; michael@0: struct ci_cmd_block *next; michael@0: } ci_cmd_block_t; michael@0: michael@0: void debug_bind_keyword(const char *cmd, cc_int32_t *flag_ptr); michael@0: void bind_debug_func_keyword(const char *cmd, debug_callback func); michael@0: void bind_show_keyword(const char *cmd, show_callback func); michael@0: void bind_show_tech_keyword(const char *cmd, show_callback func, michael@0: cc_boolean show_tech); michael@0: void bind_clear_keyword(const char *cmd, clear_callback func); michael@0: void ci_bind_cmd(const char *cmd, ci_callback func, ci_cmd_block_t *blk); michael@0: michael@0: #endif