From e330097a21e32fc9809a0be493338d5bdaf51c7d Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Sat, 1 Jun 2024 23:34:13 -0500 Subject: [PATCH] Cleanup: Fix ordering of controller_process_find(). --- level_3/controller/c/process/private-process.h | 54 +++++++++++++------------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/level_3/controller/c/process/private-process.h b/level_3/controller/c/process/private-process.h index 90b210f..8915201 100644 --- a/level_3/controller/c/process/private-process.h +++ b/level_3/controller/c/process/private-process.h @@ -13,6 +13,33 @@ extern "C" { #endif /** + * Find an existing process, for the given Rule Action. + * + * Do not confuse this with a process in the context of a PID. + * This is a stucture for the current processing of some rule. + * + * This does not do any locking or unlocking for the processs data, be sure to lock appropriately before and after calling this. + * + * @param action + * The Rule Action to find. + * @param alias + * The Rule alias to find. + * @param processs + * The array of processes to. + * @param at + * The location within processs the id was found. + * (optional) Set to NULL to disable. + * + * @return + * F_none if not given a valid id to search. + * F_false if there is no process found. + * F_true if there is a process found (address is stored in "at"). + */ +#ifndef _di_controller_process_find_ + f_status_t controller_process_find(const f_array_length_t action, const f_string_static_t alias, const controller_processs_t processs, f_array_length_t *at) F_attribute_visibility_internal_d; +#endif // _di_controller_process_find_ + +/** * Prepare the process. * * The process is initialized with the process id, the rule alias, and the rule action type. @@ -87,33 +114,6 @@ extern "C" { extern f_status_t controller_process_prepare_process_type(const controller_global_t global, const uint8_t type, const uint8_t action, const f_string_static_t alias, f_array_length_t *id) F_attribute_visibility_internal_d; #endif // _di_controller_process_prepare_process_type_ -/** - * Find an existing process, for the given Rule Action. - * - * Do not confuse this with a process in the context of a PID. - * This is a stucture for the current processing of some rule. - * - * This does not do any locking or unlocking for the processs data, be sure to lock appropriately before and after calling this. - * - * @param action - * The Rule Action to find. - * @param alias - * The Rule alias to find. - * @param processs - * The array of processes to. - * @param at - * The location within processs the id was found. - * (optional) Set to NULL to disable. - * - * @return - * F_none if not given a valid id to search. - * F_false if there is no process found. - * F_true if there is a process found (address is stored in "at"). - */ -#ifndef _di_controller_process_find_ - f_status_t controller_process_find(const f_array_length_t action, const f_string_static_t alias, const controller_processs_t processs, f_array_length_t *at) F_attribute_visibility_internal_d; -#endif // _di_controller_process_find_ - /*** * Safely wait for a process, periodically checking to see if process completed or check if exiting. * -- 1.8.3.1