From 7a4c37e8b673328dda59cec11ab9dce66c22a312 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Wed, 4 Mar 2026 21:26:43 +0100 Subject: ouroboros: Add IRM wrapper Add ouroboros.irm module wrapping the Ouroboros IRM C API, providing Python interfaces for IPCP lifecycle (create, destroy, bootstrap, enroll, connect), name management (create, destroy, register, list), and program/process binding. Split the monolithic CFFI build into separate _ouroboros_dev_cffi and _ouroboros_irm_cffi modules, each linking only its required library. Also includes: - ouroboros.cli module with higher-level wrappers mirroring CLI tools - FRCT flag support (set/get) in the Flow API - FlowPeer event type in FEventType - QoS defaults updated to match ouroboros source - Bug fixes: flow_set_snd_timeout typo, flow_set_flags calling convention, FlowSet name mangling, fqueue_type return type - .gitignore, copyright updates, version bump to 0.23.0 --- ouroboros/event.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'ouroboros/event.py') diff --git a/ouroboros/event.py b/ouroboros/event.py index b707c1b..ee0127e 100644 --- a/ouroboros/event.py +++ b/ouroboros/event.py @@ -1,7 +1,7 @@ # -# Ouroboros - Copyright (C) 2016 - 2020 +# Ouroboros - Copyright (C) 2016 - 2026 # -# Python API for applications +# Python API for Ouroboros # # Dimitri Staessens # @@ -20,7 +20,7 @@ # from ouroboros.dev import * -from ouroboros.qos import _fl_to_timespec +from ouroboros.dev import _fl_to_timespec # async API @@ -34,6 +34,7 @@ class FEventType(IntFlag): FlowUp = lib.FLOW_UP FlowAlloc = lib.FLOW_ALLOC FlowDealloc = lib.FLOW_DEALLOC + FlowPeer = lib.FLOW_PEER class FEventQueue: @@ -101,7 +102,7 @@ class FlowSet: if self.__set is ffi.NULL: raise ValueError - if lib.fset_add(self.__set, flow._Flow___fd) != 0: + if lib.fset_add(self.__set, flow._Flow__fd) != 0: raise MemoryError("Failed to add flow") def zero(self): -- cgit v1.2.3