A Simple X Image Viewer
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

53 linhas
1.3 KiB

  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
  5. * modify it under the terms of the GNU General Public License
  6. * as published by the Free Software Foundation; either version 2
  7. * of the License, or (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 51 Franklin Street, 5th 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 */