|
1 | 1 | /* |
2 | | - * Copyright (C) 2023 Linux Studio Plugins Project <https://lsp-plug.in/> |
3 | | - * (C) 2023 Vladimir Sadovnikov <sadko4u@gmail.com> |
| 2 | + * Copyright (C) 2025 Linux Studio Plugins Project <https://lsp-plug.in/> |
| 3 | + * (C) 2025 Vladimir Sadovnikov <sadko4u@gmail.com> |
4 | 4 | * |
5 | 5 | * This file is part of lsp-tk-lib |
6 | 6 | * Created on: 19 июн. 2017 г. |
@@ -47,9 +47,6 @@ namespace lsp |
47 | 47 | class Display: public Atoms |
48 | 48 | { |
49 | 49 | private: |
50 | | - Display & operator = (const Display &); |
51 | | - Display(const Display &); |
52 | | - |
53 | 50 | friend class Schema; |
54 | 51 |
|
55 | 52 | protected: |
@@ -88,6 +85,10 @@ namespace lsp |
88 | 85 | * @param settings additional display settings |
89 | 86 | */ |
90 | 87 | explicit Display(display_settings_t *settings = NULL); |
| 88 | + Display(const Display &) = delete; |
| 89 | + Display(Display &&) = delete; |
| 90 | + Display & operator = (const Display &) = delete; |
| 91 | + Display & operator = (Display &&) = delete; |
91 | 92 |
|
92 | 93 | /** Destructor |
93 | 94 | * |
@@ -363,6 +364,16 @@ namespace lsp |
363 | 364 | * @return previous value of the idle interval |
364 | 365 | */ |
365 | 366 | size_t set_idle_interval(size_t interval); |
| 367 | + |
| 368 | + /** |
| 369 | + * Obtain the file descriptor of the connection associated with the event loop |
| 370 | + * if it is supported (usually Unix-based systems with X11 protocol). |
| 371 | + * |
| 372 | + * @param fd pointer to store file descriptor |
| 373 | + * @return status of operation, STATUS_NOT_SUPPORTED if platform does |
| 374 | + * not support file desciptors for event loops |
| 375 | + */ |
| 376 | + status_t get_file_descriptor(int *fd); |
366 | 377 | }; |
367 | 378 |
|
368 | 379 | } /* namespace tk */ |
|
0 commit comments