OBJ_mixerbar,
OBJ_mixerlbar,
OBJ_mixerrbar,
+ OBJ_nameserver,
OBJ_new_mails,
OBJ_nodename,
OBJ_pre_exec,
free(objs[i].data.texeci.cmd);
free(objs[i].data.texeci.buffer);
break;
+ case OBJ_nameserver:
+ free_dns_data();
+ break;
case OBJ_top:
case OBJ_top_mem:
if (info.first_process) {
obj->data.fs = prepare_fs_stat(arg);
END OBJ(hr, 0)
obj->data.i = arg ? atoi(arg) : 1;
+ END OBJ(nameserver, INFO_DNS)
+ obj->data.i = arg ? atoi(arg) : 0;
END OBJ(offset, 0)
obj->data.i = arg ? atoi(arg) : 1;
END OBJ(voffset, 0)
int length = fread(p, 1, p_max_size, fp);
pclose(fp);
-
+
p[length] = '\0';
if (length > 0 && p[length - 1] == '\n') {
p[length - 1] = '\0';
fread(p, 1, p_max_size, fp);
pclose(fp);
-
+
struct information *my_info =
malloc(sizeof(struct information));
memcpy(my_info, cur, sizeof(struct information));
struct text_object_list *text_objects = parse_conky_vars(p, p, my_info);
int length = strlen(p);
-
+
p[length] = '\0';
if (length > 0 && p[length - 1] == '\n') {
p[length - 1] = '\0';
}
-
+
free_text_objects(text_objects->text_object_count, text_objects->text_objects);
free(text_objects);
free(my_info);
OBJ(hr) {
new_hr(p, obj->data.i);
}
+ OBJ(nameserver) {
+ if (cur->nameserver_info.nscount > obj->data.i)
+ snprintf(p, p_max_size, "%s",
+ cur->nameserver_info.ns_list[obj->data.i]);
+ }
#ifdef RSS
OBJ(rss) {
PRSS *data = get_rss_info(obj->data.rss.uri,