ThingWorx C SDK
twStandardProps.h
1 #ifndef TW_C_SDK_TWSTANDARDPROPS_H
2 #define TW_C_SDK_TWSTANDARDPROPS_H
3 /***************************************
4  * Copyright 2017, PTC, Inc.
5  ***************************************/
6 
19 #include <stdio.h>
20 #include <string.h>
21 #include <time.h>
22 #include "twApi.h"
23 #include "twOSPort.h"
24 #include "stringUtils.h"
25 #include "twMap.h"
26 #include "twProperties.h"
27 
28 typedef void (*PropertyChangeListenerFunction)(const char *, const char *, twPrimitive*);
29 
30 typedef struct twPropertyChangeRecord {
31  PropertyChangeListenerFunction listenerFunction;
32  char * entityName;
33  char * propertyName;
35 
51 int twExt_SetPropertyValue(const char *thingname, const char *propertyName, twPrimitive *value, char fold, char push);
52 
59 char twExt_PropertyExists(const char *thingname, char *propertyName);
60 
71 twPrimitive* twExt_GetPropertyValue(const char *thingname, char *propertyName);
72 
79 void twExt_AddPropertyChangeListener(char *entityName, char *propertyName,
80  PropertyChangeListenerFunction propertyChangeListenerFunction);
81 
86 void twExt_RemovePropertyChangeListener(PropertyChangeListenerFunction propertyChangeListenerFunction);
87 
102 enum msgCodeEnum twExt_StandardPropertyHandler(const char *entityName, const char *propertyName, twInfoTable **value,
103  char isWrite, void *userdata);
104 
105 #endif //TW_C_SDK_TWSTANDARDPROPS_H
Property definitions & metadata functions.
String utility function prototypes.
Wrappers for OS-specific functionality.
msgCodeEnum
Enumeration of HTTP message codes.
Definition: twDefinitions.h:74
Portable ThingWorx C SDK API layer.
Definition: twStandardProps.h:30
Info table base structure.
Definition: twInfoTable.h:418
BaseType primitive structure.
Definition: twBaseTypes.h:204