FreeRDP
msusb.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <freerdp/log.h>
#include <freerdp/utils/msusb.h>

Macros

#define TAG   FREERDP_TAG("utils")
 
#define DEBUG_MSUSB(...)   do { } while (0)
 

Functions

static MSUSB_PIPE_DESCRIPTOR * msusb_mspipe_new ()
 
static void msusb_mspipes_free (MSUSB_PIPE_DESCRIPTOR **MsPipes, UINT32 NumberOfPipes)
 
void msusb_mspipes_replace (MSUSB_INTERFACE_DESCRIPTOR *MsInterface, MSUSB_PIPE_DESCRIPTOR **NewMsPipes, UINT32 NewNumberOfPipes)
 
static MSUSB_PIPE_DESCRIPTOR ** msusb_mspipes_read (BYTE *data, UINT32 data_size, UINT32 NumberOfPipes, int *offset)
 
static MSUSB_INTERFACE_DESCRIPTOR * msusb_msinterface_new ()
 
static void msusb_msinterface_free (MSUSB_INTERFACE_DESCRIPTOR *MsInterface)
 
static void msusb_msinterface_free_list (MSUSB_INTERFACE_DESCRIPTOR **MsInterfaces, UINT32 NumInterfaces)
 
void msusb_msinterface_replace (MSUSB_CONFIG_DESCRIPTOR *MsConfig, BYTE InterfaceNumber, MSUSB_INTERFACE_DESCRIPTOR *NewMsInterface)
 
MSUSB_INTERFACE_DESCRIPTOR * msusb_msinterface_read (BYTE *data, UINT32 data_size, int *offset)
 
int msusb_msinterface_write (MSUSB_INTERFACE_DESCRIPTOR *MsInterface, BYTE *data, int *offset)
 
static MSUSB_INTERFACE_DESCRIPTOR ** msusb_msinterface_read_list (BYTE *data, UINT32 data_size, UINT32 NumInterfaces)
 
int msusb_msconfig_write (MSUSB_CONFIG_DESCRIPTOR *MsConfg, BYTE *data, int *offset)
 
MSUSB_CONFIG_DESCRIPTOR * msusb_msconfig_new ()
 
void msusb_msconfig_free (MSUSB_CONFIG_DESCRIPTOR *MsConfig)
 
MSUSB_CONFIG_DESCRIPTOR * msusb_msconfig_read (BYTE *data, UINT32 data_size, UINT32 NumInterfaces)
 
void msusb_msconfig_dump (MSUSB_CONFIG_DESCRIPTOR *MsConfig)
 

Macro Definition Documentation

#define DEBUG_MSUSB (   ...)    do { } while (0)
#define TAG   FREERDP_TAG("utils")

FreeRDP: A Remote Desktop Protocol Implementation RemoteFX USB Redirection

Copyright 2012 Atrust corp. Copyright 2012 Alfred Liu alfre.nosp@m.d.li.nosp@m.u@atr.nosp@m.usco.nosp@m.rp.co.nosp@m.m

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.

Function Documentation

void msusb_msconfig_dump ( MSUSB_CONFIG_DESCRIPTOR *  MsConfig)
void msusb_msconfig_free ( MSUSB_CONFIG_DESCRIPTOR *  MsConfig)

Here is the call graph for this function:

Here is the caller graph for this function:

MSUSB_CONFIG_DESCRIPTOR* msusb_msconfig_new ( void  )

Here is the caller graph for this function:

MSUSB_CONFIG_DESCRIPTOR* msusb_msconfig_read ( BYTE data,
UINT32  data_size,
UINT32  NumInterfaces 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int msusb_msconfig_write ( MSUSB_CONFIG_DESCRIPTOR *  MsConfg,
BYTE data,
int *  offset 
)

Here is the call graph for this function:

Here is the caller graph for this function:

static void msusb_msinterface_free ( MSUSB_INTERFACE_DESCRIPTOR *  MsInterface)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static void msusb_msinterface_free_list ( MSUSB_INTERFACE_DESCRIPTOR **  MsInterfaces,
UINT32  NumInterfaces 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static MSUSB_INTERFACE_DESCRIPTOR* msusb_msinterface_new ( )
static

Here is the caller graph for this function:

MSUSB_INTERFACE_DESCRIPTOR* msusb_msinterface_read ( BYTE data,
UINT32  data_size,
int *  offset 
)

Here is the call graph for this function:

Here is the caller graph for this function:

static MSUSB_INTERFACE_DESCRIPTOR** msusb_msinterface_read_list ( BYTE data,
UINT32  data_size,
UINT32  NumInterfaces 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

void msusb_msinterface_replace ( MSUSB_CONFIG_DESCRIPTOR *  MsConfig,
BYTE  InterfaceNumber,
MSUSB_INTERFACE_DESCRIPTOR *  NewMsInterface 
)

Here is the call graph for this function:

Here is the caller graph for this function:

int msusb_msinterface_write ( MSUSB_INTERFACE_DESCRIPTOR *  MsInterface,
BYTE data,
int *  offset 
)

Here is the caller graph for this function:

static MSUSB_PIPE_DESCRIPTOR* msusb_mspipe_new ( )
static

Here is the caller graph for this function:

static void msusb_mspipes_free ( MSUSB_PIPE_DESCRIPTOR **  MsPipes,
UINT32  NumberOfPipes 
)
static

Here is the caller graph for this function:

static MSUSB_PIPE_DESCRIPTOR** msusb_mspipes_read ( BYTE data,
UINT32  data_size,
UINT32  NumberOfPipes,
int *  offset 
)
static

Here is the call graph for this function:

Here is the caller graph for this function:

void msusb_mspipes_replace ( MSUSB_INTERFACE_DESCRIPTOR *  MsInterface,
MSUSB_PIPE_DESCRIPTOR **  NewMsPipes,
UINT32  NewNumberOfPipes 
)

Here is the call graph for this function:

Here is the caller graph for this function: