Lines Matching refs:item
103 | Description : Create a new item with name and description. Return
104 | a pointer to this new item.
105 | N.B.: an item must(!) have a name.
107 | Return Values : The item pointer or NULL if creation failed.
112 ITEM *item;
120 item = (ITEM *) 0;
125 item = typeCalloc(ITEM, 1);
126 if (item)
128 *item = _nc_Default_Item; /* hope we have struct assignment */
130 item->name.length = (unsigned short)strlen(name);
131 item->name.str = name;
136 item->description.length = (unsigned short)strlen(description);
137 item->description.str = description;
141 item->description.length = 0;
142 item->description.str = (char *)0;
148 returnItem(item);
153 | Function : int free_item(ITEM *item)
155 | Description : Free the allocated storage for this item.
156 | N.B.: a connected item can't be freed.
160 | E_CONNECTED - item is still connected to a menu
163 free_item(ITEM * item)
165 T((T_CALLED("free_item(%p)"), (void *)item));
167 if (!item)
170 if (item->imenu)
173 free(item);
183 | item (single-valued menu) or the selected items