/* cmdline.h */

/* File autogenerated by gengetopt version 2.13  */

#ifndef CMDLINE_H
#define CMDLINE_H

/* If we use autoconf.  */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#ifndef CMDLINE_PARSER_PACKAGE
#define CMDLINE_PARSER_PACKAGE PACKAGE
#endif

#ifndef CMDLINE_PARSER_VERSION
#define CMDLINE_PARSER_VERSION VERSION
#endif

struct gengetopt_args_info
{
  char * add_all_arg;	/* Add all files in the directory.  */
  char * recursive_arg;	/* Recursive directory traversal.  */
  char * sort_arg;	/* Show images in sorted order.  */
  char * shuffle_arg;	/* Show images in random order.  */
  char * force_load_arg;	/* Try to load every file.  */
  char * client_arg;	/* Connect to an already running gliv.  */
  char * build_menus_arg;	/* No images menu at startup.  */
  char * glivrc_arg;	/* Use this configuration file or none.  */
  char * slide_show_arg;	/* Start the slide show immediately.  */
  char * null_arg;	/* Read null-terminated filenames.  */
  char * collection_arg;	/* Output a collection.  */
  
  int help_given ;	/* Whether help was given.  */
  int version_given ;	/* Whether version was given.  */
  int add_all_given ;	/* Whether add-all was given.  */
  int recursive_given ;	/* Whether recursive was given.  */
  int sort_given ;	/* Whether sort was given.  */
  int shuffle_given ;	/* Whether shuffle was given.  */
  int force_load_given ;	/* Whether force-load was given.  */
  int client_given ;	/* Whether client was given.  */
  int build_menus_given ;	/* Whether build-menus was given.  */
  int glivrc_given ;	/* Whether glivrc was given.  */
  int slide_show_given ;	/* Whether slide-show was given.  */
  int null_given ;	/* Whether null was given.  */
  int collection_given ;	/* Whether collection was given.  */

  char **inputs ; /* unamed options */
  unsigned inputs_num ; /* unamed options number */
} ;

int cmdline_parser (int argc, char * const *argv, struct gengetopt_args_info *args_info);
int cmdline_parser2 (int argc, char * const *argv, struct gengetopt_args_info *args_info, int override, int initialize, int check_required);

void cmdline_parser_print_help(void);
void cmdline_parser_print_version(void);

void cmdline_parser_init (struct gengetopt_args_info *args_info);
void cmdline_parser_free (struct gengetopt_args_info *args_info);

int cmdline_parser_required (struct gengetopt_args_info *args_info, const char *prog_name);


#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* CMDLINE_H */
