]> 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 0ac2a77324f05e0998923f69a17e155156931d41..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;
@@ -25,6 +31,7 @@ struct opt_context {
   int positional_max;
   int positional_count;
   bool stop_parsing;
+  enum opt_conf_state conf_state;
 };
 
 struct opt_precomputed {