Changeset e47a032 in mainline for uspace/lib/device/include/hr.h


Ignore:
Timestamp:
2024-10-28T20:02:39Z (7 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
9fc1d36d
Parents:
066fed9
Message:

hr: base for status handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/device/include/hr.h

    r066fed9 re47a032  
    5454} hr_level_t;
    5555
     56typedef enum hr_vol_status {
     57        HR_VOL_ONLINE,  /* OK, OPTIMAL */
     58        HR_VOL_FAULTY
     59} hr_vol_status_t;
     60
     61typedef enum hr_ext_status {
     62        HR_EXT_ONLINE,  /* OK */
     63        HR_EXT_MISSING,
     64        HR_EXT_FAILED
     65} hr_ext_status_t;
     66
    5667typedef struct hr {
    5768        async_sess_t *sess;
     
    6778typedef struct hr_extent {
    6879        service_id_t svc_id;
    69         int status;
     80        hr_ext_status_t status;
    7081} hr_extent_t;
    7182
     
    7889        uint32_t strip_size;
    7990        size_t bsize;
     91        hr_vol_status_t status;
    8092} hr_vol_info_t;
    8193
     
    8799extern errno_t hr_print_status(void);
    88100
     101extern const char *hr_get_vol_status_msg(hr_vol_status_t);
     102extern const char *hr_get_ext_status_msg(hr_ext_status_t);
     103
    89104#endif
    90105
Note: See TracChangeset for help on using the changeset viewer.