/** * FreeRDP: A Remote Desktop Protocol Client * FreeRDP Interface * * Copyright 2009-2011 Jay Sorg * * 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 __FREERDP_H #define __FREERDP_H typedef struct rdp_freerdp freerdp; #include #include #include #include #include #include #ifdef __cplusplus extern "C" { #endif FREERDP_API boolean freerdp_global_init(); FREERDP_API void freerdp_global_finish(); typedef boolean (*pcConnect)(freerdp* instance); typedef boolean (*pcPreConnect)(freerdp* instance); typedef boolean (*pcPostConnect)(freerdp* instance); typedef boolean (*pcAuthenticate)(freerdp* instance, char** username, char** password, char** domain); typedef boolean (*pcGetFileDescriptor)(freerdp* instance, void** rfds, int* rcount, void** wfds, int* wcount); typedef boolean (*pcCheckFileDescriptor)(freerdp* instance); typedef int (*pcSendChannelData)(freerdp* instance, int channelId, uint8* data, int size); typedef int (*pcReceiveChannelData)(freerdp* instance, int channelId, uint8* data, int size, int flags, int total_size); typedef void (*pcDisconnect)(freerdp* instance); struct rdp_freerdp { void* rdp; void* client; void* chanman; void* param3; void* param4; rdpInput* input; rdpUpdate* update; rdpSettings* settings; pcConnect Connect; pcPreConnect PreConnect; pcPostConnect PostConnect; pcAuthenticate Authenticate; pcGetFileDescriptor GetFileDescriptor; pcCheckFileDescriptor CheckFileDescriptor; pcSendChannelData SendChannelData; pcReceiveChannelData ReceiveChannelData; pcDisconnect Disconnect; }; FREERDP_API freerdp* freerdp_new(); FREERDP_API void freerdp_free(freerdp* instance); #ifdef __cplusplus } #endif #endif