]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/opt-internal.h
Table: renamed table_col_order[_by_name] -> table_set_col_order[_by_name]
[libucw.git] / ucw / opt-internal.h
index 54717b3952addc13425795ec05c1d3dd9a404d9d..77434d7a63a055208e49cadb77f06f70f3960fd6 100644 (file)
 #define opt_precompute ucw_opt_precompute
 #endif
 
+enum opt_conf_state {
+  OPT_CONF_HOOK_BEGIN,
+  OPT_CONF_HOOK_CONFIG,
+  OPT_CONF_HOOK_OTHERS,
+};
+
+struct opt_context {
+  const struct opt_section * options;
+  struct opt_precomputed * opts;
+  struct opt_precomputed ** shortopt;
+  struct opt_item ** hooks;
+  int opt_count;
+  int hook_count;
+  int positional_max;
+  int positional_count;
+  bool stop_parsing;
+  enum opt_conf_state conf_state;
+};
+
 struct opt_precomputed {
   struct opt_item * item;
   const char * name;