Przeglądaj źródła

allow editing of received buffers; required for decoding

Julius Pfrommer 7 lat temu
rodzic
commit
c97ac3aa56
2 zmienionych plików z 2 dodań i 2 usunięć
  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