/** * FreeRDP: A Remote Desktop Protocol Client * X11 Server Event Handling * * Copyright 2011 Marc-Andre Moreau * * 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 __XF_EVENT_H #define __XF_EVENT_H typedef struct xf_event xfEvent; typedef struct xf_event_queue xfEventQueue; typedef struct xf_event_region xfEventRegion; #include #include "xfreerdp.h" #include "xf_peer.h" enum xf_event_type { XF_EVENT_TYPE_REGION }; struct xf_event { int type; }; struct xf_event_queue { int size; int count; int pipe_fd[2]; xfEvent** events; }; struct xf_event_region { int type; int x; int y; int width; int height; }; int xf_is_event_set(xfEventQueue* event_queue); void xf_signal_event(xfEventQueue* event_queue); void xf_clear_event(xfEventQueue* event_queue); xfEventQueue* xf_event_queue_new(); void xf_event_queue_free(xfEventQueue* event_queue); #endif /* __XF_EVENT_H */