cscg24-guacamole

CSCG 2024 Challenge 'Guacamole Mashup'
git clone https://git.sinitax.com/sinitax/cscg24-guacamole
Log | Files | Refs | sfeed.txt

extension.h (2085B)


      1/**
      2 * FreeRDP: A Remote Desktop Protocol Implementation
      3 * RDP Extensions
      4 *
      5 * Copyright 2010-2011 Vic Lee
      6 *
      7 * Licensed under the Apache License, Version 2.0 (the "License");
      8 * you may not use this file except in compliance with the License.
      9 * You may obtain a copy of the License at
     10 *
     11 *     http://www.apache.org/licenses/LICENSE-2.0
     12 *
     13 * Unless required by applicable law or agreed to in writing, software
     14 * distributed under the License is distributed on an "AS IS" BASIS,
     15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     16 * See the License for the specific language governing permissions and
     17 * limitations under the License.
     18 */
     19
     20#ifndef FREERDP_EXTENSION_H
     21#define FREERDP_EXTENSION_H
     22
     23#include <freerdp/api.h>
     24#include <freerdp/types.h>
     25#include <freerdp/freerdp.h>
     26
     27#define FREERDP_EXT_EXPORT_FUNC_NAME "FreeRDPExtensionEntry"
     28
     29typedef struct rdp_ext_plugin rdpExtPlugin;
     30
     31struct rdp_ext_plugin
     32{
     33	void* ext;
     34	int (*init)(rdpExtPlugin* plugin, freerdp* instance);
     35	int (*uninit)(rdpExtPlugin* plugin, freerdp* instance);
     36};
     37
     38typedef UINT32(FREERDP_CC* PFREERDP_EXTENSION_HOOK)(rdpExtPlugin* plugin, freerdp* instance);
     39
     40typedef UINT32(FREERDP_CC* PREGISTEREXTENSION)(rdpExtPlugin* plugin);
     41typedef UINT32(FREERDP_CC* PREGISTERPRECONNECTHOOK)(rdpExtPlugin* plugin,
     42                                                    PFREERDP_EXTENSION_HOOK hook);
     43typedef UINT32(FREERDP_CC* PREGISTERPOSTCONNECTHOOK)(rdpExtPlugin* plugin,
     44                                                     PFREERDP_EXTENSION_HOOK hook);
     45
     46struct _FREERDP_EXTENSION_ENTRY_POINTS
     47{
     48	void* ext; /* Reference to internal instance */
     49	PREGISTEREXTENSION pRegisterExtension;
     50	PREGISTERPRECONNECTHOOK pRegisterPreConnectHook;
     51	PREGISTERPOSTCONNECTHOOK pRegisterPostConnectHook;
     52	void* data;
     53};
     54
     55typedef struct _FREERDP_EXTENSION_ENTRY_POINTS FREERDP_EXTENSION_ENTRY_POINTS;
     56typedef FREERDP_EXTENSION_ENTRY_POINTS* PFREERDP_EXTENSION_ENTRY_POINTS;
     57
     58typedef int(FREERDP_CC* PFREERDP_EXTENSION_ENTRY)(PFREERDP_EXTENSION_ENTRY_POINTS pEntryPoints);
     59
     60#endif /* FREERDP_EXTENSION_H */