This is an automated email from the ASF dual-hosted git repository.

dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new 715a5df2ad [INLONG-8854][SDK] Add return code information for 
dataproxy cpp sdk (#8855)
715a5df2ad is described below

commit 715a5df2adc57bd483c73ef6bb8b4d14944b9f3e
Author: doleyzi <[email protected]>
AuthorDate: Sat Sep 9 18:03:19 2023 +0800

    [INLONG-8854][SDK] Add return code information for dataproxy cpp sdk (#8855)
    
    Co-authored-by: doleyzi <[email protected]>
---
 .../dataproxy-sdk-cpp/release/inc/api_code.h       | 48 ++++++++++++++++++++++
 .../dataproxy-sdk-cpp/src/config/sdk_conf.cc       |  2 +-
 2 files changed, 49 insertions(+), 1 deletion(-)

diff --git 
a/inlong-sdk/dataproxy-sdk-twins/dataproxy-sdk-cpp/release/inc/api_code.h 
b/inlong-sdk/dataproxy-sdk-twins/dataproxy-sdk-cpp/release/inc/api_code.h
new file mode 100644
index 0000000000..ee9640f396
--- /dev/null
+++ b/inlong-sdk/dataproxy-sdk-twins/dataproxy-sdk-cpp/release/inc/api_code.h
@@ -0,0 +1,48 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements. See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+
+#ifndef INLONG_SDK_API_CODE_H
+#define INLONG_SDK_API_CODE_H
+namespace inlong{
+enum SdkCode {
+  kSuccess = 0,
+  kMultiInit = 4,
+  kErrorInit = 5,
+  kMsgTooLong = 6,
+  kInvalidInput = 7,
+  kRecvBufferFull = 8,
+  kFailGetConn = 9,
+  kSendAfterClose = 10,
+  kMultiExits = 11,
+  kInvalidBid = 12,
+  kFailGetBufferPool = 13,
+  kFailGetSendBuf = 14,
+  kFailWriteToBuf = 15,
+  kErrorCURL = 16,
+  kErrorParseJson = 17,
+  kFailGetRevGroup = 18 ,
+  kFailGetBusConf = 19 ,
+  kFailSendBus = 20 ,
+  kFailSParseResponse = 21,
+  kSendBeforeInit= 22,
+  kFailMallocBuf= 23,
+  kMsgSizeLargerThanPackSize= 24,
+  kSendBufferFull = 25
+};
+}
+
+#endif  // INLONG_SDK_API_CODE_H
diff --git 
a/inlong-sdk/dataproxy-sdk-twins/dataproxy-sdk-cpp/src/config/sdk_conf.cc 
b/inlong-sdk/dataproxy-sdk-twins/dataproxy-sdk-cpp/src/config/sdk_conf.cc
index 70ed4528e6..dab7fd5b8d 100644
--- a/inlong-sdk/dataproxy-sdk-twins/dataproxy-sdk-cpp/src/config/sdk_conf.cc
+++ b/inlong-sdk/dataproxy-sdk-twins/dataproxy-sdk-cpp/src/config/sdk_conf.cc
@@ -24,7 +24,7 @@
 #include "../utils/logger.h"
 #include "../utils/utils.h"
 
-namespace sdk {
+namespace inlong {
 SdkConfig *SdkConfig::instance_ = new SdkConfig();
 SdkConfig *SdkConfig::getInstance() { return SdkConfig::instance_; }
 

Reply via email to