nv_pair.h 859 B

123456789101112131415161718192021222324252627282930
  1. /* nv_pair.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 NV_PAIR_H
  14. #define NV_PAIR_H
  15. typedef struct nv_pair nv_pair_t;
  16. struct nv_pair {
  17. char *name;
  18. char *value;
  19. };
  20. int nv_pair_init(nv_pair_t * nv_pair, const char *name, const char *value);
  21. void nv_pair_deinit(nv_pair_t * nv_pair);
  22. #endif