7 #ifndef _MXIDAF_TAG_NEW_H_
8 #define _MXIDAF_TAG_NEW_H_
28 typedef struct tag_
tag;
100 const char *equipment_name,
101 const char *tag_name,
125 const char *equipment_name,
144 const char *equipment_name,
160 const char *equipment_name,
161 const char *tag_name,
int l
Definition: TagV2.h:69
int tag_publish(tag *self, const char *equipment_name, const char *tag_name, value_t *value, value_type_t value_type, const char *unit, const char *time)
Publish a tag.
void(* on_tag)(tag *self, const char *equipment_name, const char *tag_name, value_t *value, value_type_t value_type, const char *unit, const char *time)
Subscribe to callback function.
Definition: TagV2.h:158
tag * tag_new()
Create a tag.
struct tag_ tag
Tag instance.
Definition: TagV2.h:28
uint64_t u
Definition: TagV2.h:64
int tag_subscribe_callback(tag *self, on_tag)
Set the subscribe-callback function.
Value.
Definition: TagV2.h:61
int64_t i
Definition: TagV2.h:63
double d
Definition: TagV2.h:65
char * s
Definition: TagV2.h:66
void tag_delete(tag *self)
Delete a tag instance.
int tag_subscribe(tag *self, const char *equipment_name, const char *tag_name)
Subscribe to a tag.
value_type_t
Tag value type.
Definition: TagV2.h:76
char * b
Definition: TagV2.h:68
int tag_unsubscribe(tag *self, const char *equipment_name, const char *tag_name)
Unsubscribe from a tag.