2007-09-19 14:42:54 +00:00
|
|
|
/*
|
|
|
|
* PROJECT: ReactOS
|
|
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
|
|
* FILE: base/services/audiosrv/audiosrv.h
|
|
|
|
* PURPOSE: Audio Service (private header)
|
|
|
|
* COPYRIGHT: Copyright 2007 Andrew Greenwood
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <dbt.h>
|
|
|
|
#include <audiosrv/audiosrv.h>
|
|
|
|
|
|
|
|
#ifndef AUDIOSRV_PRIVATE_H
|
|
|
|
#define AUDIOSRV_PRIVATE_H
|
|
|
|
|
|
|
|
extern SERVICE_STATUS_HANDLE service_status_handle;
|
|
|
|
|
|
|
|
|
|
|
|
/* List management (pnp_list_manager.c) */
|
|
|
|
|
|
|
|
VOID*
|
|
|
|
CreateDeviceDescriptor(WCHAR* path, BOOL is_enabled);
|
|
|
|
|
|
|
|
#define DestroyDeviceDescriptor(descriptor) free(descriptor)
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
AppendAudioDeviceToList(PnP_AudioDevice* device);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
CreateAudioDeviceList(DWORD max_size);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
DestroyAudioDeviceList();
|
|
|
|
|
|
|
|
|
|
|
|
/* Plug and Play (pnp.c) */
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
ProcessExistingDevices();
|
|
|
|
|
|
|
|
DWORD
|
|
|
|
ProcessDeviceArrival(DEV_BROADCAST_DEVICEINTERFACE* device);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
RegisterForDeviceNotifications();
|
|
|
|
|
2007-09-19 20:11:28 +00:00
|
|
|
VOID
|
|
|
|
UnregisterDeviceNotifications();
|
|
|
|
|
2007-09-19 14:42:54 +00:00
|
|
|
DWORD
|
|
|
|
HandleDeviceEvent(
|
|
|
|
DWORD dwEventType,
|
|
|
|
LPVOID lpEventData);
|
|
|
|
|
2009-02-26 18:29:15 +00:00
|
|
|
BOOL
|
|
|
|
StartSystemAudioServices();
|
2007-09-19 16:54:25 +00:00
|
|
|
|
|
|
|
/* Debugging */
|
|
|
|
|
|
|
|
void logmsg(char* string, ...);
|
|
|
|
|
2007-09-19 14:42:54 +00:00
|
|
|
#endif
|