Commit Graph

19 Commits

Author SHA1 Message Date
Stefan Profanter
63f3653ff1 Additional header cleanup and consistent name of ns generated files 2019-03-21 20:16:31 +01:00
Julius Pfrommer
c9c818868f Move header files to a more unix-like structure
This commit drops the 'ua_' prefix and changes the public includes
to the form `#include <open62541/server.h>` instead of the old
`#include <ua_server.h>`
2019-03-21 20:16:31 +01:00
Frank Meerkoetter
3b020131c7 Free all allocations before exiting
Makes this example run valgrind clean.

==7424== HEAP SUMMARY:
==7424==     in use at exit: 0 bytes in 0 blocks
==7424==   total heap usage: 96,908 allocs, 96,908 frees, 190,708,768 bytes allocated

vs.

==5408== HEAP SUMMARY:
==5408==     in use at exit: 96 bytes in 2 blocks
==5408==   total heap usage: 96,908 allocs, 96,906 frees, 190,708,768 bytes allocated
==5408==
==5408== 96 (48 direct, 48 indirect) bytes in 1 blocks are definitely lost in loss record 2 of 2
==5408==    at 0x4C2DBF6: malloc (vg_replace_malloc.c:299)
==5408==    by 0x40312A: main (server_types_custom.c:68)
==5408==
==5408== LEAK SUMMARY:
==5408==    definitely lost: 48 bytes in 1 blocks
==5408==    indirectly lost: 48 bytes in 1 blocks

before
2019-02-20 11:22:26 +01:00
Frank Meerkoetter
1648fb8aaa Use EXIT_SUCCESS/FAILURE for the examples
Make use of EXIT_SUCCESS and EXIT_FAILURE from stdlib.h.
The previous approach of returning a value from UA_StatusCode
was often broken as an exit code can (portably) only be between 0 and 125.
2019-02-09 09:34:46 +01:00
Julius Pfrommer
c75efc25cb Stack: Tag DataTypes with a "kind" for explicit dispatch in jumptables 2019-02-02 21:45:20 +01:00
Julius Pfrommer
b4c9fc37eb Client: Initialize client config inside the client structure
Temporarily disable encyrption
2019-01-30 18:45:42 +01:00
Stefan Profanter
d715db1057
Stack: Use non-amalgamated headers in all the examples
For consistency we recommend using non-amalgamation install, thus the
examples should also use the non-amalgamated headers.
2018-12-17 22:40:07 +01:00
Julius Pfrommer
eb9409b435 Examples: Use _clear instead of _deleteMembers for the examples 2018-12-09 19:40:02 +01:00
Stefan Profanter
e2d4b0bf03
Merge pull request #2085 from open62541/runtime_custom_types
Custom types at runtime
2018-10-23 10:21:16 +02:00
Martin Lang
4b9cb3c034 Replace ValueRanks by defines (#2124)
* Replace ValueRanks by defines

* Update tests/client/check_client_highlevel.c
2018-10-20 15:46:30 +02:00
Julius Pfrommer
49e0a0bb1e Types: Add UA_DataTypeArray as a linked list for client/server 2018-09-28 17:09:22 +02:00
Julius Pfrommer
3f438c47cc Use custom datatypes from the heap only 2018-08-15 20:10:58 +00:00
Jose Cabral
1605455a74 Fixes #1925 and clean examples 2018-07-25 08:17:51 +02:00
Julius Pfrommer
78538baae7 add server-config to the docs 2018-01-24 17:51:03 +01:00
StalderT
7e30f66b0b fix if/while/for/switch typo 2018-01-22 22:00:55 +01:00
Julius Pfrommer
5ec8dd51ec fix tests with UA_ENABLE_MULTITHREADING and UA_ENABLE_TYPENAMES disabled 2017-09-21 17:46:30 +02:00
Stefan Profanter
e80f16b1d0
Fix locale 2017-09-09 00:50:55 +02:00
Stefan Profanter
cd8b0c8a82
Untabify 2017-09-09 00:48:56 +02:00
Muddasir-Shakil
02f31d972a
Create examples for custom datatypes
Includes examples for client and server. The data type used is 3D point example.
2017-09-07 09:42:43 +02:00