Pasteboard
Functions
wpe_pasteboard_get_singleton
struct wpe_pasteboard * wpe_pasteboard_get_singleton ()
Obtains the pasteboard object, creating it if neccessary.
The pasteboard object.
wpe_pasteboard_get_string
void wpe_pasteboard_get_string (struct wpe_pasteboard * , const char * , struct wpe_pasteboard_string * )
Parameters:
–
–
–
Returns
(void )
–
No description available
wpe_pasteboard_get_types
void wpe_pasteboard_get_types (struct wpe_pasteboard * , struct wpe_pasteboard_string_vector * )
Parameters:
–
–
Returns
(void )
–
No description available
wpe_pasteboard_string_free
void wpe_pasteboard_string_free (struct wpe_pasteboard_string * pbstring)
Frees any resources associated with pbstring which may have been previously allocated by wpe_pasteboard_string_initialize.
Parameters:
pbstring
–
A pasteboard string.
Returns
(void )
–
No description available
wpe_pasteboard_string_initialize
void wpe_pasteboard_string_initialize (struct wpe_pasteboard_string * pbstring, const char * contents, int length)
Initializes a pasteboard string.
When the string is not needed anymore, use wpe_pasteboard_string_free to free resources.
Parameters:
pbstring
–
A pasteboard string.
contents
–
Contents to copy into the pasteboard string.
length
–
Length of the contents, in bytes.
Returns
(void )
–
No description available
wpe_pasteboard_string_vector_free
void wpe_pasteboard_string_vector_free (struct wpe_pasteboard_string_vector * )
Parameters:
–
Returns
(void )
–
No description available
wpe_pasteboard_write
void wpe_pasteboard_write (struct wpe_pasteboard * , struct wpe_pasteboard_string_map * )
Parameters:
–
–
Returns
(void )
–
No description available
Structures
wpe_pasteboard
wpe_pasteboard_interface
struct wpe_pasteboard_interface { void* (*initialize)(struct wpe_pasteboard*); void (*get_types)(void*, struct wpe_pasteboard_string_vector*); void (*get_string)(void*, const char*, struct wpe_pasteboard_string*); void (*write)(void*, struct wpe_pasteboard_string_map*); };
Fields
initialize
()
–
get_types
()
–
get_string
()
–
write
()
–
wpe_pasteboard_string
struct wpe_pasteboard_string { char* data; uint64_t length; };
Fields
data
(char *)
–
length
(int )
–
wpe_pasteboard_string_map
struct wpe_pasteboard_string_map { struct wpe_pasteboard_string_pair* pairs; uint64_t length; };
Fields
pairs
(struct wpe_pasteboard_string_pair *)
–
length
(int )
–
wpe_pasteboard_string_pair
struct wpe_pasteboard_string_pair { struct wpe_pasteboard_string type; struct wpe_pasteboard_string string; };
Fields
type
(struct wpe_pasteboard_string)
–
string
(struct wpe_pasteboard_string)
–
wpe_pasteboard_string_vector
struct wpe_pasteboard_string_vector { struct wpe_pasteboard_string* strings; uint64_t length; };
Fields
strings
(struct wpe_pasteboard_string *)
–
length
(int )
–
The results of the search are