conffile_list.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /* conffile_list.h - 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. #ifndef CONFFILE_LIST_H
  14. #define CONFFILE_LIST_H
  15. #include "nv_pair_list.h"
  16. typedef nv_pair_list_elt_t conffile_list_elt_t;
  17. typedef nv_pair_list_t conffile_list_t;
  18. #include "conffile.h"
  19. void conffile_list_init(conffile_list_t * list);
  20. void conffile_list_deinit(conffile_list_t * list);
  21. conffile_t *conffile_list_append(conffile_list_t * list, const char *name,
  22. const char *root_dir);
  23. void conffile_list_push(conffile_list_t * list, conffile_t * data);
  24. conffile_list_elt_t *conffile_list_pop(conffile_list_t * list);
  25. #endif