Pasteboard

Functions

wpe_pasteboard_get_singleton

struct wpe_pasteboard *
wpe_pasteboard_get_singleton ()

Obtains the pasteboard object, creating it if neccessary.

Returns (struct wpe_pasteboard *)

The pasteboard object.


wpe_pasteboard_get_string

void 
wpe_pasteboard_get_string (struct wpe_pasteboard * ,
                           const char * ,
                           struct wpe_pasteboard_string * )

Parameters:

No description available
No description available
No description available
Returns (void )
No description available

wpe_pasteboard_get_types

void 
wpe_pasteboard_get_types (struct wpe_pasteboard * ,
                          struct wpe_pasteboard_string_vector * )

Parameters:

No description available
No description available
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:

No description available
Returns (void )
No description available

wpe_pasteboard_write

void 
wpe_pasteboard_write (struct wpe_pasteboard * ,
                      struct wpe_pasteboard_string_map * )

Parameters:

No description available
No description available
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 () –
No description available
get_types () –
No description available
get_string () –
No description available
write () –
No description available

wpe_pasteboard_string

struct wpe_pasteboard_string {
    char* data;
    uint64_t length;
};

Fields

data (char *) –
No description available
length (int ) –
No description available

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 *) –
No description available
length (int ) –
No description available

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) –
No description available
string (struct wpe_pasteboard_string) –
No description available

wpe_pasteboard_string_vector

struct wpe_pasteboard_string_vector {
    struct wpe_pasteboard_string* strings;
    uint64_t length;
};

Fields

strings (struct wpe_pasteboard_string *) –
No description available
length (int ) –
No description available

The results of the search are