2 * MountMgr Unix interface definitions
4 * Copyright 2021 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
22 #include "wine/unixlib.h"
34 enum device_type type
;
37 const char *mount_point
;
40 struct scsi_info
*scsi_info
;
42 /* buffer space for pointers */
44 struct scsi_info scsi_buffer
;
45 char str_buffer
[1024];
48 struct run_loop_params
54 struct dequeue_device_op_params
57 struct device_info
*info
;
60 struct add_drive_params
63 enum device_type type
;
67 struct get_dosdev_symlink_params
74 struct set_dosdev_symlink_params
80 struct get_volume_dos_devices_params
82 const char *mount_point
;
86 struct read_volume_file_params
94 struct match_unixdev_params
100 struct detect_ports_params
106 struct set_shell_folder_params
113 struct get_shell_folder_params
120 struct dhcp_request_params
122 const char *unix_name
;
123 struct mountmgr_dhcp_request_param
*req
;
141 unix_dequeue_device_op
,
143 unix_get_dosdev_symlink
,
144 unix_set_dosdev_symlink
,
145 unix_get_volume_dos_devices
,
146 unix_read_volume_file
,
148 unix_check_device_access
,
149 unix_detect_serial_ports
,
150 unix_detect_parallel_ports
,
151 unix_set_shell_folder
,
152 unix_get_shell_folder
,
154 unix_query_symbol_file
,
155 unix_read_credential
,
156 unix_write_credential
,
157 unix_delete_credential
,
158 unix_enumerate_credentials
,
161 extern unixlib_handle_t mountmgr_handle
;
163 #define MOUNTMGR_CALL( func, params ) __wine_unix_call( mountmgr_handle, unix_ ## func, params )
165 extern void queue_device_op( enum device_op op
, const char *udi
, const char *device
,
166 const char *mount_point
, enum device_type type
, const GUID
*guid
,
167 const char *disk_serial
, const struct scsi_info
*info
) DECLSPEC_HIDDEN
;
168 extern void run_dbus_loop(void) DECLSPEC_HIDDEN
;
169 extern void run_diskarbitration_loop(void) DECLSPEC_HIDDEN
;
171 extern NTSTATUS
dhcp_request( void *args
) DECLSPEC_HIDDEN
;
172 extern NTSTATUS
query_symbol_file( void *args
) DECLSPEC_HIDDEN
;
173 extern NTSTATUS
read_credential( void *args
) DECLSPEC_HIDDEN
;
174 extern NTSTATUS
write_credential( void *args
) DECLSPEC_HIDDEN
;
175 extern NTSTATUS
delete_credential( void *args
) DECLSPEC_HIDDEN
;
176 extern NTSTATUS
enumerate_credentials( void *args
) DECLSPEC_HIDDEN
;