Skip to content

Commit

Permalink
top-level API: rename variorum_get_node_frequency_json --> variorum_g…
Browse files Browse the repository at this point in the history
…et_frequency_json
  • Loading branch information
slabasan committed Jan 29, 2024
1 parent 1e1ce60 commit 07e2195
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/docs/sphinx/api/json_support_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ Defined in ``variorum/variorum.h``.

.. doxygenfunction:: variorum_get_thermals_json

.. doxygenfunction:: variorum_get_node_frequency_json
.. doxygenfunction:: variorum_get_frequency_json

.. doxygenfunction:: variorum_get_node_utilization_json

.. doxygenfunction:: variorum_get_gpu_utilization_json
.. doxygenfunction:: variorum_get_gpu_utilization_json
2 changes: 1 addition & 1 deletion src/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ set(BASIC_EXAMPLES
variorum-cap-socket-power-limit-example
variorum-disable-turbo-example
variorum-enable-turbo-example
variorum-get-frequency-json-example
variorum-get-gpu-utilization-json
variorum-get-node-frequency-json-example
variorum-get-node-power-domain-info-json-example
variorum-get-node-power-json-example
variorum-get-node-thermal-json-example
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ int main(int argc, char **argv)
}
}
char *s = NULL;
ret = variorum_get_node_frequency_json(&s);
ret = variorum_get_frequency_json(&s);
if (ret != 0)
{
printf("Variorum get frequency json failure!\n");
Expand Down
2 changes: 1 addition & 1 deletion src/variorum/variorum.c
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ int variorum_get_thermals_json(char **get_thermal_obj_str)
return err;
}

int variorum_get_node_frequency_json(char **get_frequency_obj_str)
int variorum_get_frequency_json(char **get_frequency_obj_str)
{
int err = 0;
int i;
Expand Down
2 changes: 1 addition & 1 deletion src/variorum/variorum.h
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ int variorum_get_thermals_json(char **get_thermal_obj_str);
/// @return 0 if successful, otherwise -1. Note that feature not implemented
/// returns a -1 for the JSON APIs so that users don't have to explicitly
/// check for NULL strings.
int variorum_get_node_frequency_json(char **get_frequency_obj_str);
int variorum_get_frequency_json(char **get_frequency_obj_str);

/// @brief Returns Variorum version as a constant string.
///
Expand Down

0 comments on commit 07e2195

Please sign in to comment.