gi-ostree-1.0.13: OSTree bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.OSTree.Objects.RepoFinderAvahi

Description

No description available in the introspection data.

Synopsis

Exported types

newtype RepoFinderAvahi Source #

Memory-managed wrapper type.

Constructors

RepoFinderAvahi (ManagedPtr RepoFinderAvahi) 

Instances

Instances details
Eq RepoFinderAvahi Source # 
Instance details

Defined in GI.OSTree.Objects.RepoFinderAvahi

GObject RepoFinderAvahi Source # 
Instance details

Defined in GI.OSTree.Objects.RepoFinderAvahi

ManagedPtrNewtype RepoFinderAvahi Source # 
Instance details

Defined in GI.OSTree.Objects.RepoFinderAvahi

TypedObject RepoFinderAvahi Source # 
Instance details

Defined in GI.OSTree.Objects.RepoFinderAvahi

Methods

glibType :: IO GType

IsGValue RepoFinderAvahi Source #

Convert RepoFinderAvahi to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.OSTree.Objects.RepoFinderAvahi

Methods

toGValue :: RepoFinderAvahi -> IO GValue

fromGValue :: GValue -> IO RepoFinderAvahi

HasParentTypes RepoFinderAvahi Source # 
Instance details

Defined in GI.OSTree.Objects.RepoFinderAvahi

type ParentTypes RepoFinderAvahi Source # 
Instance details

Defined in GI.OSTree.Objects.RepoFinderAvahi

type ParentTypes RepoFinderAvahi = '[Object, RepoFinder]

class (GObject o, IsDescendantOf RepoFinderAvahi o) => IsRepoFinderAvahi o Source #

Type class for types which can be safely cast to RepoFinderAvahi, for instance with toRepoFinderAvahi.

Instances

Instances details
(GObject o, IsDescendantOf RepoFinderAvahi o) => IsRepoFinderAvahi o Source # 
Instance details

Defined in GI.OSTree.Objects.RepoFinderAvahi

toRepoFinderAvahi :: (MonadIO m, IsRepoFinderAvahi o) => o -> m RepoFinderAvahi Source #

Cast to RepoFinderAvahi, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

new

repoFinderAvahiNew :: (HasCallStack, MonadIO m) => MainContext -> m RepoFinderAvahi Source #

No description available in the introspection data.

start

repoFinderAvahiStart Source #

Arguments

:: (HasCallStack, MonadIO m, IsRepoFinderAvahi a) 
=> a

self: an RepoFinderAvahi

-> m ()

(Can throw GError)

Start monitoring the local network for peers who are advertising OSTree repositories, using Avahi. In order for this to work, the MainContext passed to self at construction time must be iterated (so it will typically be the global MainContext, or be a separate MainContext in a worker thread).

This will return an error (IOErrorEnumFailed) if initialisation fails, or if Avahi support is not available (IOErrorEnumNotSupported). In either case, the RepoFinderAvahi instance is useless afterwards and should be destroyed.

Call repoFinderAvahiStop to stop the repo finder.

It is an error to call this function multiple times on the same RepoFinderAvahi instance, or to call it after repoFinderAvahiStop.

Since: 2018.6

stop

repoFinderAvahiStop Source #

Arguments

:: (HasCallStack, MonadIO m, IsRepoFinderAvahi a) 
=> a

self: an RepoFinderAvahi

-> m () 

Stop monitoring the local network for peers who are advertising OSTree repositories. If any resolve tasks (from repoFinderResolveAsync) are in progress, they will be cancelled and will return IOErrorEnumCancelled.

Call repoFinderAvahiStart to start the repo finder.

It is an error to call this function multiple times on the same RepoFinderAvahi instance, or to call it before repoFinderAvahiStart.

Since: 2018.6