Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
55f52096
Commit
55f52096
authored
Dec 20, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr: Rename hal.c to dbus.c.
parent
e45d124c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
20 deletions
+22
-20
Makefile.in
dlls/mountmgr.sys/Makefile.in
+1
-1
dbus.c
dlls/mountmgr.sys/dbus.c
+19
-17
mountmgr.c
dlls/mountmgr.sys/mountmgr.c
+1
-1
mountmgr.h
dlls/mountmgr.sys/mountmgr.h
+1
-1
No files found.
dlls/mountmgr.sys/Makefile.in
View file @
55f52096
...
@@ -6,9 +6,9 @@ EXTRADEFS = @HALINCL@
...
@@ -6,9 +6,9 @@ EXTRADEFS = @HALINCL@
EXTRALIBS
=
@DISKARBITRATIONLIB@
EXTRALIBS
=
@DISKARBITRATIONLIB@
C_SRCS
=
\
C_SRCS
=
\
dbus.c
\
device.c
\
device.c
\
diskarb.c
\
diskarb.c
\
hal.c
\
mountmgr.c
mountmgr.c
@MAKE_DLL_RULES@
@MAKE_DLL_RULES@
dlls/mountmgr.sys/
hal
.c
→
dlls/mountmgr.sys/
dbus
.c
View file @
55f52096
/*
/*
*
HAL
devices support
*
DBus
devices support
*
*
* Copyright 2006 Alexandre Julliard
* Copyright 2006 Alexandre Julliard
*
*
...
@@ -26,8 +26,10 @@
...
@@ -26,8 +26,10 @@
#include <stdarg.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdio.h>
#include <sys/time.h>
#include <sys/time.h>
#ifdef SONAME_LIB
HAL
#ifdef SONAME_LIB
DBUS_1
# include <dbus/dbus.h>
# include <dbus/dbus.h>
#endif
#ifdef SONAME_LIBHAL
# include <hal/libhal.h>
# include <hal/libhal.h>
#endif
#endif
...
@@ -135,7 +137,7 @@ static GUID *parse_uuid( GUID *guid, const char *str )
...
@@ -135,7 +137,7 @@ static GUID *parse_uuid( GUID *guid, const char *str )
}
}
/* HAL callback for new device */
/* HAL callback for new device */
static
void
new_device
(
LibHalContext
*
ctx
,
const
char
*
udi
)
static
void
hal_
new_device
(
LibHalContext
*
ctx
,
const
char
*
udi
)
{
{
DBusError
error
;
DBusError
error
;
char
*
parent
=
NULL
;
char
*
parent
=
NULL
;
...
@@ -187,7 +189,7 @@ done:
...
@@ -187,7 +189,7 @@ done:
}
}
/* HAL callback for removed device */
/* HAL callback for removed device */
static
void
removed_device
(
LibHalContext
*
ctx
,
const
char
*
udi
)
static
void
hal_
removed_device
(
LibHalContext
*
ctx
,
const
char
*
udi
)
{
{
DBusError
error
;
DBusError
error
;
...
@@ -203,17 +205,17 @@ static void removed_device( LibHalContext *ctx, const char *udi )
...
@@ -203,17 +205,17 @@ static void removed_device( LibHalContext *ctx, const char *udi )
}
}
/* HAL callback for property changes */
/* HAL callback for property changes */
static
void
property_modified
(
LibHalContext
*
ctx
,
const
char
*
udi
,
static
void
hal_
property_modified
(
LibHalContext
*
ctx
,
const
char
*
udi
,
const
char
*
key
,
dbus_bool_t
is_removed
,
dbus_bool_t
is_added
)
const
char
*
key
,
dbus_bool_t
is_removed
,
dbus_bool_t
is_added
)
{
{
TRACE
(
"udi %s key %s %s
\n
"
,
wine_dbgstr_a
(
udi
),
wine_dbgstr_a
(
key
),
TRACE
(
"udi %s key %s %s
\n
"
,
wine_dbgstr_a
(
udi
),
wine_dbgstr_a
(
key
),
is_added
?
"added"
:
is_removed
?
"removed"
:
"modified"
);
is_added
?
"added"
:
is_removed
?
"removed"
:
"modified"
);
if
(
!
strcmp
(
key
,
"volume.mount_point"
))
new_device
(
ctx
,
udi
);
if
(
!
strcmp
(
key
,
"volume.mount_point"
))
hal_
new_device
(
ctx
,
udi
);
}
}
static
DWORD
WINAPI
hal
_thread
(
void
*
arg
)
static
DWORD
WINAPI
dbus
_thread
(
void
*
arg
)
{
{
DBusError
error
;
DBusError
error
;
DBusConnection
*
dbc
;
DBusConnection
*
dbc
;
...
@@ -232,9 +234,9 @@ static DWORD WINAPI hal_thread( void *arg )
...
@@ -232,9 +234,9 @@ static DWORD WINAPI hal_thread( void *arg )
}
}
p_libhal_ctx_set_dbus_connection
(
ctx
,
dbc
);
p_libhal_ctx_set_dbus_connection
(
ctx
,
dbc
);
p_libhal_ctx_set_device_added
(
ctx
,
new_device
);
p_libhal_ctx_set_device_added
(
ctx
,
hal_
new_device
);
p_libhal_ctx_set_device_removed
(
ctx
,
removed_device
);
p_libhal_ctx_set_device_removed
(
ctx
,
hal_
removed_device
);
p_libhal_ctx_set_device_property_modified
(
ctx
,
property_modified
);
p_libhal_ctx_set_device_property_modified
(
ctx
,
hal_
property_modified
);
if
(
!
p_libhal_ctx_init
(
ctx
,
&
error
))
if
(
!
p_libhal_ctx_init
(
ctx
,
&
error
))
{
{
...
@@ -247,7 +249,7 @@ static DWORD WINAPI hal_thread( void *arg )
...
@@ -247,7 +249,7 @@ static DWORD WINAPI hal_thread( void *arg )
if
(
!
(
list
=
p_libhal_get_all_devices
(
ctx
,
&
num
,
&
error
)))
p_dbus_error_free
(
&
error
);
if
(
!
(
list
=
p_libhal_get_all_devices
(
ctx
,
&
num
,
&
error
)))
p_dbus_error_free
(
&
error
);
else
else
{
{
for
(
i
=
0
;
i
<
num
;
i
++
)
new_device
(
ctx
,
list
[
i
]
);
for
(
i
=
0
;
i
<
num
;
i
++
)
hal_
new_device
(
ctx
,
list
[
i
]
);
p_libhal_free_string_array
(
list
);
p_libhal_free_string_array
(
list
);
}
}
...
@@ -269,20 +271,20 @@ static DWORD WINAPI hal_thread( void *arg )
...
@@ -269,20 +271,20 @@ static DWORD WINAPI hal_thread( void *arg )
return
0
;
return
0
;
}
}
void
initialize_
hal
(
void
)
void
initialize_
dbus
(
void
)
{
{
HANDLE
handle
;
HANDLE
handle
;
if
(
!
load_functions
())
return
;
if
(
!
load_functions
())
return
;
if
(
!
(
handle
=
CreateThread
(
NULL
,
0
,
hal
_thread
,
NULL
,
0
,
NULL
)))
return
;
if
(
!
(
handle
=
CreateThread
(
NULL
,
0
,
dbus
_thread
,
NULL
,
0
,
NULL
)))
return
;
CloseHandle
(
handle
);
CloseHandle
(
handle
);
}
}
#else
/* SONAME_LIBHAL */
#else
/* SONAME_LIBHAL */
void
initialize_
hal
(
void
)
void
initialize_
dbus
(
void
)
{
{
TRACE
(
"Skipping,
HAL
support not compiled in
\n
"
);
TRACE
(
"Skipping,
DBUS
support not compiled in
\n
"
);
}
}
#endif
/* SONAME_LIBHAL */
#endif
/* SONAME_LIBHAL */
dlls/mountmgr.sys/mountmgr.c
View file @
55f52096
...
@@ -461,7 +461,7 @@ NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *path )
...
@@ -461,7 +461,7 @@ NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *path )
RtlInitUnicodeString
(
&
nameW
,
harddiskW
);
RtlInitUnicodeString
(
&
nameW
,
harddiskW
);
status
=
IoCreateDriver
(
&
nameW
,
harddisk_driver_entry
);
status
=
IoCreateDriver
(
&
nameW
,
harddisk_driver_entry
);
initialize_
hal
();
initialize_
dbus
();
initialize_diskarbitration
();
initialize_diskarbitration
();
return
status
;
return
status
;
...
...
dlls/mountmgr.sys/mountmgr.h
View file @
55f52096
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
#define WINE_MOUNTMGR_EXTENSIONS
#define WINE_MOUNTMGR_EXTENSIONS
#include "ddk/mountmgr.h"
#include "ddk/mountmgr.h"
extern
void
initialize_
hal
(
void
)
DECLSPEC_HIDDEN
;
extern
void
initialize_
dbus
(
void
)
DECLSPEC_HIDDEN
;
extern
void
initialize_diskarbitration
(
void
)
DECLSPEC_HIDDEN
;
extern
void
initialize_diskarbitration
(
void
)
DECLSPEC_HIDDEN
;
/* device functions */
/* device functions */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment