Skip to content

Commit 411990d

Browse files
ozgengreenbonebot
authored andcommitted
Update comments of the refactored functions
1 parent 522f479 commit 411990d

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

agent_controller/agent_controller.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,8 @@ dup_str_ptr_array (const GPtrArray *src)
466466
* The returned configuration is heap-allocated and must be freed
467467
* using agent_controller_agent_config_free().
468468
*
469-
* @param[in] agent Agent providing the base configuration.
470-
* @param[in] update_cfg Optional configuration overrides. May be NULL.
469+
* @param[in] base_cfg Agent providing the base configuration.
470+
* @param[in] update_cfg Optional configuration overrides. May be NULL.
471471
*
472472
* @return Newly allocated merged configuration on success,
473473
* or NULL on error.
@@ -542,7 +542,7 @@ agent_controller_build_agent_config_with_defaults (
542542
/**
543543
* @brief Build a JSON payload for updating agents.
544544
*
545-
* @param[in] updates Optional update template list to override agent fields.
545+
* @param[in] updates Update template list to override agent fields.
546546
*
547547
* @return A newly allocated JSON string (unformatted) representing the update
548548
* payload. The caller is responsible for freeing the returned string using
@@ -1223,7 +1223,7 @@ agent_controller_get_agents (agent_controller_connector_t conn)
12231223
* @brief Updates properties of a list of agents.
12241224
*
12251225
* @param[in] conn Active connector
1226-
* @param[in] updates Update information
1226+
* @param[in] updates Update information lists to apply to agents.
12271227
* @param[out] errors If non-NULL and an HTTP 4xx occurs, will be set to a
12281228
* GPtrArray* of gchar* error messages (caller takes ownership and must free)
12291229
*

agent_controller/agent_controller.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ struct agent_controller_agent_update
189189
{
190190
int authorized; ///< Authorization status for update
191191
int update_to_latest; ///< Automatically update the agent
192-
/// to the latest available version.
193-
agent_controller_agent_config_t config; ///< The Agent scan configuration.
194-
agent_controller_agent_config_t base; ///< The Agent scan configuration.
195-
gchar *agent_id;
192+
/// to the latest available version
193+
agent_controller_agent_config_t config; ///< The new agent scan config
194+
agent_controller_agent_config_t base; ///< The existing agent scan config
195+
gchar *agent_id; ///< Unique identifier of the agent
196196
};
197197
typedef struct agent_controller_agent_update *agent_controller_agent_update_t;
198198

0 commit comments

Comments
 (0)