]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/ferr.h
Merge pull request #3397 from mjstapp/fix_stream_macros
[mirror_frr.git] / lib / ferr.h
index 51fd9e3be5dd0719479fb93997c27154b4f62bcb..335875c166aaf57b18f077b7476677cddb3fceb3 100644 (file)
@@ -132,7 +132,7 @@ struct ferr {
 #define ZEBRA_FERR_END      0xF1FFFFFF
 #define END_FERR            0xFFFFFFFF
 
-struct ferr_ref {
+struct log_ref {
        /* Unique error code displayed to end user as a reference. -1 means
         * this is an uncoded error that does not have reference material. */
        uint32_t code;
@@ -144,16 +144,16 @@ struct ferr_ref {
        const char *suggestion;
 };
 
-void ferr_ref_add(struct ferr_ref *ref);
-struct ferr_ref *ferr_ref_get(uint32_t code);
-void ferr_ref_display(struct vty *, uint32_t code, bool json);
+void log_ref_add(struct log_ref *ref);
+struct log_ref *log_ref_get(uint32_t code);
+void log_ref_display(struct vty *vty, uint32_t code, bool json);
 
 /*
  * This function should be called by the
  * code in libfrr.c
  */
-void ferr_ref_init(void);
-void ferr_ref_fini(void);
+void log_ref_init(void);
+void log_ref_fini(void);
 
 /* get error details.
  *
@@ -163,8 +163,10 @@ void ferr_ref_fini(void);
  */
 const struct ferr *ferr_get_last(ferr_r errval);
 
-/* can optionally be called at strategic locations.
- * always returns 0. */
+/*
+ * Can optionally be called at strategic locations.
+ * Always returns 0.
+ */
 ferr_r ferr_clear(void);
 
 /* do NOT call these functions directly.  only for macro use! */