From 4fc07d5d891c251a1fe09c17ee16467d961a8f74 Mon Sep 17 00:00:00 2001
From: zhangmeng <775834166@qq.com>
Date: 星期三, 14 十二月 2022 15:31:12 +0800
Subject: [PATCH] add interface creg add topic and export symbols

---
 cbhomeclient.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cbhomeclient.cpp b/cbhomeclient.cpp
index 60140b2..1dac84e 100644
--- a/cbhomeclient.cpp
+++ b/cbhomeclient.cpp
@@ -194,7 +194,7 @@
         return tmp;
     };
     size_t tpcc = 0, pubc = 0;
-    char** tpc = creg_rep_topic(rinfo, &tpcc);
+    char** tpc = creg_reply_topic(rinfo, &tpcc);
     char** pub = creg_pub_topic(rinfo, &pubc);
     auto tmparr = shallowMerge(tpc, tpcc, pub, pubc);
     auto tpcmsg = to_topic(cli, bus_register_topics, tmparr, tpcc + pubc);

--
Gitblit v1.8.0