diff options
author | James Booth <boothj5@gmail.com> | 2012-05-22 00:38:04 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-05-22 00:38:04 +0100 |
commit | 7e62076347eccbf04c4d2c725878477c13ba48c5 (patch) | |
tree | e326fa127396669a039d6dffd0cd64722bdad2af /DESIGN | |
parent | 95dbb68b388dc4cf13491b9e04b197b17144f745 (diff) | |
download | profani-tty-7e62076347eccbf04c4d2c725878477c13ba48c5.tar.gz |
Added more code documentation
Diffstat (limited to 'DESIGN')
-rw-r--r-- | DESIGN | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/DESIGN b/DESIGN index 54194438..5470b4f2 100644 --- a/DESIGN +++ b/DESIGN @@ -163,4 +163,19 @@ The idea is that these modules could be included in other applications. The "prof_" prefix is just because they were created whilst developing Profanity. +prof_autocomplete.c +------------------- +Two type are PAutocomplete can be created. + +p_autocomplete_new() creates a PAutocomplete that can store strings, the +simple case. + +p_obj_autocomplete_new() creates a PAutocomplete of arbitrary data +structures. This function must be passed function pointers of the following +types: + + PStrFunc: A function that will get a string out of the data structure + PCopyFunc: A function that will make a copy the data structure, allocating + memory for it. + GDestroyNotify: A function that will free memory for the data structure. |