Autcomplete defaults to string data
p_obj_autocomplete_new() can be used to create an autocompleter that stores arbitrary data structures passing memory management functions to get a string, copy and free
This commit is contained in:
@@ -29,7 +29,8 @@ typedef struct p_autocomplete_t *PAutocomplete;
|
||||
typedef const char * (*PStrFunc)(const void *obj);
|
||||
typedef void * (*PCopyFunc)(const void *obj);
|
||||
|
||||
PAutocomplete p_autocomplete_new(PStrFunc str_func, PCopyFunc copy_func,
|
||||
PAutocomplete p_autocomplete_new(void);
|
||||
PAutocomplete p_obj_autocomplete_new(PStrFunc str_func, PCopyFunc copy_func,
|
||||
GDestroyNotify free_func);
|
||||
void p_autocomplete_clear(PAutocomplete ac);
|
||||
void p_autocomplete_reset(PAutocomplete ac);
|
||||
|
||||
Reference in New Issue
Block a user