Add stubs for FS message functions.

This commit is contained in:
Michael Jumper 2013-07-30 15:25:10 -07:00
parent 85b754f2b7
commit d877e1f236
3 changed files with 69 additions and 12 deletions

View File

@ -239,3 +239,39 @@ void guac_rdpdr_fs_file_info(guac_rdpdr_device* device, wStream* input_stream,
} }
void guac_rdpdr_fs_set_volume_info(guac_rdpdr_device* device, wStream* input_stream,
int file_id, int completion_id) {
/* STUB */
guac_client_log_info(device->rdpdr->client, "STUB: %s", __func__);
}
void guac_rdpdr_fs_set_file_info(guac_rdpdr_device* device, wStream* input_stream,
int file_id, int completion_id) {
/* STUB */
guac_client_log_info(device->rdpdr->client, "STUB: %s", __func__);
}
void guac_rdpdr_fs_process_device_control(guac_rdpdr_device* device, wStream* input_stream,
int file_id, int completion_id) {
/* STUB */
guac_client_log_info(device->rdpdr->client, "STUB: %s", __func__);
}
void guac_rdpdr_fs_process_notify_change_directory(guac_rdpdr_device* device,
wStream* input_stream, int file_id, int completion_id) {
/* STUB */
guac_client_log_info(device->rdpdr->client, "STUB: %s", __func__);
}
void guac_rdpdr_fs_process_query_directory(guac_rdpdr_device* device, wStream* input_stream,
int file_id, int completion_id) {
/* STUB */
guac_client_log_info(device->rdpdr->client, "STUB: %s", __func__);
}
void guac_rdpdr_fs_process_lock_control(guac_rdpdr_device* device, wStream* input_stream,
int file_id, int completion_id) {
/* STUB */
guac_client_log_info(device->rdpdr->client, "STUB: %s", __func__);
}

View File

@ -67,6 +67,24 @@ void guac_rdpdr_fs_process_close(guac_rdpdr_device* device,
void guac_rdpdr_fs_volume_info(guac_rdpdr_device* device, wStream* input_stream, void guac_rdpdr_fs_volume_info(guac_rdpdr_device* device, wStream* input_stream,
int completion_id); int completion_id);
void guac_rdpdr_fs_set_volume_info(guac_rdpdr_device* device, wStream* input_stream,
int file_id, int completion_id);
void guac_rdpdr_fs_file_info(guac_rdpdr_device* device, wStream* input_stream, void guac_rdpdr_fs_file_info(guac_rdpdr_device* device, wStream* input_stream,
int file_id, int completion_id); int file_id, int completion_id);
void guac_rdpdr_fs_set_file_info(guac_rdpdr_device* device, wStream* input_stream,
int file_id, int completion_id);
void guac_rdpdr_fs_process_device_control(guac_rdpdr_device* device, wStream* input_stream,
int file_id, int completion_id);
void guac_rdpdr_fs_process_notify_change_directory(guac_rdpdr_device* device,
wStream* input_stream, int file_id, int completion_id);
void guac_rdpdr_fs_process_query_directory(guac_rdpdr_device* device, wStream* input_stream,
int file_id, int completion_id);
void guac_rdpdr_fs_process_lock_control(guac_rdpdr_device* device, wStream* input_stream,
int file_id, int completion_id);

View File

@ -92,44 +92,47 @@ static void guac_rdpdr_device_fs_iorequest_handler(guac_rdpdr_device* device,
guac_rdpdr_fs_process_write(device, input_stream, file_id, completion_id); guac_rdpdr_fs_process_write(device, input_stream, file_id, completion_id);
break; break;
/* Device control request (Windows FSCTL_ control codes) */
case IRP_MJ_DEVICE_CONTROL: case IRP_MJ_DEVICE_CONTROL:
guac_client_log_error(device->rdpdr->client, guac_rdpdr_fs_process_device_control(device, input_stream, file_id, completion_id);
"IRP_MJ_DEVICE_CONTROL unsupported");
break; break;
/* Query volume (drive) information */
case IRP_MJ_QUERY_VOLUME_INFORMATION: case IRP_MJ_QUERY_VOLUME_INFORMATION:
guac_rdpdr_fs_volume_info(device, input_stream, completion_id); guac_rdpdr_fs_volume_info(device, input_stream, completion_id);
break; break;
/* Set volume (drive) information */
case IRP_MJ_SET_VOLUME_INFORMATION: case IRP_MJ_SET_VOLUME_INFORMATION:
guac_client_log_error(device->rdpdr->client, guac_rdpdr_fs_set_volume_info(device, input_stream, file_id, completion_id);
"IRP_MJ_SET_VOLUME_INFORMATION unsupported");
break; break;
/* Query file information */
case IRP_MJ_QUERY_INFORMATION: case IRP_MJ_QUERY_INFORMATION:
guac_rdpdr_fs_file_info(device, input_stream, file_id, completion_id); guac_rdpdr_fs_file_info(device, input_stream, file_id, completion_id);
break; break;
/* Set file information */
case IRP_MJ_SET_INFORMATION: case IRP_MJ_SET_INFORMATION:
guac_client_log_error(device->rdpdr->client, guac_rdpdr_fs_set_file_info(device, input_stream, file_id, completion_id);
"IRP_MJ_SET_INFORMATION unsupported");
break; break;
case IRP_MJ_DIRECTORY_CONTROL: case IRP_MJ_DIRECTORY_CONTROL:
/* Enumerate directory contents */
if (minor_func == IRP_MN_QUERY_DIRECTORY) if (minor_func == IRP_MN_QUERY_DIRECTORY)
guac_client_log_error(device->rdpdr->client, guac_rdpdr_fs_process_query_directory(device, input_stream, file_id, completion_id);
"IRP_MN_QUERY_DIRECTORY unsupported");
/* Request notification of changes to directory */
else if (minor_func == IRP_MN_NOTIFY_CHANGE_DIRECTORY) else if (minor_func == IRP_MN_NOTIFY_CHANGE_DIRECTORY)
guac_client_log_error(device->rdpdr->client, guac_rdpdr_fs_process_notify_change_directory(device, input_stream,
"IRP_MN_NOTIFY_CHANGE_DIRECTORY unsupported"); file_id, completion_id);
break; break;
/* Lock/unlock portions of a file */
case IRP_MJ_LOCK_CONTROL: case IRP_MJ_LOCK_CONTROL:
guac_client_log_error(device->rdpdr->client, guac_rdpdr_fs_process_lock_control(device, input_stream, file_id, completion_id);
"IRP_MJ_LOCK_CONTROL unsupported");
break; break;
default: default: