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 **************************************************************************/
17 #include "../device.h"
24 HOTPLUG_ACTION_REMOVE
,
28 HOTPLUG_EVENT_DEVFS
= 0,
31 /** Data structure representing a hotplug event; also used for
36 HotplugActionType action
; /**< Whether the event is add or remove */
37 HotplugEventType type
; /**< Type of hotplug event */
43 char devfs_path
[HAL_PATH_MAX
];
44 DevinfoDevHandler
*handler
;
50 void hotplug_event_enqueue (HotplugEvent
*event
, int front
);
52 void hotplug_event_process_queue (void);
54 void hotplug_event_end (void *end_token
);
56 void hotplug_queue_now_empty (void);
58 #endif /* HOTPLUG_H */