2026-03-06 20:17:23 +00:00
|
|
|
#ifndef _FS_INTERFACE_H_
|
|
|
|
|
#define _FS_INTERFACE_H_
|
|
|
|
|
|
|
|
|
|
#include <mango/types.h>
|
2026-03-10 19:15:26 +00:00
|
|
|
#include <xpc/buffer.h>
|
|
|
|
|
#include <xpc/context.h>
|
|
|
|
|
#include <xpc/endpoint.h>
|
|
|
|
|
#include <xpc/string.h>
|
2026-03-06 20:17:23 +00:00
|
|
|
|
|
|
|
|
struct msg_endpoint;
|
|
|
|
|
|
|
|
|
|
extern kern_status_t fs_msg_open(
|
2026-03-10 19:15:26 +00:00
|
|
|
xpc_context_t *ctx,
|
|
|
|
|
const xpc_endpoint_t *sender,
|
|
|
|
|
const xpc_string_t *path,
|
2026-03-06 20:17:23 +00:00
|
|
|
int flags,
|
|
|
|
|
int *out_err,
|
|
|
|
|
void *arg);
|
|
|
|
|
extern kern_status_t fs_msg_close(
|
|
|
|
|
const struct msg_endpoint *sender,
|
|
|
|
|
const char *path,
|
|
|
|
|
int flags,
|
|
|
|
|
int *out_err,
|
|
|
|
|
void *arg);
|
|
|
|
|
|
2026-03-10 19:15:26 +00:00
|
|
|
extern kern_status_t fs_msg_read(
|
|
|
|
|
xpc_context_t *ctx,
|
|
|
|
|
const xpc_endpoint_t *sender,
|
|
|
|
|
size_t count,
|
|
|
|
|
int *out_err,
|
|
|
|
|
size_t *out_nr_read,
|
|
|
|
|
xpc_buffer_t *out_data,
|
|
|
|
|
void *arg);
|
|
|
|
|
|
2026-03-06 20:17:23 +00:00
|
|
|
#endif
|