18a2af0b4SBaptiste Daroussin /*- 28a2af0b4SBaptiste Daroussin * SPDX-License-Identifier: BSD-2-Clause 38a2af0b4SBaptiste Daroussin * 48a2af0b4SBaptiste Daroussin * Copyright (c) 2023 Baptiste Daroussin <bapt@FreeBSD.org> 58a2af0b4SBaptiste Daroussin * 68a2af0b4SBaptiste Daroussin * Redistribution and use in source and binary forms, with or without 78a2af0b4SBaptiste Daroussin * modification, are permitted provided that the following conditions 88a2af0b4SBaptiste Daroussin * are met: 98a2af0b4SBaptiste Daroussin * 1. Redistributions of source code must retain the above copyright 108a2af0b4SBaptiste Daroussin * notice, this list of conditions and the following disclaimer. 118a2af0b4SBaptiste Daroussin * 2. Redistributions in binary form must reproduce the above copyright 128a2af0b4SBaptiste Daroussin * notice, this list of conditions and the following disclaimer in the 138a2af0b4SBaptiste Daroussin * documentation and/or other materials provided with the distribution. 148a2af0b4SBaptiste Daroussin * 158a2af0b4SBaptiste Daroussin * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 168a2af0b4SBaptiste Daroussin * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 178a2af0b4SBaptiste Daroussin * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 188a2af0b4SBaptiste Daroussin * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 198a2af0b4SBaptiste Daroussin * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 208a2af0b4SBaptiste Daroussin * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 218a2af0b4SBaptiste Daroussin * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 228a2af0b4SBaptiste Daroussin * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 238a2af0b4SBaptiste Daroussin * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 248a2af0b4SBaptiste Daroussin * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 258a2af0b4SBaptiste Daroussin * SUCH DAMAGE. 268a2af0b4SBaptiste Daroussin */ 278a2af0b4SBaptiste Daroussin 288a2af0b4SBaptiste Daroussin #ifndef _NETLINK_SYSEVENT_H_ 298a2af0b4SBaptiste Daroussin #define _NETLINK_SYSEVENT_H_ 308a2af0b4SBaptiste Daroussin 318a2af0b4SBaptiste Daroussin enum { 328a2af0b4SBaptiste Daroussin NLSE_ATTR_UNSPEC = 0, 33*99084611SBaptiste Daroussin NLSE_ATTR_SYSTEM = 1, /* string reporting the system name */ 34*99084611SBaptiste Daroussin NLSE_ATTR_SUBSYSTEM = 2, /* string reporting the subsystem name */ 35*99084611SBaptiste Daroussin NLSE_ATTR_TYPE = 3, /* string reporting the type if the event */ 36*99084611SBaptiste Daroussin NLSE_ATTR_DATA = 4, /* string reporting the extra data (can be null) */ 378a2af0b4SBaptiste Daroussin __NLSE_ATTR_MAX, 388a2af0b4SBaptiste Daroussin }; 398a2af0b4SBaptiste Daroussin #define NLSE_ATTR_MAX (__NLSE_ATTR_MAX -1) 40*99084611SBaptiste Daroussin 41*99084611SBaptiste Daroussin /* commands */ 42*99084611SBaptiste Daroussin enum { 43*99084611SBaptiste Daroussin NLSE_CMD_UNSPEC = 0, 44*99084611SBaptiste Daroussin NLSE_CMD_NEWEVENT = 1, 45*99084611SBaptiste Daroussin __NLSE_CMD_MAX, 46*99084611SBaptiste Daroussin }; 47*99084611SBaptiste Daroussin #define NLSE_CMD_MAX (__NLSE_CMD_MAX - 1) 48*99084611SBaptiste Daroussin 498a2af0b4SBaptiste Daroussin #endif 50