FreeRDP
pf_filters.h File Reference
#include <winpr/wtypes.h>
#include <winpr/collections.h>
#include "filters/filters_api.h"
This graph shows which files directly or indirectly include this file:

Data Structures

struct  proxyFilter
 

Macros

#define RUN_FILTER(_filters, _type, _conn_info, _event_info, _ret, _cb, ...)
 

Typedefs

typedef BOOL(* filterInitFn) (proxyEvents *events)
 
typedef wArrayList filters_list
 
typedef enum _PF_FILTER_TYPE PF_FILTER_TYPE
 

Enumerations

enum  _PF_FILTER_TYPE { FILTER_TYPE_KEYBOARD, FILTER_TYPE_MOUSE }
 

Functions

BOOL pf_filters_init (filters_list **list)
 
BOOL pf_filters_register_new (filters_list *list, const char *module_path, const char *filter_name)
 
PF_FILTER_RESULT pf_filters_run_by_type (filters_list *list, PF_FILTER_TYPE type, connectionInfo *info, void *param)
 
void pf_filters_unregister_all (filters_list *list)
 

Macro Definition Documentation

#define RUN_FILTER (   _filters,
  _type,
  _conn_info,
  _event_info,
  _ret,
  _cb,
  ... 
)
Value:
do { \
switch(pf_filters_run_by_type(_filters,_type,_conn_info,_event_info)) { \
case FILTER_PASS: \
_ret = _cb(__VA_ARGS__); \
break; \
case FILTER_IGNORE: \
_ret = TRUE; \
break; \
case FILTER_DROP: \
default: \
_ret = FALSE; \
} \
} while(0)
Definition: filters_api.h:32
PF_FILTER_RESULT pf_filters_run_by_type(filters_list *list, PF_FILTER_TYPE type, connectionInfo *info, void *param)
Definition: pf_filters.c:82
Definition: filters_api.h:33
#define FALSE
Definition: trio.c:209
#define TRUE
Definition: trio.c:210
Definition: filters_api.h:31

Typedef Documentation

typedef BOOL(* filterInitFn) (proxyEvents *events)

FreeRDP: A Remote Desktop Protocol Implementation FreeRDP Proxy Server

Copyright 2019 Mati Shabtay matis.nosp@m.habt.nosp@m.ay@gm.nosp@m.ail..nosp@m.com Copyright 2019 Kobi Mizrachi kmizr.nosp@m.achi.nosp@m.18@gm.nosp@m.ail..nosp@m.com Copyright 2019 Idan Freiberg speid.nosp@m.y@gm.nosp@m.ail.c.nosp@m.om

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.

typedef wArrayList filters_list

Enumeration Type Documentation

Enumerator
FILTER_TYPE_KEYBOARD 
FILTER_TYPE_MOUSE 

Function Documentation

BOOL pf_filters_init ( filters_list **  list)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL pf_filters_register_new ( filters_list list,
const char *  module_path,
const char *  filter_name 
)

Here is the call graph for this function:

Here is the caller graph for this function:

PF_FILTER_RESULT pf_filters_run_by_type ( filters_list list,
PF_FILTER_TYPE  type,
connectionInfo *  info,
void param 
)

Here is the call graph for this function:

void pf_filters_unregister_all ( filters_list list)

Here is the call graph for this function:

Here is the caller graph for this function: