Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
GI.OSTree.Objects.RepoFinderAvahi
Contents
Description
No description available in the introspection data.
Synopsis
- newtype RepoFinderAvahi = RepoFinderAvahi (ManagedPtr RepoFinderAvahi)
- class GObject o => IsRepoFinderAvahi o
- toRepoFinderAvahi :: (MonadIO m, IsRepoFinderAvahi o) => o -> m RepoFinderAvahi
- noRepoFinderAvahi :: Maybe RepoFinderAvahi
- repoFinderAvahiNew :: (HasCallStack, MonadIO m) => MainContext -> m RepoFinderAvahi
- repoFinderAvahiStart :: (HasCallStack, MonadIO m, IsRepoFinderAvahi a) => a -> m ()
- repoFinderAvahiStop :: (HasCallStack, MonadIO m, IsRepoFinderAvahi a) => a -> m ()
Exported types
newtype RepoFinderAvahi Source #
Memory-managed wrapper type.
Constructors
RepoFinderAvahi (ManagedPtr RepoFinderAvahi) |
Instances
GObject RepoFinderAvahi Source # | |
Defined in GI.OSTree.Objects.RepoFinderAvahi Methods gobjectType :: RepoFinderAvahi -> IO GType | |
IsObject RepoFinderAvahi Source # | |
Defined in GI.OSTree.Objects.RepoFinderAvahi | |
IsRepoFinder RepoFinderAvahi Source # | |
Defined in GI.OSTree.Objects.RepoFinderAvahi | |
IsRepoFinderAvahi RepoFinderAvahi Source # | |
Defined in GI.OSTree.Objects.RepoFinderAvahi |
class GObject o => IsRepoFinderAvahi o Source #
Type class for types which can be safely cast to RepoFinderAvahi
, for instance with toRepoFinderAvahi
.
Instances
(GObject a, (UnknownAncestorError RepoFinderAvahi a :: Constraint)) => IsRepoFinderAvahi a Source # | |
Defined in GI.OSTree.Objects.RepoFinderAvahi | |
IsRepoFinderAvahi RepoFinderAvahi Source # | |
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
.
noRepoFinderAvahi :: Maybe RepoFinderAvahi Source #
A convenience alias for Nothing
:: Maybe
RepoFinderAvahi
.
Methods
new
repoFinderAvahiNew :: (HasCallStack, MonadIO m) => MainContext -> m RepoFinderAvahi Source #
No description available in the introspection data.
start
Arguments
:: (HasCallStack, MonadIO m, IsRepoFinderAvahi a) | |
=> a |
|
-> m () | (Can throw |
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: gi-ostree-2018.6
stop
Arguments
:: (HasCallStack, MonadIO m, IsRepoFinderAvahi a) | |
=> a |
|
-> 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: gi-ostree-2018.6