StalderT пре 7 година
родитељ
комит
0803bebc46
2 измењених фајлова са 6 додато и 0 уклоњено
  1. 2 0
      include/ua_client_config.h
  2. 4 0
      plugins/ua_config_default.c

+ 2 - 0
include/ua_client_config.h

@@ -85,9 +85,11 @@ typedef struct UA_ClientConfig {
 
     void *clientContext;
 
+#ifdef UA_ENABLE_SUBSCRIPTIONS
     /* number of PublishResponse standing in the sever */
     /* 0 = background task disabled                    */
     UA_UInt16 outStandingPublishRequests;
+#endif
 } UA_ClientConfig;
 
 

+ 4 - 0
plugins/ua_config_default.c

@@ -643,11 +643,15 @@ const UA_ClientConfig UA_ClientConfig_default = {
     NULL, /*.customDataTypes */
 
     NULL, /*.stateCallback */
+#ifdef UA_ENABLE_SUBSCRIPTIONS
     NULL, /*.subscriptionInactivityCallback */
+#endif
 
     NULL,  /*.clientContext */
 
+#ifdef UA_ENABLE_SUBSCRIPTIONS
     10 /* .outStandingPublishRequests */
+#endif
 };
 
 UA_ClientConfig UA_Server_getClientConfig(void)