Optimize RAIDZ expansion
[zfs.git] / cmd / zed / agents / zfs_agents.h
blobd1a459139b1e2f4fea9e5666cae8e46bd1fcf092
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License Version 1.0 (CDDL-1.0).
6 * You can obtain a copy of the license from the top-level file
7 * "OPENSOLARIS.LICENSE" or at <http://opensource.org/licenses/CDDL-1.0>.
8 * You may not use this file except in compliance with the license.
10 * CDDL HEADER END
14 * Copyright (c) 2016, Intel Corporation.
17 #ifndef ZFS_AGENTS_H
18 #define ZFS_AGENTS_H
20 #include <libzfs.h>
21 #include <libnvpair.h>
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
29 * Agent abstraction presented to ZED
31 extern void zfs_agent_init(libzfs_handle_t *);
32 extern void zfs_agent_fini(void);
33 extern void zfs_agent_post_event(const char *, const char *, nvlist_t *);
36 * ZFS Sysevent Linkable Module (SLM)
38 extern int zfs_slm_init(void);
39 extern void zfs_slm_fini(void);
40 extern void zfs_slm_event(const char *, const char *, nvlist_t *);
42 #ifdef __cplusplus
44 #endif
46 #endif /* !ZFS_AGENTS_H */