Changeset 3b5a5e3 in mainline for uspace/app/tmon/tf.h


Ignore:
Timestamp:
2018-02-01T16:10:12Z (6 years ago)
Author:
Petr Manek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3038d51
Parents:
8393c73b
git-author:
Petr Manek <petr.manek@…> (2018-02-01 16:09:43)
git-committer:
Petr Manek <petr.manek@…> (2018-02-01 16:10:12)
Message:

tmon: catch up with libdrv changes, simplify code

File:
1 edited

Legend:

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

    r8393c73b r3b5a5e3  
    3838
    3939#include <async.h>
    40 
    41 /** Parameters common for all tests. */
    42 typedef struct tmon_test_params {
    43         /* Nothing here. */
    44 } tmon_test_params_t;
     40#include <usbdiag_iface.h>
    4541
    4642/** Operations to implement by all tests. */
    4743typedef struct tmon_test_ops {
    48         int (*run)(async_exch_t *, const tmon_test_params_t *);
    49         int (*read_params)(int, char **, tmon_test_params_t **);
     44        int (*pre_run)(void *);
     45        int (*run)(async_exch_t *, const void *);
     46        int (*read_params)(int, char **, void **);
    5047} tmon_test_ops_t;
    5148
    5249int tmon_test_main(int, char **, const tmon_test_ops_t *);
     50
     51char *tmon_format_size(double, const char *);
     52char *tmon_format_duration(usbdiag_dur_t, const char *);
    5353
    5454#endif /* TMON_TF_H_ */
Note: See TracChangeset for help on using the changeset viewer.