Files
2026-11-23 03:28:32 +02:00

31 lines
820 B
C

#ifndef GW_PRIORITY_ROUTE_SLOT_H
#define GW_PRIORITY_ROUTE_SLOT_H
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Numeric UI state only. No callback, bearer, hostname, or account data. */
enum gw_priority_slot_state {
GW_PRIORITY_SLOT_NONE = 0,
GW_PRIORITY_SLOT_PENDING = 1,
GW_PRIORITY_SLOT_PRIVATE = 2,
GW_PRIORITY_SLOT_PUBLIC = 3,
GW_PRIORITY_SLOT_CONSUMED = 4
};
int gw_priority_slot_start(uint32_t generation);
int gw_priority_slot_status(uint32_t generation);
int gw_priority_slot_cancel(uint32_t generation);
int gw_priority_slot_public(uint32_t generation);
void gw_priority_slot_shutdown(void);
/* 1: private numeric address, 0: public Octo fallback, -1: pending/invalid. */
int gw_priority_slot_take(uint32_t generation, char out[16]);
#ifdef __cplusplus
}
#endif
#endif