/xbmc/screensavers/rsxs-0.9/lib/argz_.h

http://github.com/xbmc/xbmc · C++ Header · 57 lines · 29 code · 8 blank · 20 comment · 0 complexity · 84928335d76a65ac240310d04d113c15 MD5 · raw file

  1. /* lt__argz.h -- internal argz interface for non-glibc systems
  2. Copyright (C) 2004 Free Software Foundation, Inc.
  3. Originally by Gary V. Vaughan <gary@gnu.org>
  4. NOTE: The canonical source of this file is maintained with the
  5. GNU Libtool package. Report bugs to bug-libtool@gnu.org.
  6. This program is free software; you can redistribute it and/or modify
  7. it under the terms of the GNU General Public License as published by
  8. the Free Software Foundation; either version 2, or (at your option)
  9. any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU General Public License for more details.
  14. You should have received a copy of the GNU General Public License along
  15. with this program; if not, write to the Free Software Foundation,
  16. Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
  17. #if !defined(LT__ARGZ_H)
  18. #define LT__ARGZ_H 1
  19. #include <stdlib.h>
  20. #include <sys/types.h>
  21. #if defined(LTDL)
  22. # include "lt__glibc.h"
  23. # include "lt_system.h"
  24. #else
  25. # define LT_SCOPE
  26. #endif
  27. #if defined(_cplusplus)
  28. extern "C" {
  29. #endif
  30. LT_SCOPE error_t argz_append (char **pargz, size_t *pargz_len,
  31. const char *buf, size_t buf_len);
  32. LT_SCOPE error_t argz_create_sep(const char *str, int delim,
  33. char **pargz, size_t *pargz_len);
  34. LT_SCOPE error_t argz_insert (char **pargz, size_t *pargz_len,
  35. char *before, const char *entry);
  36. LT_SCOPE char * argz_next (char *argz, size_t argz_len,
  37. const char *entry);
  38. LT_SCOPE void argz_stringify (char *argz, size_t argz_len, int sep);
  39. #if defined(_cplusplus)
  40. }
  41. #endif
  42. #if !defined(LTDL)
  43. # undef LT_SCOPE
  44. #endif
  45. #endif /*!defined(LT__ARGZ_H)*/