UniqueBackend is the base, abstract class implemented by the different IPC mechanisms used by Unique. Each UniqueApp instance creates a UniqueBackend to request the name or to send messages.
UniqueBackend *
unique_backend_create (void);
Creates a UniqueBackend using the default backend defined at
compile time. You can override the default backend by setting the
UNIQUE_BACKEND environment variable with the
name of the desired backend.
void unique_backend_set_name (UniqueBackend *backend,const gchar *name);
FIXME
const gchar *
unique_backend_get_startup_id (UniqueBackend *backend);
FIXME
void unique_backend_set_startup_id (UniqueBackend *backend,const gchar *startup_id);
FIXME
void unique_backend_set_screen (UniqueBackend *backend,GdkScreen *screen);
FIXME
guint
unique_backend_get_workspace (UniqueBackend *backend);
Retrieves the current workspace.
gboolean
unique_backend_request_name (UniqueBackend *backend);
Requests the name set using unique_backend_set_name() using backend
.
UniqueResponse unique_backend_send_message (UniqueBackend *backend,gint command_id,UniqueMessageData *message_data,guint time_);
Sends command_id
, and optionally message_data
, to a running instance
using backend
.
backend |
||
command_id |
command to send |
|
message_data |
message to send, or |
|
time_ |
time of the command emission, or 0 for the current time |
struct UniqueBackend;
The UniqueBackend structure contains only private data and should only be accessed using the provided functions.
struct UniqueBackendClass {
/* vtable, not signals */
gboolean (* request_name) (UniqueBackend *backend);
UniqueResponse (* send_message) (UniqueBackend *backend,
gint command_id,
UniqueMessageData *message_data,
guint time_);
};
The class that should be implemented by every backend for UniqueApp.
This method should be used to request the name for the
instance set using |
||
This method should be used to send a message to a running instance |