openbcm

Git mirror of https://github.com/Broadcom-Network-Switching-Software/OpenBCM
git clone git://git.finwo.net/mirror/broadcom/openbcm
Log | Files | Refs | README

bslmgmt.h (903B)


      1 /*
      2  * 
      3  * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file.
      4  * 
      5  * Copyright 2007-2020 Broadcom Inc. All rights reserved.
      6  *
      7  * Broadcom System Log Management
      8  */
      9 
     10 #ifndef _DIAG_BSLMGMT_H
     11 #define _DIAG_BSLMGMT_H
     12 
     13 #include <stdarg.h>
     14 #include <shared/bslext.h>
     15 
     16 extern int
     17 bslmgmt_cleanup(void);
     18 
     19 extern int
     20 bslmgmt_init(void);
     21 
     22 /*!
     23  * \brief Install output redirection hook.
     24  *
     25  * An output redirection hook is used when the output from one command
     26  * should be used as input for another.
     27  *
     28  * If the redirection output hook returns a non-zero value, the log
     29  * message (command output) will not be sent to any of the installed
     30  * output sinks.
     31  *
     32  * \param [in] out_hook Output hook for redirection.
     33  *
     34  * \return Always 0.
     35  */
     36 extern int
     37 bslmgmt_redir_hook_set(bsl_out_hook_f out_hook);
     38 
     39 #endif /* !_DIAG_BSLMGMT_H */