1 /***************************************************************************
3 * hotplug.h : definitions for HAL-internal hotplug events
5 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
6 * Use is subject to license terms.
8 * Licensed under the Academic Free License version 2.1
10 **************************************************************************/
12 #pragma ident "%Z%%M% %I% %E% SMI"
19 #include "../device.h"
26 HOTPLUG_ACTION_REMOVE
,
30 HOTPLUG_EVENT_DEVFS
= 0,
33 /** Data structure representing a hotplug event; also used for
38 HotplugActionType action
; /**< Whether the event is add or remove */
39 HotplugEventType type
; /**< Type of hotplug event */
45 char devfs_path
[HAL_PATH_MAX
];
46 DevinfoDevHandler
*handler
;
52 void hotplug_event_enqueue (HotplugEvent
*event
, int front
);
54 void hotplug_event_process_queue (void);
56 void hotplug_event_end (void *end_token
);
58 void hotplug_queue_now_empty (void);
60 #endif /* HOTPLUG_H */