gphoto2.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /** \file
  2. * \brief Convenience header for gphoto2
  3. *
  4. * \author Copyright 2001 Lutz Mueller <lutz@users.sf.net>
  5. *
  6. * \note
  7. * This library is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU Lesser General Public
  9. * License as published by the Free Software Foundation; either
  10. * version 2 of the License, or (at your option) any later version.
  11. *
  12. * \note
  13. * This library is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16. * Lesser General Public License for more details.
  17. *
  18. * \note
  19. * You should have received a copy of the GNU Lesser General Public
  20. * License along with this library; if not, write to the
  21. * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  22. * Boston, MA 02110-1301 USA
  23. */
  24. #ifndef __GPHOTO2_H__
  25. #define __GPHOTO2_H__
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. #ifdef OS2
  30. # include <db.h>
  31. # include <sys/param.h>
  32. # define CAMLIBS getenv("CAMLIBS")
  33. # define RTLD_LAZY 0x001
  34. # define VERSION "2"
  35. # define usleep(t) _sleep2(((t)+500)/ 1000)
  36. #endif
  37. #ifdef WIN32
  38. #undef CAMLIBS
  39. #define CAMLIBS "."
  40. #endif
  41. #include <gphoto2/gphoto2-port.h>
  42. #include <gphoto2/gphoto2-port-log.h>
  43. #include <gphoto2/gphoto2-port-result.h>
  44. #include <gphoto2/gphoto2-file.h>
  45. #include <gphoto2/gphoto2-library.h>
  46. #include <gphoto2/gphoto2-setting.h>
  47. #ifdef __cplusplus
  48. }
  49. #endif
  50. #endif /* __GPHOTO2_H__ */