static SNODE *tea_thread_param_value_get(HASH *opts, char *name) { SNODE *r; r = script_get_default(name); if(hash_key_exists(opts, name)) r = hash_entry_get(opts, name); return r; }
void do_remove_source(array_t *args) { const char *name; hash_t *feeds = config_get_feeds(storage_get()); if (array_count(args) != 2) { FAIL("remove: należy podać jeden argument! (aby uzyskać pomoc " "na temat tego polecenia, wpisz: help remove)\n"); return; } name = array_get(args, 1); if (hash_key_exists(feeds, name)) feed_remove(storage_get(), hash_get(feeds, name)); hash_free(feeds, TRUE, TRUE); xprintf("Źródło %s zostało usunięte.\n", name); }