33 lines
882 B
C
33 lines
882 B
C
#ifndef AMDUAT_FED_TRANSPORT_UNIX_H
|
|
#define AMDUAT_FED_TRANSPORT_UNIX_H
|
|
|
|
#include "federation/coord.h"
|
|
#include "amduat/asl/asl_pointer_fs.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
enum { AMDUAT_FED_TRANSPORT_UNIX_PATH_MAX = 1024 };
|
|
|
|
typedef struct {
|
|
char socket_path[AMDUAT_FED_TRANSPORT_UNIX_PATH_MAX];
|
|
char space_id[AMDUAT_ASL_POINTER_NAME_MAX + 1u];
|
|
bool has_space;
|
|
} amduat_fed_transport_unix_t;
|
|
|
|
bool amduat_fed_transport_unix_init(amduat_fed_transport_unix_t *transport,
|
|
const char *socket_path);
|
|
|
|
bool amduat_fed_transport_unix_set_space(amduat_fed_transport_unix_t *transport,
|
|
const char *space_id);
|
|
|
|
amduat_fed_transport_t amduat_fed_transport_unix_ops(
|
|
amduat_fed_transport_unix_t *transport);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern "C" */
|
|
#endif
|
|
|
|
#endif /* AMDUAT_FED_TRANSPORT_UNIX_H */
|