Fix changelog email address
[freerdp-ubuntu-pcb-backport.git] / include / freerdp / utils / rail.h
1 /**
2  * FreeRDP: A Remote Desktop Protocol Client
3  * Remote Applications Integrated Locally (RAIL) Utils
4  *
5  * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
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 __RAIL_UTILS_H
21 #define __RAIL_UTILS_H
22
23 #include <freerdp/api.h>
24 #include <freerdp/rail.h>
25 #include <freerdp/utils/rect.h>
26 #include <freerdp/utils/stream.h>
27
28 #define RAIL_ARRAY_SIZE(array) (sizeof(array) / sizeof(array[0]))
29
30 FREERDP_API void rail_unicode_string_alloc(UNICODE_STRING* unicode_string, uint16 cbString);
31 FREERDP_API void rail_unicode_string_free(UNICODE_STRING* unicode_string);
32 FREERDP_API void rail_read_unicode_string(STREAM* s, UNICODE_STRING* unicode_string);
33 FREERDP_API void rail_write_unicode_string(STREAM* s, UNICODE_STRING* unicode_string);
34 FREERDP_API void rail_write_unicode_string_value(STREAM* s, UNICODE_STRING* unicode_string);
35 FREERDP_API void* rail_clone_order(uint32 event_type, void* order);
36 FREERDP_API void  rail_free_cloned_order(uint32 event_type, void* order);
37
38 #endif /* __RAIL_UTILS_H */