mirror of
https://github.com/vale981/ray
synced 2025-03-13 14:46:38 -04:00
27 lines
869 B
C
27 lines
869 B
C
#ifndef PLASMA_CLIENT_H
|
|
#define PLASMA_CLIENT_H
|
|
|
|
/* Connect to the local plasma store UNIX domain socket with path socket_name
|
|
* and return the resulting connection. */
|
|
plasma_store_conn *plasma_store_connect(const char *socket_name);
|
|
|
|
/* Connect to a possibly remote plasma manager */
|
|
int plasma_manager_connect(const char *addr, int port);
|
|
|
|
void plasma_create(plasma_store_conn *conn,
|
|
plasma_id object_id,
|
|
int64_t size,
|
|
uint8_t *metadata,
|
|
int64_t metadata_size,
|
|
uint8_t **data);
|
|
|
|
void plasma_get(plasma_store_conn *conn,
|
|
plasma_id object_id,
|
|
int64_t *size,
|
|
uint8_t **data,
|
|
int64_t *metadata_size,
|
|
uint8_t **metadata);
|
|
|
|
void plasma_seal(plasma_store_conn *conn, plasma_id object_id);
|
|
|
|
#endif
|