]> git.puffer.fish Git - mirror/frr.git/commitdiff
lib,zebra: rename opaque decode api
authorMark Stapp <mjs@voltanet.io>
Thu, 4 Jun 2020 13:40:35 +0000 (09:40 -0400)
committerMark Stapp <mjs@voltanet.io>
Wed, 10 Jun 2020 12:16:10 +0000 (08:16 -0400)
Change name of an opaque zapi api to 'decode' to align with the
other zapi message parsing apis. Missed that in the original
opaque commits.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
lib/zclient.c
lib/zclient.h
zebra/zebra_opaque.c

index 9b1ff7237fc4b305940af63db660db22d238f629..4297bf16a6e9fbd53e6505444d8da4ba4cb77d14 100644 (file)
@@ -3204,9 +3204,9 @@ int zclient_unregister_opaque(struct zclient *zclient, uint32_t type)
        return ret;
 }
 
-/* Utility to parse opaque registration info */
-int zapi_parse_opaque_reg(struct stream *s,
-                         struct zapi_opaque_reg_info *info)
+/* Utility to decode opaque registration info */
+int zapi_opaque_reg_decode(struct stream *s,
+                          struct zapi_opaque_reg_info *info)
 {
        STREAM_GETL(s, info->type);
        STREAM_GETC(s, info->proto);
index d99b6ddf8fed18349a1e2fc11469945ec78cd2f2..f5aa1d758db130f2f1015a996509a2e6b7ee3926 100644 (file)
@@ -862,8 +862,8 @@ struct zapi_opaque_reg_info {
 
 int zclient_register_opaque(struct zclient *zclient, uint32_t type);
 int zclient_unregister_opaque(struct zclient *zclient, uint32_t type);
-int zapi_parse_opaque_reg(struct stream *msg,
-                         struct zapi_opaque_reg_info *info);
+int zapi_opaque_reg_decode(struct stream *msg,
+                          struct zapi_opaque_reg_info *info);
 
 /*
  * Registry of opaque message types. Please do not reuse an in-use
index d1e0497154d20f97c9962a3b81197edca0cb7c5f..0b7c5b26b033307d756ad8be9625392cdecc4cf5 100644 (file)
@@ -460,7 +460,7 @@ static int handle_opq_registration(const struct zmsghdr *hdr,
 
        memset(&info, 0, sizeof(info));
 
-       if (zapi_parse_opaque_reg(msg, &info) < 0) {
+       if (zapi_opaque_reg_decode(msg, &info) < 0) {
                ret = -1;
                goto done;
        }
@@ -540,7 +540,7 @@ static int handle_opq_unregistration(const struct zmsghdr *hdr,
 
        memset(&info, 0, sizeof(info));
 
-       if (zapi_parse_opaque_reg(msg, &info) < 0) {
+       if (zapi_opaque_reg_decode(msg, &info) < 0) {
                ret = -1;
                goto done;
        }