提交 f6078dc2 编写于 作者: K kailixu

chore: more code

上级 76386b9f
...@@ -123,7 +123,7 @@ typedef enum { ...@@ -123,7 +123,7 @@ typedef enum {
} SET_CONF_RET_CODE; } SET_CONF_RET_CODE;
typedef enum { typedef enum {
TAOS_NOTIFY_PASSVER = 1, TAOS_NOTIFY_PASSVER = 0,
} TAOS_NOTIFY_TYPE; } TAOS_NOTIFY_TYPE;
#define RET_MSG_LENGTH 1024 #define RET_MSG_LENGTH 1024
......
...@@ -131,7 +131,15 @@ int taos_set_notify_cb(TAOS *taos, __taos_notify_fn_t *fp, void *param) { ...@@ -131,7 +131,15 @@ int taos_set_notify_cb(TAOS *taos, __taos_notify_fn_t *fp, void *param) {
return -1; return -1;
} }
pObj->passInfo.fp = fp; int32_t type = param ? *(int32_t *)param : 0;
switch (type) {
case TAOS_NOTIFY_PASSVER: {
pObj->passInfo.fp = fp;
break;
}
default:
break;
}
releaseTscObj(*(int64_t *)taos); releaseTscObj(*(int64_t *)taos);
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册