Ubuntu Platform API  2.9.0
A library helping with tight integration into the Ubuntu platform
clipboard.h
Go to the documentation of this file.
1 /*
2  * Copyright © 2013 Canonical Ltd.
3  *
4  * This program is free software: you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License version 3 as
6  * published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU Lesser General Public License for more details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * Authored by: Ricardo Mendoza <ricardo.mendoza@canonical.com>
17  * Thomas Voß <thomas.voss@canonical.com>
18  */
19 
20 /*
21  * DEPRECATED: In favor of u_application_instance_get_mir_connection
22  * and the mir client library
23  */
24 
25 #ifndef UBUNTU_APPLICATION_UI_CLIPBOARD_H_
26 #define UBUNTU_APPLICATION_UI_CLIPBOARD_H_
27 
28 #include <ubuntu/visibility.h>
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34  /*
35  FIXME: See ua_ui_get_clipboard_content
36  */
37  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
39  ua_ui_set_clipboard_content(
40  void* data,
41  size_t size);
42 
43  /*
44  Memory pointed by data is owned by Ubuntu Application API.
45  Caller is expected to not attempt to modify or delete it.
46  It's also not guaranteed to remain valid after any other call is made
47  to the Ubuntu Application API.
48 
49  FIXME:
50  This API is bad as the user has no idea what kind of data the clipboard
51  contains. It should provide a mapping between mime types (as plain ascii strings)
52  and their respective data so the user is able to interpret the contents properly.
53  */
54  __attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library")))
56  ua_ui_get_clipboard_content(
57  void** data,
58  size_t* size);
59 
60 #ifdef __cplusplus
61 }
62 #endif
63 
64 #endif /* UBUNTU_APPLICATION_UI_CLIPBOARD_H_ */
UBUNTU_DLL_PUBLIC MirConnection * u_application_instance_get_mir_connection(UApplicationInstance *instance)
Return the MirConnection associated with an application instance. Use of MirConnection with the mir c...
size_t size
Definition: clipboard.h:41
__attribute__((__deprecated__("Use u_application_instance_get_mir_connection and the mir client library"))) UBUNTU_DLL_PUBLIC void ua_ui_set_clipboard_content(void *data
#define UBUNTU_DLL_PUBLIC
Definition: visibility.h:26