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);
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
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;
}
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;
}