// Copyright (C) 2026 Actia Nordic AB. All rights reserved.

#ifndef IPC_H_
#define IPC_H_

#include <actia/actia.h>
#include <stdbool.h>
#include <stdint.h>
#include <sys/epoll.h>

#include "led_example.h"

#define IPC_OUTBOX_SIZE 1
#define IPC_INBOX_SIZE 1

#define LED_ON 1
#define LED_OFF 0

int ipc_initialize_actia_ipc(int ipc_id, int epfd);

A_IPC_RESULT ipc_send_open_session_req(int to);

bool ipc_handle_actia_ipc_event(struct epoll_event *event,
								const led_example_options_t *params);

A_IPC_RESULT ipc_set_led(a_ipc_enum_led_pin_type led, uint8_t state);

A_IPC_RESULT ipc_location_request(void);

A_IPC_RESULT ipc_location_subscribe(void);

void ipc_destroy_actia_ipc(void);

#endif  // IPC_H_
