FreeRDP
pf_filters.c File Reference
#include <assert.h>
#include <winpr/wlog.h>
#include <winpr/library.h>
#include <freerdp/api.h>
#include "pf_log.h"
#include "pf_filters.h"

Macros

#define TAG   PROXY_TAG("filters")
 
#define FILTER_INIT_METHOD   "filter_init"
 

Functions

static const char * pf_filters_get_filter_result_string (PF_FILTER_RESULT result)
 
static const char * pf_filters_get_event_type_string (PF_FILTER_TYPE result)
 
BOOL pf_filters_init (filters_list **list)
 
PF_FILTER_RESULT pf_filters_run_by_type (filters_list *list, PF_FILTER_TYPE type, connectionInfo *info, void *param)
 
static void pf_filters_filter_free (proxyFilter *filter)
 
void pf_filters_unregister_all (filters_list *list)
 
BOOL pf_filters_register_new (filters_list *list, const char *module_path, const char *filter_name)
 

Variables

static const char * FILTER_RESULT_STRINGS []
 
static const char * EVENT_TYPE_STRINGS []
 

Macro Definition Documentation

#define FILTER_INIT_METHOD   "filter_init"
#define TAG   PROXY_TAG("filters")

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.

Function Documentation

static void pf_filters_filter_free ( proxyFilter *  filter)
static

Here is the call graph for this function:

Here is the caller graph for this function:

static const char* pf_filters_get_event_type_string ( PF_FILTER_TYPE  result)
static

Here is the caller graph for this function:

static const char* pf_filters_get_filter_result_string ( PF_FILTER_RESULT  result)
static

Here is the caller graph for this function:

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:

Variable Documentation

const char* EVENT_TYPE_STRINGS[]
static
Initial value:
=
{
"KEYBOARD_EVENT",
"MOUSE_EVENT",
}
const char* FILTER_RESULT_STRINGS[]
static
Initial value:
=
{
"FILTER_PASS",
"FILTER_DROP",
"FILTER_IGNORE",
}