FACT++  1.0
ItemNode* findItem ( char *  name)

Definition at line 3045 of file feeserver.c.

References firstNode.

Referenced by getDeadband(), publish(), publishChar(), publishInt(), setDeadband(), and updateFeeService().

3045  {
3046 // char msg[70];
3047  ItemNode* current = 0;
3048 
3049  if (name == 0) {
3050  return 0;
3051  }
3052  current = firstNode;
3053  while (current != 0) { // is end of list
3054  if (strcmp(name, current->item->name) == 0) {
3055  // success, give back itemNode
3056  return current;
3057  }
3058  current = current->next;
3059  }
3060 // since two lists, which are searched seperately don't make log output in
3061 // findItem()-function -> move to where called to combine with other
3062 // findXYItem calls
3063 /*
3064  if (state == RUNNING) {
3065  msg[sprintf(msg, "Item %s not found in list.", name)] = 0;
3066  createLogMessage(MSG_WARNING, msg, 0);
3067 # ifdef __DEBUG
3068  printf("Item %s not found in list.\n", name);
3069  fflush(stdout);
3070 # endif
3071  }
3072 */
3073  return 0;
3074 }
static ItemNode * firstNode
Definition: feeserver.c:89

+ Here is the caller graph for this function: