diff options
Diffstat (limited to 'src/error.h')
-rw-r--r-- | src/error.h | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/src/error.h b/src/error.h index 97a16dd..b01cedb 100644 --- a/src/error.h +++ b/src/error.h @@ -8,8 +8,22 @@ enum { LT_ERROR_FILTER_TYPE_INTERACTIVE, }; -struct lt_error_config_filter { +enum { + LT_ERROR_START_TYPE_AFTER, +}; + +struct lt_error_start { int type; + union { + struct { + long entries; + long exits; + union { + int index; + char *sym; + } name; + } after; + }; }; struct lt_error_sym { @@ -43,6 +57,7 @@ struct lt_error_config { int type; int sym_cnt; int names_size; + struct lt_error_start start; struct lt_error_sym sym[0]; }; @@ -80,10 +95,6 @@ struct lt_error_app_return { struct lt_list_head list_run; }; -struct lt_error_start { - long n; -}; - enum { LT_ERROR_RUN_TYPE_SEQ, LT_ERROR_RUN_TYPE_AUTO, @@ -138,6 +149,9 @@ int lt_error_run_args(struct lt_config_app *cfg, int lt_error_run_type(struct lt_config_app *cfg, struct lt_error_app_run **run, int type); +int lt_error_run_start_after(struct lt_config_app *cfg, + struct lt_error_app_run **run, + int is_entries, long cnt, char *sym); int lt_error_return_ass(struct lt_config_app *cfg, struct lt_error_app_return **ret, char *name, struct lt_list_head *list_vals, @@ -185,6 +199,14 @@ static inline int lt_error_run_type(struct lt_config_app *cfg, return -1; } + +static int lt_error_run_start_after(struct lt_config_app *cfg, + struct lt_error_app_run **run, + int is_entries, long cnt, char *sym) +{ + return -1; +} + static inline int lt_error_app_init(struct lt_error_app *app) { return -1; |