瀏覽代碼

allow editing of received buffers; required for decoding

Julius Pfrommer 7 年之前
父節點
當前提交
c97ac3aa56
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/ua_connection.c
  2. 1 1
      src/ua_connection_internal.h

+ 1 - 1
src/ua_connection.c

@@ -138,7 +138,7 @@ struct completeChunkTrampolineData {
 
 static void
 completeChunkTrampoline(void *application, UA_Connection *connection,
-                        const UA_ByteString *chunk) {
+                        UA_ByteString *chunk) {
     struct completeChunkTrampolineData *data =
         (struct completeChunkTrampolineData*)application;
     data->called = true;

+ 1 - 1
src/ua_connection_internal.h

@@ -14,7 +14,7 @@ extern "C" {
 /* The application can be the client or the server */
 typedef void (*UA_Connection_processChunk)(void *application,
                                            UA_Connection *connection,
-                                           const UA_ByteString *chunk);
+                                           UA_ByteString *chunk);
 
 /* The network layer may receive chopped up messages since TCP is a streaming
  * protocol. This method calls the processChunk callback on all full chunks that