Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Pipewire.CoreAPI.Link
Synopsis
- newtype Link = Link {}
- data LinkProperties = LinkProperties {}
- withLink :: Core -> LinkProperties -> (Link -> IO a) -> IO a
- setupLinkProperties :: PwProperties -> LinkProperties -> IO ()
- pw_link_create :: Core -> PwProperties -> IO Link
- newtype NodeID = NodeeID PwID
- newtype PortID = PortID PwID
- type LinkEventInfoHandler = PwID -> Either Text LinkState -> IO ()
- newtype LinkEvents = LinkEvents (Ptr PwLinkEventsStruct)
- pwLinkEventsFuncs :: LinkEvents -> ProxiedFuncs
- withLinkEvents :: LinkEventInfoHandler -> (LinkEvents -> IO a) -> IO a
- inline_c_ffi_6989586621679114968 :: IO CSize
- inline_c_ffi_6989586621679115009 :: (Ptr () -> Ptr PwLinkInfoStruct -> IO ()) -> IO (FunPtr (Ptr () -> Ptr PwLinkInfoStruct -> IO ()))
- inline_c_ffi_6989586621679115020 :: Ptr PwLinkEventsStruct -> FunPtr (Ptr () -> Ptr PwLinkInfoStruct -> IO ()) -> IO ()
- inline_c_ffi_6989586621679114942 :: Ptr PwLinkInfoStruct -> IO CInt
- inline_c_ffi_6989586621679114951 :: Ptr PwLinkInfoStruct -> IO CInt
- inline_c_ffi_6989586621679114960 :: Ptr PwLinkInfoStruct -> IO (Ptr CChar)
Documentation
setupLinkProperties :: PwProperties -> LinkProperties -> IO () #
Create the PwProperties for pw_link_create
pw_link_create :: Core -> PwProperties -> IO Link #
newtype LinkEvents #
Constructors
LinkEvents (Ptr PwLinkEventsStruct) |
pwLinkEventsFuncs :: LinkEvents -> ProxiedFuncs #
Convert the LinkEvents
for pw_proxy_add_object_listener
withLinkEvents :: LinkEventInfoHandler -> (LinkEvents -> IO a) -> IO a #
Setup the pw_link_events handlers
inline_c_ffi_6989586621679115009 :: (Ptr () -> Ptr PwLinkInfoStruct -> IO ()) -> IO (FunPtr (Ptr () -> Ptr PwLinkInfoStruct -> IO ())) #
inline_c_ffi_6989586621679115020 :: Ptr PwLinkEventsStruct -> FunPtr (Ptr () -> Ptr PwLinkInfoStruct -> IO ()) -> IO () #