소스 검색

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