be_impl.h (b29bf2f84ea838b1b7dad4e80858b637395930ae) be_impl.h (843e39ce7bf6449f5cbb9144774d589574fda3b1)
1/*
2 * be_impl.h
3 *
4 * Copyright (c) 2017 Kyle J. Kneitinger <kyle@kneit.in>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 19 unchanged lines hidden (view full) ---

28
29#ifndef _LIBBE_IMPL_H
30#define _LIBBE_IMPL_H
31
32#include <libzfs.h>
33
34#include "be.h"
35
1/*
2 * be_impl.h
3 *
4 * Copyright (c) 2017 Kyle J. Kneitinger <kyle@kneit.in>
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 19 unchanged lines hidden (view full) ---

28
29#ifndef _LIBBE_IMPL_H
30#define _LIBBE_IMPL_H
31
32#include <libzfs.h>
33
34#include "be.h"
35
36
37struct libbe_handle {
38 libzfs_handle_t *lzh;
39 zpool_handle_t *active_phandle;
40 char root[BE_MAXPATHLEN];
41 char rootfs[BE_MAXPATHLEN];
42 char bootfs[BE_MAXPATHLEN];
43 be_error_t error;
44 bool print_on_err;

--- 6 unchanged lines hidden (view full) ---

51 const char *be_root;
52};
53
54struct libbe_dccb {
55 zfs_handle_t *zhp;
56 nvlist_t *props;
57};
58
36struct libbe_handle {
37 libzfs_handle_t *lzh;
38 zpool_handle_t *active_phandle;
39 char root[BE_MAXPATHLEN];
40 char rootfs[BE_MAXPATHLEN];
41 char bootfs[BE_MAXPATHLEN];
42 be_error_t error;
43 bool print_on_err;

--- 6 unchanged lines hidden (view full) ---

50 const char *be_root;
51};
52
53struct libbe_dccb {
54 zfs_handle_t *zhp;
55 nvlist_t *props;
56};
57
58typedef struct prop_data {
59 nvlist_t *list;
60 libbe_handle_t *lbh;
61} prop_data_t;
62
63int prop_list_builder_cb(zfs_handle_t *, void *);
64int prop_list_builder(prop_data_t *);
65
59int set_error(libbe_handle_t *, be_error_t);
60
61#endif /* _LIBBE_IMPL_H */
66int set_error(libbe_handle_t *, be_error_t);
67
68#endif /* _LIBBE_IMPL_H */