COSNOTIFYCOMM_NOTIFYPUBLISH(3erl)
π CosNotifyComm_NotifyPublish π
okay bestie, gather round, because we're doing the Erlang module definition for CosNotifyComm_NotifyPublish and it's genuinely iconic. this is a page from the cosNotification docs (version 5.2.2, brought to you by the lovely folks at Ericsson AB), and it's giving very much "CORBA notification services but make it cute". no cap. π¦
β¨ NAME β¨
CosNotifyComm_NotifyPublish β this module implements the OMG CosNotifyComm::NotifyPublish interface. that's it, that's the whole vibe. π
πΈ DESCRIPTION πΈ
so like, to get access to the record definitions for the structures, you're gonna wanna use:
-include_lib("cosNotification/include/*.hrl").
literally just drop that in and you're set, bestie. π
and the tea is: all objects that inherit this interface export the functions described in this module. every single one. no exceptions, fr fr. π«Ά
π EXPORTS π
β offer_change(Object, Added, Removed) -> Reply
π Types
Object=#objrefAdded=Removed=EventTypeSeqEventTypeSeq=[type]Reply=ok | {'EXCEPTION', CosNotifyComm_InvalidEventType{type}}type=#'CosNotification_EventType'{domain_name, type_name}domain_name=type_name=string()
π¦ What it actually does
okay so objects that support this interface can get informed by supplier objects about which type of events are gonna be delivered in the future. like a lil heads-up text, but for events. π²
this operation takes two parameters, and they're describing the new and the old event types respectively. so Added is the new ones and Removed is the old ones. periodt.
β οΈ and listen β if any of the supplied event type names is syntactically incorrect, an exception is raised. so keep those names clean, bestie, or it's gonna yell at you. π
and that's the whole page, mwah π huge thanks to Ericsson AB for the cosNotification 5.2.2 goodness β signing off, stay slay, go read your .hrl files responsibly. π§π
π¦ where this page comes from
- fedora 43: erlang-cosNotification 1:5.2.2-1.fc43 Β· Apache-2.0
- fedora 44: erlang-cosNotification 1:5.2.2-1.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms