— NEW FEATURE SINCE VERSION 0.8.2b [Char channel] (2007-07-28) — ///
Definition at line 3938 of file feeserver.c.
References add_char_item_node(), dis_add_service, findCharItem(), findIntItem(), findItem(), Memory::free(), id, Memory::malloc(), and sprintf().
3940 char* serviceName = 0;
3943 if (state != COLLECTING) {
3944 return FEE_WRONG_STATE;
3949 if (charItem == 0) {
3951 printf(
"Bad charItem, not published\n");
3954 return FEE_NULLPOINTER;
3956 if (charItem->name == 0 || charItem->user_routine == 0) {
3958 printf(
"Bad charItem, not published\n");
3961 return FEE_NULLPOINTER;
3966 if (
findItem(charItem->name) != 0) {
3968 printf(
"Item name already published in float list, char item discarded.\n");
3971 return FEE_ITEM_NAME_EXISTS;
3976 printf(
"Item name already published in int list, char item discarded.\n");
3979 return FEE_ITEM_NAME_EXISTS;
3984 printf(
"Item name already published in char list, new char item discarded.\n");
3987 return FEE_ITEM_NAME_EXISTS;
3992 if (serviceName == 0) {
3993 return FEE_INSUFFICIENT_MEMORY;
ItemNode * findItem(char *name)
void add_char_item_node(unsigned int _id, CharItem *_char_item)
CharItemNode * findCharItem(char *name)
static int serverNameLength
IntItemNode * findIntItem(char *name)
sprintf(name1,"NewService%d", i)