add xzarray_t for replacement of zarray_t finally

This commit is contained in:
Rongsong Shen 2026-02-20 11:25:42 +08:00
parent ce69347581
commit f582742e77
5 changed files with 465 additions and 101 deletions

View file

@ -13,11 +13,11 @@
int add_config(void* c, char* name, char* value)
{
cluster_t* cls = (cluster_t*)c;
xce_config_t var = { .name = name, .value = value };
xce_config_t* cv = NULL;
cluster_t* cls = (cluster_t*)c;
xce_config_t cvar = { .name = name, .value = value };
xce_config_t* cv = NULL;
cv = create_obj_by_typename(&(cls->objmgr), "xconfig", &var);
cv = create_obj_by_typename(&(cls->objmgr), "xconfig", &cvar);
if (cv == NULL) {
return -errno;
}