21 #ifndef FREERDP_SERVER_PROXY_MODULES_H
22 #define FREERDP_SERVER_PROXY_MODULES_H
24 #include <winpr/wtypes.h>
25 #include <winpr/collections.h>
27 #include <freerdp/server/proxy/proxy_modules_api.h>
35 FILTER_TYPE_CLIENT_PASSTHROUGH_CHANNEL_DATA,
36 FILTER_TYPE_SERVER_PASSTHROUGH_CHANNEL_DATA,
37 FILTER_TYPE_CLIENT_PASSTHROUGH_DYN_CHANNEL_CREATE,
38 FILTER_TYPE_SERVER_FETCH_TARGET_ADDR,
39 FILTER_TYPE_SERVER_PEER_LOGON,
40 FILTER_TYPE_CLIENT_PASSTHROUGH_CHANNEL_CREATE,
42 FILTER_TYPE_STATIC_INTERCEPT_LIST,
43 FILTER_TYPE_DYN_INTERCEPT_LIST,
44 FILTER_TYPE_INTERCEPT_CHANNEL,
50 HOOK_TYPE_CLIENT_INIT_CONNECT,
51 HOOK_TYPE_CLIENT_UNINIT_CONNECT,
52 HOOK_TYPE_CLIENT_PRE_CONNECT,
53 HOOK_TYPE_CLIENT_POST_CONNECT,
54 HOOK_TYPE_CLIENT_POST_DISCONNECT,
55 HOOK_TYPE_CLIENT_REDIRECT,
56 HOOK_TYPE_CLIENT_VERIFY_X509,
57 HOOK_TYPE_CLIENT_LOGIN_FAILURE,
58 HOOK_TYPE_CLIENT_END_PAINT,
59 HOOK_TYPE_CLIENT_LOAD_CHANNELS,
61 HOOK_TYPE_SERVER_POST_CONNECT,
62 HOOK_TYPE_SERVER_ACTIVATE,
63 HOOK_TYPE_SERVER_CHANNELS_INIT,
64 HOOK_TYPE_SERVER_CHANNELS_FREE,
65 HOOK_TYPE_SERVER_SESSION_END,
66 HOOK_TYPE_SERVER_SESSION_INITIALIZE,
67 HOOK_TYPE_SERVER_SESSION_STARTED,
77 proxyModule* pf_modules_new(
const char* root_dir,
const char** modules,
size_t count);
84 BOOL pf_modules_add(proxyModule* module, proxyModuleEntryPoint ep,
void* userdata);
86 BOOL pf_modules_is_plugin_loaded(proxyModule* module,
const char* plugin_name);
87 void pf_modules_list_loaded_plugins(proxyModule* module);
89 BOOL pf_modules_run_filter(proxyModule* module, PF_FILTER_TYPE type, proxyData* pdata,
91 BOOL pf_modules_run_hook(proxyModule* module, PF_HOOK_TYPE type, proxyData* pdata,
94 void pf_modules_free(proxyModule* module);