FreeRDP
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
comm_ioctl_dummy.c
1
20#include <winpr/comm.h>
21
22#include "comm_ioctl.h"
23#include <../log.h>
24
25#define TAG WINPR_TAG("comm")
26
27BOOL CommDeviceIoControl(HANDLE hDevice, DWORD dwIoControlCode, LPVOID lpInBuffer,
28 DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize,
29 LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped)
30{
31 WINPR_UNUSED(hDevice);
32 WINPR_UNUSED(dwIoControlCode);
33 WINPR_UNUSED(lpInBuffer);
34 WINPR_UNUSED(nInBufferSize);
35 WINPR_UNUSED(lpOutBuffer);
36 WINPR_UNUSED(nOutBufferSize);
37 WINPR_UNUSED(lpBytesReturned);
38 WINPR_UNUSED(lpOverlapped);
39
40 WLog_ERR(TAG, "TODO: Function not implemented for this platform");
41 return FALSE;
42}
43
44int comm_ioctl_tcsetattr(int fd, int optional_actions, const struct termios* termios_p)
45{
46 WINPR_UNUSED(fd);
47 WINPR_UNUSED(optional_actions);
48 WINPR_UNUSED(termios_p);
49
50 WLog_ERR(TAG, "TODO: Function not implemented for this platform");
51 return -1;
52}
53
54BOOL _comm_set_permissive(HANDLE hDevice, BOOL permissive)
55{
56 WINPR_UNUSED(hDevice);
57 WINPR_UNUSED(permissive);
58
59 WLog_ERR(TAG, "TODO: Function not implemented for this platform");
60 return FALSE;
61}
62
63BOOL CommReadFile(HANDLE hDevice, LPVOID lpBuffer, DWORD nNumberOfBytesToRead,
64 LPDWORD lpNumberOfBytesRead, LPOVERLAPPED lpOverlapped)
65{
66 WINPR_UNUSED(hDevice);
67 WINPR_UNUSED(lpBuffer);
68 WINPR_UNUSED(nNumberOfBytesToRead);
69 WINPR_UNUSED(lpNumberOfBytesRead);
70 WINPR_UNUSED(lpOverlapped);
71
72 WLog_ERR(TAG, "TODO: Function not implemented for this platform");
73 return FALSE;
74}
75
76BOOL CommWriteFile(HANDLE hDevice, LPCVOID lpBuffer, DWORD nNumberOfBytesToWrite,
77 LPDWORD lpNumberOfBytesWritten, LPOVERLAPPED lpOverlapped)
78{
79 WINPR_UNUSED(hDevice);
80 WINPR_UNUSED(lpBuffer);
81 WINPR_UNUSED(nNumberOfBytesToWrite);
82 WINPR_UNUSED(lpNumberOfBytesWritten);
83 WINPR_UNUSED(lpOverlapped);
84
85 WLog_ERR(TAG, "TODO: Function not implemented for this platform");
86 return FALSE;
87}