2011-11-10 00:33:58 +04:00
|
|
|
/**
|
2012-10-09 07:02:04 +04:00
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
2011-11-10 00:33:58 +04:00
|
|
|
* FreeRDP Extension Plugin Interface
|
|
|
|
*
|
|
|
|
* Copyright 2010-2011 Vic Lee
|
|
|
|
* Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __EXTENSION_H
|
|
|
|
#define __EXTENSION_H
|
|
|
|
|
2012-05-05 03:36:35 +04:00
|
|
|
#include <winpr/windows.h>
|
|
|
|
|
2011-11-12 09:51:41 +04:00
|
|
|
#include <freerdp/api.h>
|
2011-11-10 00:33:58 +04:00
|
|
|
#include <freerdp/freerdp.h>
|
|
|
|
#include <freerdp/extension.h>
|
2011-12-04 02:24:18 +04:00
|
|
|
|
2011-11-10 00:33:58 +04:00
|
|
|
#define FREERDP_EXT_MAX_COUNT 16
|
|
|
|
|
2011-11-10 00:59:03 +04:00
|
|
|
struct rdp_extension
|
2011-11-10 00:33:58 +04:00
|
|
|
{
|
|
|
|
freerdp* instance;
|
|
|
|
rdpExtPlugin* plugins[FREERDP_EXT_MAX_COUNT];
|
|
|
|
int num_plugins;
|
|
|
|
PFREERDP_EXTENSION_HOOK pre_connect_hooks[FREERDP_EXT_MAX_COUNT];
|
|
|
|
rdpExtPlugin* pre_connect_hooks_instances[FREERDP_EXT_MAX_COUNT];
|
|
|
|
int num_pre_connect_hooks;
|
|
|
|
PFREERDP_EXTENSION_HOOK post_connect_hooks[FREERDP_EXT_MAX_COUNT];
|
|
|
|
rdpExtPlugin* post_connect_hooks_instances[FREERDP_EXT_MAX_COUNT];
|
|
|
|
int num_post_connect_hooks;
|
|
|
|
};
|
2011-11-10 00:59:03 +04:00
|
|
|
typedef struct rdp_extension rdpExtension;
|
2011-11-10 00:33:58 +04:00
|
|
|
|
2011-11-12 09:51:41 +04:00
|
|
|
FREERDP_API int extension_pre_connect(rdpExtension* extension);
|
|
|
|
FREERDP_API int extension_post_connect(rdpExtension* extension);
|
2011-11-10 00:33:58 +04:00
|
|
|
|
2011-11-12 09:51:41 +04:00
|
|
|
FREERDP_API rdpExtension* extension_new(freerdp* instance);
|
|
|
|
FREERDP_API void extension_free(rdpExtension* extension);
|
2012-08-03 12:40:05 +04:00
|
|
|
FREERDP_API void extension_load_and_init_plugins(rdpExtension* extension);
|
2011-11-10 00:33:58 +04:00
|
|
|
|
|
|
|
#endif /* __EXTENSION_H */
|
|
|
|
|