Top | ![]() |
![]() |
![]() |
![]() |
gpointer | client | Write / Construct Only |
gint | gpu-device | Read / Write / Construct |
gint | n-retries | Read / Write / Construct |
GPlasmaClientOptions is a class for customizing plasma store connection.
GPlasmaClientCreateOptions is a class for customizing object creation.
GPlasmaClient is a class for an interface with a plasma store.
GPlasmaClientOptions *
gplasma_client_options_new (void
);
Since: 0.12.0
void gplasma_client_options_set_n_retries (GPlasmaClientOptions *options
,gint n_retries
);
Since: 0.12.0
gint
gplasma_client_options_get_n_retries (GPlasmaClientOptions *options
);
Since: 0.12.0
GPlasmaClientCreateOptions *
gplasma_client_create_options_new (void
);
Since: 0.12.0
void gplasma_client_create_options_set_metadata (GPlasmaClientCreateOptions *options
,const guint8 *metadata
,gsize size
);
options |
||
metadata |
The metadata of a created object. |
[nullable][array length=size] |
size |
The number of bytes of the metadata. |
Since: 0.12.0
const guint8 * gplasma_client_create_options_get_metadata (GPlasmaClientCreateOptions *options
,gsize *size
);
Since: 0.12.0
GPlasmaClient * gplasma_client_new (const gchar *store_socket_name
,GPlasmaClientOptions *options
,GError **error
);
store_socket_name |
The name of the UNIX domain socket. |
|
options |
The options to custom how to connect to plasma store. |
[nullable] |
error |
Return location for a GError or |
[nullable] |
Since: 0.12.0
GPlasmaCreatedObject * gplasma_client_create (GPlasmaClient *client
,GPlasmaObjectID *id
,gsize data_size
,GPlasmaClientCreateOptions *options
,GError **error
);
client |
||
id |
The ID for a newly created object. |
|
data_size |
The number of bytes of data for a newly created object. |
|
options |
The option for creating an object. |
[nullable] |
error |
Return location for a GError or |
[nullable] |
Since: 0.12.0
GPlasmaReferredObject * gplasma_client_refer_object (GPlasmaClient *client
,GPlasmaObjectID *id
,gint64 timeout_ms
,GError **error
);
client |
||
id |
The ID of the target object. |
|
timeout_ms |
The timeout in milliseconds. -1 means no timeout. |
|
error |
Return location for a GError or |
[nullable] |
Since: 0.12.0
gboolean gplasma_client_disconnect (GPlasmaClient *client
,GError **error
);
Since: 0.12.0
struct GPlasmaClientCreateOptionsClass { GObjectClass parent_class; };