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 2015 Joyent, Inc. 14 */ 15 16 #ifndef _SYS_SYSEVENT_DATALINK_H 17 #define _SYS_SYSEVENT_DATALINK_H 18 19 /* 20 * Datalink System Event payloads 21 */ 22 23 #ifdef __cplusplus 24 extern "C" { 25 #endif 26 27 /* 28 * Event schema for EC_DATALINK_LINK_STATE 29 * 30 * Event Class - EC_DATALINK 31 * Event Sub-Class - EC_DATALINK_LINK_STATE 32 * 33 * Attribute Name - DATALINK_EV_LINK_NAME 34 * Attribute Type - SE_DATA_TYPE_STRING 35 * Attribute Value - [Name of the datalink] 36 * 37 * Attribute Name - DATALINK_EV_LINK_ID 38 * Attribute Type - SE_DATA_TYPE_INT32 39 * Attribute Value - [datalink_id_t for the device] 40 * 41 * Attribute Name - DATALINK_EV_ZONE_ID 42 * Attribute Type - SE_DATA_TYPE_INT32 43 * Attribute Value - [zoneid_t of the zone the datalink is in] 44 */ 45 46 #define DATALINK_EV_LINK_NAME "link" 47 #define DATALINK_EV_LINK_ID "linkid" 48 #define DATALINK_EV_ZONE_ID "zone" 49 50 #ifdef __cplusplus 51 } 52 #endif 53 54 #endif /* _SYS_SYSEVENT_DATALINK_H */ 55