Skip to content

Commit

Permalink
input: rename flb_input_prepare/flb_input_unprepare to flb_input_init…
Browse files Browse the repository at this point in the history
…/flb_input_exit.

Signed-off-by: Phillip Whelan <[email protected]>
  • Loading branch information
pwhelan committed Oct 30, 2023
1 parent 941a7af commit 0abf858
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions include/fluent-bit/flb_input.h
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,8 @@ static inline int flb_input_config_map_set(struct flb_input_instance *ins,
return ret;
}

void flb_input_prepare();
void flb_input_unprepare();
void flb_input_init();
void flb_input_exit();

int flb_input_register_all(struct flb_config *config);
struct flb_input_instance *flb_input_new(struct flb_config *config,
Expand Down
6 changes: 3 additions & 3 deletions src/flb_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ int flb_input_log_check(struct flb_input_instance *ins, int l)
}

/* Prepare input co-routines for the thread. */
void flb_input_prepare()
void flb_input_init()
{
FLB_TLS_INIT(in_collect_params);
}

void flb_input_unprepare()
void flb_input_exit()
{
struct flb_in_collect_params *params;

Expand Down Expand Up @@ -1330,7 +1330,7 @@ void flb_input_exit_all(struct flb_config *config)
flb_input_instance_destroy(ins);
}

flb_input_unprepare();
flb_input_exit();
}

/* Check that at least one Input is enabled */
Expand Down
2 changes: 1 addition & 1 deletion src/flb_input_thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ static void input_thread(void *data)
flb_bucket_queue_destroy(evl_bktq);
flb_sched_destroy(sched);
input_thread_instance_destroy(thi);
flb_input_unprepare();
flb_input_exit();
}


Expand Down
2 changes: 1 addition & 1 deletion src/flb_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ void flb_init_env()
flb_upstream_init();
flb_downstream_init();
flb_output_prepare();
flb_input_prepare();
flb_input_init();

FLB_TLS_INIT(flb_lib_active_context);
FLB_TLS_INIT(flb_lib_active_cf_context);
Expand Down

0 comments on commit 0abf858

Please sign in to comment.