Alexandre Julliard | 1a66d22 | 2001-08-28 18:44:52 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Wine server USER definitions |
| 3 | * |
| 4 | * Copyright (C) 2001 Alexandre Julliard |
| 5 | */ |
| 6 | |
| 7 | #ifndef __WINE_SERVER_USER_H |
| 8 | #define __WINE_SERVER_USER_H |
| 9 | |
| 10 | #include "wine/server_protocol.h" |
| 11 | |
| 12 | struct thread; |
| 13 | struct window; |
| 14 | |
| 15 | enum user_object |
| 16 | { |
| 17 | USER_WINDOW = 1 |
| 18 | }; |
| 19 | |
| 20 | /* user handles functions */ |
| 21 | |
| 22 | extern user_handle_t alloc_user_handle( void *ptr, enum user_object type ); |
| 23 | extern void *get_user_object( user_handle_t handle, enum user_object type ); |
| 24 | extern void *get_user_object_handle( user_handle_t *handle, enum user_object type ); |
Alexandre Julliard | bc878ef | 2001-09-12 17:09:24 +0000 | [diff] [blame^] | 25 | extern user_handle_t get_user_full_handle( user_handle_t handle ); |
Alexandre Julliard | 1a66d22 | 2001-08-28 18:44:52 +0000 | [diff] [blame] | 26 | extern void *free_user_handle( user_handle_t handle ); |
| 27 | extern void *next_user_handle( user_handle_t *handle, enum user_object type ); |
| 28 | |
| 29 | /* queue functions */ |
| 30 | |
| 31 | extern void queue_cleanup_window( struct thread *thread, user_handle_t win ); |
| 32 | |
| 33 | /* window functions */ |
| 34 | |
| 35 | extern void destroy_thread_windows( struct thread *thread ); |
| 36 | |
| 37 | #endif /* __WINE_SERVER_USER_H */ |