opc_ua/opcua_client_maker.py
changeset 3407 2f5c30054d50
parent 3406 3aac4241dafa
child 3422 700b39cb4525
equal deleted inserted replaced
3406:3aac4241dafa 3407:2f5c30054d50
   483 
   483 
   484 #include <open62541/client_config_default.h>
   484 #include <open62541/client_config_default.h>
   485 #include <open62541/client_highlevel.h>
   485 #include <open62541/client_highlevel.h>
   486 #include <open62541/plugin/log_stdout.h>
   486 #include <open62541/plugin/log_stdout.h>
   487 
   487 
   488 UA_Client *client;
   488 static UA_Client *client;
   489 
   489 
   490 #define DECL_VAR(ua_type, C_type, c_loc_name)                                                       \\
   490 #define DECL_VAR(ua_type, C_type, c_loc_name)                                                       \\
   491 UA_Variant c_loc_name##_variant;                                                                    \\
   491 static UA_Variant c_loc_name##_variant;                                                             \\
   492 C_type c_loc_name##_buf = 0;                                                                        \\
   492 static C_type c_loc_name##_buf = 0;                                                                 \\
   493 C_type *c_loc_name = &c_loc_name##_buf;
   493 C_type *c_loc_name = &c_loc_name##_buf;
   494 
   494 
   495 %(decl)s
   495 %(decl)s
   496 
   496 
   497 void __cleanup_%(locstr)s(void)
   497 void __cleanup_%(locstr)s(void)