Lines Matching refs:txt
54 os_free(e->txt); in cli_txt_list_free()
69 const char *txt) in cli_txt_list_get() argument
74 if (os_strcmp(e->txt, txt) == 0) in cli_txt_list_get()
81 void cli_txt_list_del(struct dl_list *txt_list, const char *txt) in cli_txt_list_del() argument
85 e = cli_txt_list_get(txt_list, txt); in cli_txt_list_del()
91 void cli_txt_list_del_addr(struct dl_list *txt_list, const char *txt) in cli_txt_list_del_addr() argument
96 if (hwaddr_aton(txt, addr) < 0) in cli_txt_list_del_addr()
103 void cli_txt_list_del_word(struct dl_list *txt_list, const char *txt, in cli_txt_list_del_word() argument
109 end = os_strchr(txt, separator); in cli_txt_list_del_word()
111 end = txt + os_strlen(txt); in cli_txt_list_del_word()
112 buf = dup_binstr(txt, end - txt); in cli_txt_list_del_word()
120 int cli_txt_list_add(struct dl_list *txt_list, const char *txt) in cli_txt_list_add() argument
124 e = cli_txt_list_get(txt_list, txt); in cli_txt_list_add()
130 e->txt = os_strdup(txt); in cli_txt_list_add()
131 if (e->txt == NULL) { in cli_txt_list_add()
140 int cli_txt_list_add_addr(struct dl_list *txt_list, const char *txt) in cli_txt_list_add_addr() argument
145 if (hwaddr_aton(txt, addr) < 0) in cli_txt_list_add_addr()
152 int cli_txt_list_add_word(struct dl_list *txt_list, const char *txt, in cli_txt_list_add_word() argument
159 end = os_strchr(txt, separator); in cli_txt_list_add_word()
161 end = txt + os_strlen(txt); in cli_txt_list_add_word()
162 buf = dup_binstr(txt, end - txt); in cli_txt_list_add_word()
183 res[i] = os_strdup(e->txt); in cli_txt_list_array()