- implement xstring by librtti
This commit is contained in:
parent
15fac3cda1
commit
ce69347581
7 changed files with 250 additions and 95 deletions
|
|
@ -6,6 +6,7 @@
|
|||
#include "objmgr.h"
|
||||
#include "request.h"
|
||||
#include "xce/types.h"
|
||||
#include "xstring.h"
|
||||
|
||||
static int xce_apiserver_push_configs(cluster_t* c, endpoint_t* ep)
|
||||
{
|
||||
|
|
@ -603,9 +604,8 @@ int add_apiserver(cluster_t* c, char* name, endpoint_t* ep)
|
|||
|
||||
for (i = 0; i < N_APISERVER_MAX; i++) {
|
||||
if (c->apiservers[i].name == NULL) {
|
||||
c->apiservers[i].name
|
||||
= create_obj_by_typename(&(c->objmgr), "xstring", name);
|
||||
c->apiservers[i].ep = ep;
|
||||
c->apiservers[i].name = makeString(name);
|
||||
c->apiservers[i].ep = ep;
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue