33 #define KB_TYPE_INT ARG_INT
38 #define KB_TYPE_STR ARG_STRING
int kb_item_set_int(struct kb_item **, char *, int)
Definition: kb.c:376
struct kb_item * kb_item_get_pattern(struct kb_item **, char *)
Returns a list of copies of kb_items that match a pattern.
Definition: kb.c:197
struct kb_item ** kb_new()
Allocates memory for an array of kb_items with max length of HASH_MAX.
Definition: kb.c:80
void kb_item_rm_all(struct kb_item **, char *)
Definition: kb.c:389
struct kb_item * next
Definition: kb.h:55
char * kb_item_get_str(struct kb_item **, char *)
Get the value of a kb_item with type KB_TYPE_STR and name name.
Definition: kb.c:120
int kb_item_get_int(struct kb_item **, char *)
Get the value of a kb_item with type KB_TYPE_INT and name name.
Definition: kb.c:137
int kb_item_add_int(struct kb_item **, char *, int)
Definition: kb.c:382
struct kb_item * kb_item_get_all(struct kb_item **, char *)
Returns a list of copies of kb_items with name name in a knowledge base.
Definition: kb.c:159
int kb_item_set_str(struct kb_item **, char *, char *)
Definition: kb.c:320
char type
Definition: kb.h:47
int v_int
Definition: kb.h:53
struct kb_item * kb_item_get_single(struct kb_item **, char *, int)
READ the knowledge base.
Definition: kb.c:93
char * name
Definition: kb.h:46
int kb_item_add_str(struct kb_item **, char *, char *)
Adds a string to the knowledge base. In contrast to kb_item_set_str the item will not be replaced (us...
Definition: kb.c:314
void kb_item_get_all_free(struct kb_item *)
Frees a list of kb_items.
Definition: kb.c:235
char * v_str
Definition: kb.h:52
struct kb_item ** kb_t
Definition: kb.h:58