ui_sweep_app.h (1597B)
1 /* 2 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 3 * 4 * Copyright 2007-2020 Broadcom Inc. All rights reserved. 5 */ 6 7 8 #ifndef __UI_SWEEP_APP_H_INCLUDED__ 9 /* { */ 10 #define __UI_SWEEP_APP_H_INCLUDED__ 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 #ifdef _MSC_VER 17 /* 18 * On MS-Windows platform this attribute is not defined. 19 */ 20 #define __ATTRIBUTE_PACKED__ 21 #pragma pack(push) 22 #pragma pack(1) 23 24 #elif __GNUC__ 25 /* 26 * GNUC packing attribute 27 */ 28 #define __ATTRIBUTE_PACKED__ __attribute__ ((packed)) 29 #else 30 #error "Add your system support for packed attribute." 31 #endif 32 33 /************* 34 * INCLUDES * 35 */ 36 /* { */ 37 #include <appl/dpp/UserInterface/ui_pure_defi.h> 38 39 /* } */ 40 41 /************* 42 * DEFINES * 43 */ 44 /* { */ 45 46 /* } */ 47 48 /************* 49 * MACROS * 50 */ 51 /* { */ 52 53 #define SWEEP_UI_REPORT_SW_ERR_AND_EXIT(err_id) \ 54 if (0 != ui_ret)\ 55 {\ 56 ui_sweep_reoprt_sw_error_to_user(err_id);\ 57 ui_ret = TRUE ;\ 58 goto exit ;\ 59 } 60 61 62 /* } */ 63 64 /************* 65 * TYPE DEFS * 66 */ 67 /* { */ 68 69 /* } */ 70 71 /************* 72 * GLOBALS * 73 */ 74 /* { */ 75 76 /* } */ 77 78 /************* 79 * FUNCTIONS * 80 */ 81 /* { */ 82 83 void 84 ui_sweep_reoprt_sw_error_to_user( 85 unsigned int err_id 86 ); 87 88 void 89 sweep_ui_report_driver_err( 90 const unsigned long driver_ret 91 ); 92 93 int 94 subject_fap20v_sweep_app( 95 CURRENT_LINE *current_line, CURRENT_LINE **current_line_ptr 96 ); 97 98 /* } */ 99 100 101 #ifdef _MSC_VER 102 #pragma pack(pop) 103 #endif 104 105 #ifdef __cplusplus 106 } 107 #endif 108 109 110 /* } __UI_SWEEP_APP_H_INCLUDED__*/ 111 #endif