1*b2d2f356SSara Hartse /* 2*b2d2f356SSara Hartse * CDDL HEADER START 3*b2d2f356SSara Hartse * 4*b2d2f356SSara Hartse * This file and its contents are supplied under the terms of the 5*b2d2f356SSara Hartse * Common Development and Distribution License ("CDDL"), version 1.0. 6*b2d2f356SSara Hartse * You may only use this file in accordance with the terms of version 7*b2d2f356SSara Hartse * 1.0 of the CDDL. 8*b2d2f356SSara Hartse * 9*b2d2f356SSara Hartse * A full copy of the text of the CDDL should have accompanied this 10*b2d2f356SSara Hartse * source. A copy of the CDDL is also available via the Internet at 11*b2d2f356SSara Hartse * http://www.illumos.org/license/CDDL. 12*b2d2f356SSara Hartse * 13*b2d2f356SSara Hartse * CDDL HEADER END 14*b2d2f356SSara Hartse */ 15*b2d2f356SSara Hartse 16*b2d2f356SSara Hartse /* 17*b2d2f356SSara Hartse * Copyright 2019 Joyent, Inc. 18*b2d2f356SSara Hartse */ 19*b2d2f356SSara Hartse 20*b2d2f356SSara Hartse #ifndef _SYS_ZCP_SET_H 21*b2d2f356SSara Hartse #define _SYS_ZCP_SET_H 22*b2d2f356SSara Hartse 23*b2d2f356SSara Hartse #include <sys/dmu_tx.h> 24*b2d2f356SSara Hartse #include <sys/dsl_pool.h> 25*b2d2f356SSara Hartse 26*b2d2f356SSara Hartse #include "lua.h" 27*b2d2f356SSara Hartse #include "lualib.h" 28*b2d2f356SSara Hartse #include "lauxlib.h" 29*b2d2f356SSara Hartse 30*b2d2f356SSara Hartse #ifdef __cplusplus 31*b2d2f356SSara Hartse extern "C" { 32*b2d2f356SSara Hartse #endif 33*b2d2f356SSara Hartse 34*b2d2f356SSara Hartse typedef struct zcp_set_prop_arg { 35*b2d2f356SSara Hartse lua_State *state; 36*b2d2f356SSara Hartse const char *dsname; 37*b2d2f356SSara Hartse const char *prop; 38*b2d2f356SSara Hartse const char *val; 39*b2d2f356SSara Hartse } zcp_set_prop_arg_t; 40*b2d2f356SSara Hartse 41*b2d2f356SSara Hartse int zcp_set_prop_check(void *arg, dmu_tx_t *tx); 42*b2d2f356SSara Hartse void zcp_set_prop_sync(void *arg, dmu_tx_t *tx); 43*b2d2f356SSara Hartse 44*b2d2f356SSara Hartse #ifdef __cplusplus 45*b2d2f356SSara Hartse } 46*b2d2f356SSara Hartse #endif 47*b2d2f356SSara Hartse 48*b2d2f356SSara Hartse #endif /* _SYS_ZCP_SET_H */ 49