summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 379b04a)
raw | patch | inline | side by side (parent: 379b04a)
author | Florian Forster <ff@octo.it> | |
Mon, 14 Jun 2010 15:18:09 +0000 (17:18 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 14 Jun 2010 15:18:09 +0000 (17:18 +0200) |
graph_def.c | patch | blob | history | |
graph_def.h | patch | blob | history |
diff --git a/graph_def.c b/graph_def.c
index 80f6a0c78379c17a9e9f653c471494ae9ffc7c18..853508edcf875ef6f38e224510cadcba5657f15d 100644 (file)
--- a/graph_def.c
+++ b/graph_def.c
def_destroy (next);
} /* }}} void def_destroy */
+int def_append (graph_def_t *head, graph_def_t *def) /* {{{ */
+{
+ graph_def_t *ptr;
+
+ if ((head == NULL) || (def == NULL))
+ return (EINVAL);
+
+ ptr = head;
+ while (ptr->next != NULL)
+ ptr = ptr->next;
+
+ ptr->next = def;
+
+ return (0);
+} /* }}} int def_append */
+
graph_def_t *def_search (graph_def_t *head, graph_ident_t *ident) /* {{{ */
{
graph_def_t *ptr;
diff --git a/graph_def.h b/graph_def.h
index 780ed37820513120f8b20ee18e6f3405814677a9..f9c4f5a8f563457b00756003cff3d42730b6822a 100644 (file)
--- a/graph_def.h
+++ b/graph_def.h
void def_destroy (graph_def_t *def);
+int def_append (graph_def_t *head, graph_def_t *def);
+
graph_def_t *def_search (graph_def_t *head, graph_ident_t *ident);
int def_get_rrdargs (graph_def_t *def, graph_ident_t *ident,