2011-08-16 07:37:43 +04:00
|
|
|
/**
|
2012-10-09 07:02:04 +04:00
|
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
2011-08-16 07:37:43 +04:00
|
|
|
* RAIL Window List
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*/
|
|
|
|
|
2011-08-22 01:32:18 +04:00
|
|
|
#ifndef __RAIL_WINDOW_LIST_H
|
|
|
|
#define __RAIL_WINDOW_LIST_H
|
2011-08-16 07:37:43 +04:00
|
|
|
|
2011-08-17 07:54:42 +04:00
|
|
|
#include <freerdp/api.h>
|
2011-08-16 07:37:43 +04:00
|
|
|
#include <freerdp/types.h>
|
|
|
|
#include <freerdp/update.h>
|
|
|
|
#include <freerdp/utils/stream.h>
|
|
|
|
|
|
|
|
typedef struct rdp_window_list rdpWindowList;
|
|
|
|
|
2011-08-17 10:14:02 +04:00
|
|
|
#include <freerdp/rail/rail.h>
|
|
|
|
#include <freerdp/rail/window.h>
|
|
|
|
|
2011-08-16 07:37:43 +04:00
|
|
|
struct rdp_window_list
|
|
|
|
{
|
2011-08-17 10:14:02 +04:00
|
|
|
rdpRail* rail;
|
2011-08-16 07:37:43 +04:00
|
|
|
rdpWindow* head;
|
|
|
|
rdpWindow* tail;
|
2011-08-17 10:14:02 +04:00
|
|
|
rdpWindow* iterator;
|
2011-08-16 07:37:43 +04:00
|
|
|
};
|
|
|
|
|
2011-08-17 10:14:02 +04:00
|
|
|
FREERDP_API void window_list_rewind(rdpWindowList* list);
|
2012-10-09 10:38:39 +04:00
|
|
|
FREERDP_API BOOL window_list_has_next(rdpWindowList* list);
|
2011-08-17 10:14:02 +04:00
|
|
|
FREERDP_API rdpWindow* window_list_get_next(rdpWindowList* list);
|
|
|
|
|
2012-10-09 11:26:39 +04:00
|
|
|
FREERDP_API rdpWindow* window_list_get_by_id(rdpWindowList* list, UINT32 windowId);
|
2011-08-22 01:32:18 +04:00
|
|
|
FREERDP_API rdpWindow* window_list_get_by_extra_id(rdpWindowList* list, void* extraId);
|
2011-08-18 00:45:09 +04:00
|
|
|
|
2011-08-17 07:54:42 +04:00
|
|
|
FREERDP_API void window_list_create(rdpWindowList* list, WINDOW_ORDER_INFO* orderInfo, WINDOW_STATE_ORDER* window_state);
|
|
|
|
FREERDP_API void window_list_update(rdpWindowList* list, WINDOW_ORDER_INFO* orderInfo, WINDOW_STATE_ORDER* window_state);
|
|
|
|
FREERDP_API void window_list_delete(rdpWindowList* list, WINDOW_ORDER_INFO* orderInfo);
|
2012-08-04 02:35:17 +04:00
|
|
|
FREERDP_API void window_list_clear(rdpWindowList* list);
|
2011-08-16 07:37:43 +04:00
|
|
|
|
2011-08-17 10:14:02 +04:00
|
|
|
FREERDP_API rdpWindowList* window_list_new(rdpRail* rail);
|
2011-08-17 07:54:42 +04:00
|
|
|
FREERDP_API void window_list_free(rdpWindowList* list);
|
2011-08-16 07:37:43 +04:00
|
|
|
|
2011-08-22 01:32:18 +04:00
|
|
|
#endif /* __RAIL_WINDOW_LIST_H */
|