Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/fdisk/include/fdisk.h

    r6c4eedf rb7fd2a0  
    4141#include <types/vol.h>
    4242
    43 extern int fdisk_create(fdisk_t **);
     43extern errno_t fdisk_create(fdisk_t **);
    4444extern void fdisk_destroy(fdisk_t *);
    45 extern int fdisk_dev_list_get(fdisk_t *, fdisk_dev_list_t **);
     45extern errno_t fdisk_dev_list_get(fdisk_t *, fdisk_dev_list_t **);
    4646extern void fdisk_dev_list_free(fdisk_dev_list_t *);
    4747extern fdisk_dev_info_t *fdisk_dev_first(fdisk_dev_list_t *);
    4848extern fdisk_dev_info_t *fdisk_dev_next(fdisk_dev_info_t *);
    49 extern int fdisk_dev_info_get_svcname(fdisk_dev_info_t *, char **);
     49extern errno_t fdisk_dev_info_get_svcname(fdisk_dev_info_t *, char **);
    5050extern void fdisk_dev_info_get_svcid(fdisk_dev_info_t *, service_id_t *);
    51 extern int fdisk_dev_info_capacity(fdisk_dev_info_t *, cap_spec_t *);
     51extern errno_t fdisk_dev_info_capacity(fdisk_dev_info_t *, cap_spec_t *);
    5252
    53 extern int fdisk_dev_open(fdisk_t *, service_id_t, fdisk_dev_t **);
     53extern errno_t fdisk_dev_open(fdisk_t *, service_id_t, fdisk_dev_t **);
    5454extern void fdisk_dev_close(fdisk_dev_t *);
    55 extern int fdisk_dev_erase(fdisk_dev_t *);
     55extern errno_t fdisk_dev_erase(fdisk_dev_t *);
    5656extern void fdisk_dev_get_flags(fdisk_dev_t *, fdisk_dev_flags_t *);
    57 extern int fdisk_dev_get_svcname(fdisk_dev_t *, char **);
    58 extern int fdisk_dev_capacity(fdisk_dev_t *, cap_spec_t *);
     57extern errno_t fdisk_dev_get_svcname(fdisk_dev_t *, char **);
     58extern errno_t fdisk_dev_capacity(fdisk_dev_t *, cap_spec_t *);
    5959
    60 extern int fdisk_label_get_info(fdisk_dev_t *, fdisk_label_info_t *);
    61 extern int fdisk_label_create(fdisk_dev_t *, label_type_t);
    62 extern int fdisk_label_destroy(fdisk_dev_t *);
     60extern errno_t fdisk_label_get_info(fdisk_dev_t *, fdisk_label_info_t *);
     61extern errno_t fdisk_label_create(fdisk_dev_t *, label_type_t);
     62extern errno_t fdisk_label_destroy(fdisk_dev_t *);
    6363
    6464extern fdisk_part_t *fdisk_part_first(fdisk_dev_t *);
    6565extern fdisk_part_t *fdisk_part_next(fdisk_part_t *);
    66 extern int fdisk_part_get_info(fdisk_part_t *, fdisk_part_info_t *);
    67 extern int fdisk_part_get_max_avail(fdisk_dev_t *, fdisk_spc_t, cap_spec_t *);
    68 extern int fdisk_part_get_tot_avail(fdisk_dev_t *, fdisk_spc_t, cap_spec_t *);
    69 extern int fdisk_part_create(fdisk_dev_t *, fdisk_part_spec_t *,
     66extern errno_t fdisk_part_get_info(fdisk_part_t *, fdisk_part_info_t *);
     67extern errno_t fdisk_part_get_max_avail(fdisk_dev_t *, fdisk_spc_t, cap_spec_t *);
     68extern errno_t fdisk_part_get_tot_avail(fdisk_dev_t *, fdisk_spc_t, cap_spec_t *);
     69extern errno_t fdisk_part_create(fdisk_dev_t *, fdisk_part_spec_t *,
    7070    fdisk_part_t **);
    71 extern int fdisk_part_destroy(fdisk_part_t *);
     71extern errno_t fdisk_part_destroy(fdisk_part_t *);
    7272extern void fdisk_pspec_init(fdisk_part_spec_t *);
    7373
    74 extern int fdisk_ltype_format(label_type_t, char **);
    75 extern int fdisk_fstype_format(vol_fstype_t, char **);
    76 extern int fdisk_pkind_format(label_pkind_t, char **);
     74extern errno_t fdisk_ltype_format(label_type_t, char **);
     75extern errno_t fdisk_fstype_format(vol_fstype_t, char **);
     76extern errno_t fdisk_pkind_format(label_pkind_t, char **);
    7777
    78 extern int fdisk_get_vollabel_support(fdisk_dev_t *, vol_fstype_t,
     78extern errno_t fdisk_get_vollabel_support(fdisk_dev_t *, vol_fstype_t,
    7979    vol_label_supp_t *);
    8080
Note: See TracChangeset for help on using the changeset viewer.