2018-06-14 14:23:49 +02:00
|
|
|
/*
|
|
|
|
* Library-specific error messages.
|
|
|
|
* Copyright (C) 2018 Cumulus Networks, Inc.
|
|
|
|
* Donald Sharp
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the Free
|
|
|
|
* Software Foundation; either version 2 of the License, or (at your option)
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
|
|
|
* more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; see the file COPYING; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
2018-06-19 22:58:44 +02:00
|
|
|
|
2018-06-14 14:23:49 +02:00
|
|
|
#ifndef __LIB_ERRORS_H__
|
|
|
|
#define __LIB_ERRORS_H__
|
|
|
|
|
2018-06-19 22:58:44 +02:00
|
|
|
#include "lib/ferr.h"
|
2018-06-14 14:23:49 +02:00
|
|
|
|
2018-08-03 20:07:23 +02:00
|
|
|
enum lib_log_refs {
|
2018-06-14 14:23:49 +02:00
|
|
|
LIB_ERR_PRIVILEGES = LIB_FERR_START,
|
|
|
|
LIB_ERR_VRF_START,
|
2018-06-14 15:13:18 +02:00
|
|
|
LIB_ERR_SOCKET,
|
2018-06-14 14:56:27 +02:00
|
|
|
LIB_ERR_ZAPI_MISSMATCH,
|
|
|
|
LIB_ERR_ZAPI_ENCODE,
|
|
|
|
LIB_ERR_ZAPI_SOCKET,
|
2018-06-14 15:13:18 +02:00
|
|
|
LIB_ERR_SYSTEM_CALL,
|
2018-06-14 15:21:11 +02:00
|
|
|
LIB_ERR_VTY,
|
2018-06-14 15:35:09 +02:00
|
|
|
LIB_ERR_SNMP,
|
2018-06-18 14:49:36 +02:00
|
|
|
LIB_ERR_INTERFACE,
|
2018-06-18 14:55:06 +02:00
|
|
|
LIB_ERR_NS,
|
2018-06-18 15:13:37 +02:00
|
|
|
LIB_ERR_DEVELOPMENT,
|
2018-06-18 15:25:03 +02:00
|
|
|
LIB_ERR_ZMQ,
|
2018-06-19 20:29:05 +02:00
|
|
|
LIB_ERR_UNAVAILABLE,
|
2018-08-20 14:52:36 +02:00
|
|
|
LIB_WARN_SNMP,
|
2018-08-20 15:27:30 +02:00
|
|
|
LIB_WARN_STREAM,
|
2018-06-14 14:23:49 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
extern void lib_error_init(void);
|
|
|
|
|
|
|
|
#endif
|