be.h (e307eb94ae520d98dc1d346a0c53667a41beab5d) | be.h (5773e924e791dfe8cc13049cefbf5f99aab6cc66) |
---|---|
1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2017 Kyle J. Kneitinger <kyle@kneit.in> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 98 unchanged lines hidden (view full) --- 107 108/* Bootenv mounting functions: be_access.c */ 109 110typedef enum { 111 BE_MNT_FORCE = 1 << 0, 112 BE_MNT_DEEP = 1 << 1, 113} be_mount_opt_t; 114 | 1/*- 2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3 * 4 * Copyright (c) 2017 Kyle J. Kneitinger <kyle@kneit.in> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 98 unchanged lines hidden (view full) --- 107 108/* Bootenv mounting functions: be_access.c */ 109 110typedef enum { 111 BE_MNT_FORCE = 1 << 0, 112 BE_MNT_DEEP = 1 << 1, 113} be_mount_opt_t; 114 |
115int be_mount(libbe_handle_t *, char *, char *, int, char *); 116int be_unmount(libbe_handle_t *, char *, int); | 115int be_mount(libbe_handle_t *, const char *, const char *, int, char *); 116int be_unmount(libbe_handle_t *, const char *, int); |
117int be_mounted_at(libbe_handle_t *, const char *path, nvlist_t *); 118 119/* Error related functions: be_error.c */ 120int libbe_errno(libbe_handle_t *); 121const char *libbe_error_description(libbe_handle_t *); 122void libbe_print_on_error(libbe_handle_t *, bool); 123 124/* Utility Functions */ 125int be_root_concat(libbe_handle_t *, const char *, char *); 126int be_validate_name(libbe_handle_t * __unused, const char *); 127int be_validate_snap(libbe_handle_t *, const char *); | 117int be_mounted_at(libbe_handle_t *, const char *path, nvlist_t *); 118 119/* Error related functions: be_error.c */ 120int libbe_errno(libbe_handle_t *); 121const char *libbe_error_description(libbe_handle_t *); 122void libbe_print_on_error(libbe_handle_t *, bool); 123 124/* Utility Functions */ 125int be_root_concat(libbe_handle_t *, const char *, char *); 126int be_validate_name(libbe_handle_t * __unused, const char *); 127int be_validate_snap(libbe_handle_t *, const char *); |
128int be_exists(libbe_handle_t *, char *); | 128int be_exists(libbe_handle_t *, const char *); |
129 130int be_export(libbe_handle_t *, const char *, int fd); 131int be_import(libbe_handle_t *, const char *, int fd); 132 133#if SOON 134int be_add_child(libbe_handle_t *, const char *, bool); 135#endif 136void be_nicenum(uint64_t num, char *buf, size_t buflen); 137 138#endif /* _LIBBE_H */ | 129 130int be_export(libbe_handle_t *, const char *, int fd); 131int be_import(libbe_handle_t *, const char *, int fd); 132 133#if SOON 134int be_add_child(libbe_handle_t *, const char *, bool); 135#endif 136void be_nicenum(uint64_t num, char *buf, size_t buflen); 137 138#endif /* _LIBBE_H */ |