]> granicus.if.org Git - zfs/blob - cmd/zed/zed_event.h
71b3a2babed322e71b245b6eea6614fbc8ca9b0f
[zfs] / cmd / zed / zed_event.h
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License (the "License").
6  * You may not use this file except in compliance with the License.
7  *
8  * You can obtain a copy of the license from the top-level
9  * OPENSOLARIS.LICENSE or <http://opensource.org/licenses/CDDL-1.0>.
10  * See the License for the specific language governing permissions
11  * and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL HEADER in each file
14  * and include the License file from the top-level OPENSOLARIS.LICENSE.
15  * If applicable, add the following below this CDDL HEADER, with the
16  * fields enclosed by brackets "[]" replaced with your own identifying
17  * information: Portions Copyright [yyyy] [name of copyright owner]
18  *
19  * CDDL HEADER END
20  */
21
22 /*
23  * Developed at Lawrence Livermore National Laboratory (LLNL-CODE-403049).
24  * Copyright (C) 2013-2014 Lawrence Livermore National Security, LLC.
25  */
26
27 #ifndef ZED_EVENT_H
28 #define ZED_EVENT_H
29
30 #include <stdint.h>
31
32 void zed_event_init(struct zed_conf *zcp);
33
34 void zed_event_fini(struct zed_conf *zcp);
35
36 int zed_event_seek(struct zed_conf *zcp, uint64_t saved_eid,
37     int64_t saved_etime[]);
38
39 void zed_event_service(struct zed_conf *zcp);
40
41 #endif  /* !ZED_EVENT_H */