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
;
133 unix_dequeue_device_op
,
135 unix_get_dosdev_symlink
,
136 unix_set_dosdev_symlink
,
137 unix_get_volume_dos_devices
,
138 unix_read_volume_file
,
140 unix_detect_serial_ports
,
141 unix_detect_parallel_ports
,
142 unix_set_shell_folder
,
143 unix_get_shell_folder
,
147 extern unixlib_handle_t mountmgr_handle
;
149 #define MOUNTMGR_CALL( func, params ) __wine_unix_call( mountmgr_handle, unix_ ## func, params )
151 extern void queue_device_op( enum device_op op
, const char *udi
, const char *device
,
152 const char *mount_point
, enum device_type type
, const GUID
*guid
,
153 const char *disk_serial
, const struct scsi_info
*info
) DECLSPEC_HIDDEN
;
154 extern void run_dbus_loop(void) DECLSPEC_HIDDEN
;
155 extern void run_diskarbitration_loop(void) DECLSPEC_HIDDEN
;
157 extern NTSTATUS
dhcp_request( void *args
) DECLSPEC_HIDDEN
;
158 extern NTSTATUS
query_symbol_file( void *buff
, ULONG insize
, ULONG outsize
, ULONG
*info
) DECLSPEC_HIDDEN
;
159 extern NTSTATUS
read_credential( void *buff
, ULONG insize
, ULONG outsize
, ULONG
*info
) DECLSPEC_HIDDEN
;
160 extern NTSTATUS
write_credential( void *buff
, ULONG insize
, ULONG outsize
, ULONG
*info
) DECLSPEC_HIDDEN
;
161 extern NTSTATUS
delete_credential( void *buff
, ULONG insize
, ULONG outsize
, ULONG
*info
) DECLSPEC_HIDDEN
;
162 extern NTSTATUS
enumerate_credentials( void *buff
, ULONG insize
, ULONG outsize
, ULONG
*info
) DECLSPEC_HIDDEN
;