diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/proto.h | 6 | ||||
-rw-r--r-- | include/pttstruct.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/include/proto.h b/include/proto.h index 12700e29..1d482e55 100644 --- a/include/proto.h +++ b/include/proto.h @@ -412,6 +412,12 @@ typedef int (*gnc_comp_func)(int, const char*, int); typedef int (*gnc_perm_func)(int); typedef char* (*gnc_getname_func)(int); +extern void NameList_init(struct NameList *self); +extern void NameList_delete(struct NameList *self); +extern void NameList_clear(struct NameList *self); +extern void NameList_add(struct NameList *self, const char *name); +extern void namecomplete2(struct NameList *namelist, const char *prompt, char *data); + void usercomplete(const char *prompt, char *data); void namecomplete(const char *prompt, char *data); void AddNameList(const char *name); diff --git a/include/pttstruct.h b/include/pttstruct.h index 67fa00cf..64aac0ac 100644 --- a/include/pttstruct.h +++ b/include/pttstruct.h @@ -652,6 +652,12 @@ typedef struct word_t { struct word_t *next; } word_t; +struct NameList { + int size; + int capacity; + char (*base)[IDLEN+1]; +}; + typedef struct commands_t { int (*cmdfunc)(); int level; |