|
int dc_tag_init |
( |
uint32_t |
max_tag_count, |
|
|
DC_TAG_CALLBACK * |
callback, |
|
|
void * |
user_context |
|
) |
| |
Initialize the DCTag SDK.
Before any other API can be used correctly, you must call this function once and only once to perform a runtime initialization firstly.
- Parameters
-
[in] | max_tag_count | the max tag count you will handle in your application. |
[in] | callback | the callback function pointer, in struct dc_tag_callback. If your application will not add any tag to the DataCenter, you can ignore this parameter and give a NULL value. |
[in] | user_context | the context pointer, which will be passed in the callback functions. |
- Returns
- On success, zero is returned, otherwise an error code is returned. please refer to the enum dc_tag_error_code for the error code description.
- See also
- dc_tag_callback
- Examples:
- dc_tag_owner.c, dc_tag_read.c, dc_tag_read_subscription.c, dc_tag_update.c, and dc_tag_write.c.
|