Definition at line 3249 of file feeserver.c.
References add_int_item_node(), dis_add_service, findCharItem(), findIntItem(), findItem(), Memory::free(), id, Memory::malloc(), and sprintf().
3251 char* serviceName = 0;
3254 if (state != COLLECTING) {
3255 return FEE_WRONG_STATE;
3262 printf(
"Bad intItem, not published\n");
3265 return FEE_NULLPOINTER;
3267 if (intItem->name == 0 || intItem->location == 0) {
3269 printf(
"Bad intItem, not published\n");
3272 return FEE_NULLPOINTER;
3277 if (
findItem(intItem->name) != 0) {
3279 printf(
"Item name already published in float list, int item discarded.\n");
3282 return FEE_ITEM_NAME_EXISTS;
3287 printf(
"Item name already published in int list, new int item discarded.\n");
3290 return FEE_ITEM_NAME_EXISTS;
3295 printf(
"Item name already published in char list, int item discarded.\n");
3298 return FEE_ITEM_NAME_EXISTS;
3304 if (serviceName == 0) {
3305 return FEE_INSUFFICIENT_MEMORY;
ItemNode * findItem(char *name)
CharItemNode * findCharItem(char *name)
static int serverNameLength
void add_int_item_node(unsigned int _id, IntItem *_int_item)
IntItemNode * findIntItem(char *name)
sprintf(name1,"NewService%d", i)