Changeset 8e16454 in mainline for uspace/app/tmon/tf.c


Ignore:
Timestamp:
2017-12-27T16:46:27Z (6 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f4b83cc
Parents:
59958992
git-author:
Petr Manek <petr.manek@…> (2017-12-27 16:43:34)
git-committer:
Petr Manek <petr.manek@…> (2017-12-27 16:46:27)
Message:

tmon: add in-code docs and method docstrings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tmon/tf.c

    r59958992 r8e16454  
    4545#define MAX_PATH_LENGTH 1024
    4646
    47 int tmon_test_main(int argc, char *argv[], const tmon_test_ops_t *ops) {
     47/** Common command handler for all test commands.
     48 * @param[in] argc Number of arguments.
     49 * @param[in] argv Argument values. Must point to exactly `argc` strings.
     50 *
     51 * @return Exit code
     52 */
     53int tmon_test_main(int argc, char *argv[], const tmon_test_ops_t *ops)
     54{
     55        // Resolve device function.
    4856        devman_handle_t fun = -1;
    4957
     
    6775        printf("Using device: %s\n", path);
    6876
     77        // Read test parameters from options.
    6978        tmon_test_params_t *params = NULL;
    7079        if ((rc = ops->read_params(argc, argv, &params))) {
     
    7382        }
    7483
     84        // Run the test body.
    7585        async_sess_t *sess = usbdiag_connect(fun);
    7686        if (!sess) {
Note: See TracChangeset for help on using the changeset viewer.