-/* Append a single 'node' to the end of 'filenames'.
- */
-void
-_notmuch_filenames_add_filename (notmuch_filenames_t *filenames,
- const char *filename)
-{
- /* Create and initialize new node. */
- notmuch_filenames_node_t *node = talloc (filenames,
- notmuch_filenames_node_t);
-
- node->filename = talloc_strdup (node, filename);
- node->next = NULL;
-
- /* Append the node to the list. */
- *(filenames->tail) = node;
- filenames->tail = &node->next;
-}
-