A Simple X Image Viewer
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

options.h 1.3 KiB

14 vuotta sitten
14 vuotta sitten
14 vuotta sitten
14 vuotta sitten
14 vuotta sitten
14 vuotta sitten
14 vuotta sitten
14 vuotta sitten
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. /* sxiv: options.h
  2. * Copyright (c) 2011 Bert Muennich <muennich at informatik.hu-berlin.de>
  3. *
  4. * This program is free software; you can redistribute it and/or modify it
  5. * under the terms of the GNU General Public License as published by the
  6. * Free Software Foundation; either version 2 of the License, or (at your
  7. * option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful, but
  10. * WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * General Public License for more details.
  13. *
  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, Inc.,
  16. * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  17. */
  18. #ifndef OPTIONS_H
  19. #define OPTIONS_H
  20. #include "image.h"
  21. #include "types.h"
  22. typedef struct {
  23. char **filenames;
  24. unsigned char from_stdin;
  25. int filecnt;
  26. int startnum;
  27. scalemode_t scalemode;
  28. float zoom;
  29. unsigned char aa;
  30. unsigned char thumbnails;
  31. unsigned char fixed;
  32. unsigned char fullscreen;
  33. char *geometry;
  34. unsigned char quiet;
  35. unsigned char clean_cache;
  36. unsigned char recursive;
  37. } options_t;
  38. extern const options_t *options;
  39. void print_usage();
  40. void print_version();
  41. void parse_options(int, char**);
  42. #endif /* OPTIONS_H */