1 /*
   2  * This file and its contents are supplied under the terms of the
   3  * Common Development and Distribution License ("CDDL"), version 1.0.
   4  * You may only use this file in accordance with the terms of version
   5  * 1.0 of the CDDL.
   6  *
   7  * A full copy of the text of the CDDL should have accompanied this
   8  * source.  A copy of the CDDL is also available via the Internet at
   9  * http://www.illumos.org/license/CDDL.
  10  */
  11 
  12 /*
  13  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  14  * Copyright 2016 Nexenta Systems, Inc. All rights reserved.
  15  */
  16 
  17 #ifndef _ZFS_SENDRECV_H
  18 #define _ZFS_SENDRECV_H
  19 
  20 #ifdef _KERNEL
  21 #include <sys/nvpair.h>
  22 #else
  23 #include <libnvpair.h>
  24 #endif
  25 
  26 #include <sys/avl.h>
  27 
  28 
  29 #ifdef  __cplusplus
  30 extern "C" {
  31 #endif
  32 
  33 int fsavl_create(nvlist_t *fss, avl_tree_t **fsavl_result);
  34 void fsavl_destroy(avl_tree_t *avl);
  35 nvlist_t *fsavl_find(avl_tree_t *avl, uint64_t snapguid, char **snapname);
  36 
  37 int zfs_send_resume_token_to_nvlist_impl(const char *token,
  38     nvlist_t **result_nvl);
  39 
  40 
  41 #ifdef  __cplusplus
  42 }
  43 #endif
  44 
  45 #endif  /* _ZFS_SENDRECV_H */