Definition at line 1396 of file feeserver.c.
References add_item_node(), dis_add_service, findCharItem(), findIntItem(), findItem(), Memory::free(), id, Memory::malloc(), and sprintf().
Referenced by publishFloat().
1398 char* serviceName = 0;
1401 if (state != COLLECTING) {
1402 return FEE_WRONG_STATE;
1409 printf(
"Bad item, not published\n");
1412 return FEE_NULLPOINTER;
1416 printf(
"Bad item, not published\n");
1419 return FEE_NULLPOINTER;
1425 printf(
"Item name already published (float), new float item discarded.\n");
1428 return FEE_ITEM_NAME_EXISTS;
1433 printf(
"Item name already published (int), float item discarded.\n");
1436 return FEE_ITEM_NAME_EXISTS;
1441 printf(
"Item name already published in char list, float item discarded.\n");
1444 return FEE_ITEM_NAME_EXISTS;
1449 if (serviceName == 0) {
1450 return FEE_INSUFFICIENT_MEMORY;
1455 sizeof(
float), 0, 0);
ItemNode * findItem(char *name)
void add_item_node(unsigned int _id, Item *_item)
CharItemNode * findCharItem(char *name)
static int serverNameLength
IntItemNode * findIntItem(char *name)
sprintf(name1,"NewService%d", i)