conffile_list.c 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* conffile_list.c - the opkg package management system
  2. Carl D. Worth
  3. Copyright (C) 2001 University of Southern California
  4. This program is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU General Public License as
  6. published by the Free Software Foundation; either version 2, or (at
  7. your option) any later version.
  8. This program is distributed in the hope that it will be useful, but
  9. WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. General Public License for more details.
  12. */
  13. #include "conffile_list.h"
  14. void conffile_list_init(conffile_list_t * list)
  15. {
  16. nv_pair_list_init(list);
  17. }
  18. void conffile_list_deinit(conffile_list_t * list)
  19. {
  20. nv_pair_list_deinit(list);
  21. }
  22. conffile_t *conffile_list_append(conffile_list_t * list, const char *file_name,
  23. const char *md5sum)
  24. {
  25. return nv_pair_list_append(list, file_name, md5sum);
  26. }
  27. void conffile_list_push(conffile_list_t * list, conffile_t * data)
  28. {
  29. nv_pair_list_push(list, data);
  30. }
  31. conffile_list_elt_t *conffile_list_pop(conffile_list_t * list)
  32. {
  33. conffile_list_elt_t *pos = nv_pair_list_pop(list);
  34. return pos;
  35. }