genconf: basic support of completion for nodes starting with "//"
[libcmdline.git] / src / extension_example / parse_obj_list.c
index d561519..34772b9 100644 (file)
@@ -66,11 +66,13 @@ parse_obj_list(cmdline_parse_token_hdr_t *tk, const char *buf, void *res,
        if (res)
                *(struct object **)res = o;
 
-       return token_len;
+       return 0;
 }
 
 static int
-complete_obj_list_start(cmdline_parse_token_hdr_t *tk, void **opaque)
+complete_obj_list_start(cmdline_parse_token_hdr_t *tk,
+                       __attribute__((unused)) const char *tokstr,
+                       void **opaque)
 {
        struct token_obj_list *tk2 = (struct token_obj_list *)tk;
        struct token_obj_list_data *tkd = &tk2->obj_list_data;