BeagleClient

BeagleClient

Functions

Types and Values

struct BeagleClient

Object Hierarchy

    GObject
    ╰── BeagleClient

Description

Functions

beagle_client_new ()

BeagleClient *
beagle_client_new (const char *client_name);

Creates a new BeagleClient. If client_name is NULL it will default to "socket".

Parameters

client_name

a string

 

Returns

a newly created BeagleClient, or NULL if the client cannot be created.


beagle_client_new_from_socket_path ()

BeagleClient *
beagle_client_new_from_socket_path (const char *socket_path);

Creates a new BeagleClient, connecting to the path with socket_path . NULL is not allowed.

Parameters

socket_path

a string of the path to the daemon socket

 

Returns

a newly created BeagleClient, or NULL if the client cannot be created.


beagle_client_send_request ()

BeagleResponse *
beagle_client_send_request (BeagleClient *client,
                            BeagleRequest *request,
                            GError **err);

Synchronously send a BeagleRequest using the given BeagleClient.

Parameters

client

a BeagleClient

 

request

a BeagleRequest

 

err

a location to return an error GError of type GIOChannelError.

 

Returns

a BeagleResponse.


beagle_client_send_request_async ()

gboolean
beagle_client_send_request_async (BeagleClient *client,
                                  BeagleRequest *request,
                                  GError **err);

Asynchronously send a BeagleRequest using the given BeagleClient.

Parameters

client

a BeagleClient

 

request

a BeagleRequest

 

err

a location to store a GError of type GIOChannelError

 

Returns

TRUE on success and otherwise FALSE.

Types and Values

struct BeagleClient

struct BeagleClient;