FreeRDP
comm_ioctl.c File Reference
#include <winpr/config.h>
#include <winpr/assert.h>
#include <errno.h>
#include <winpr/wlog.h>
#include "comm.h"
#include "comm_ioctl.h"
#include "comm_serial_sys.h"
#include "comm_sercx_sys.h"
#include "comm_sercx2_sys.h"

Functions

const char * _comm_serial_ioctl_name (ULONG number)
 
static BOOL s_CommDeviceIoControl (HANDLE hDevice, DWORD dwIoControlCode, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped)
 
BOOL CommDeviceIoControl (HANDLE hDevice, DWORD dwIoControlCode, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped)
 
int _comm_ioctl_tcsetattr (int fd, int optional_actions, const struct termios *termios_p)
 

Variables

static const _SERIAL_IOCTL_NAME S_SERIAL_IOCTL_NAMES []
 

Function Documentation

◆ _comm_ioctl_tcsetattr()

int _comm_ioctl_tcsetattr ( int  fd,
int  optional_actions,
const struct termios *  termios_p 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _comm_serial_ioctl_name()

const char* _comm_serial_ioctl_name ( ULONG  number)

FIXME: got a proper function name and place

Here is the caller graph for this function:

◆ CommDeviceIoControl()

BOOL CommDeviceIoControl ( HANDLE  hDevice,
DWORD  dwIoControlCode,
LPVOID  lpInBuffer,
DWORD  nInBufferSize,
LPVOID  lpOutBuffer,
DWORD  nOutBufferSize,
LPDWORD  lpBytesReturned,
LPOVERLAPPED  lpOverlapped 
)

FIXME: to be used through winpr-io's DeviceIoControl

Any previous error as returned by GetLastError is cleared.

ERRORS: ERROR_INVALID_HANDLE ERROR_INVALID_PARAMETER ERROR_NOT_SUPPORTED lpOverlapped is not supported ERROR_INSUFFICIENT_BUFFER ERROR_CALL_NOT_IMPLEMENTED unimplemented ioctl

Here is the call graph for this function:
Here is the caller graph for this function:

◆ s_CommDeviceIoControl()

static BOOL s_CommDeviceIoControl ( HANDLE  hDevice,
DWORD  dwIoControlCode,
LPVOID  lpInBuffer,
DWORD  nInBufferSize,
LPVOID  lpOutBuffer,
DWORD  nOutBufferSize,
LPDWORD  lpBytesReturned,
LPOVERLAPPED  lpOverlapped 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ S_SERIAL_IOCTL_NAMES

const _SERIAL_IOCTL_NAME S_SERIAL_IOCTL_NAMES[]
static

WinPR: Windows Portable Runtime Serial Communication API

Copyright 2011 O.S. Systems Software Ltda. Copyright 2011 Eduardo Fiss Beloni belon.nosp@m.i@os.nosp@m.syste.nosp@m.ms.c.nosp@m.om.br Copyright 2014 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2014 Hewlett-Packard Development Company, L.P.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.