package ocgtk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Wrappers.D_bus_server

type t = [ `d_bus_server | `object_ ] Gobject.obj
val new_sync : string -> Gio_enums.dbusserverflags -> string -> [ `d_bus_auth_observer | `object_ ] Gobject.obj option -> [ `cancellable | `object_ ] Gobject.obj option -> (t, GError.t) result

Create a new DBusServer

val stop : t -> unit

Stops @server.

val start : t -> unit

Starts @server.

val is_active : t -> bool

Gets whether @server is active.

val get_guid : t -> string

Gets the GUID for @server, as provided to g_dbus_server_new_sync().

val get_flags : t -> Gio_enums.dbusserverflags

Gets the flags for @server.

val get_client_address : t -> string

Gets a D-Bus address(https://dbus.freedesktop.org/doc/dbus-specification.html#addresses) string that can be used by clients to connect to @server.

This is valid and non-empty if initializing the #GDBusServer succeeded.

val get_active : t -> bool

Get property: active

val get_address : t -> string

Get property: address

val get_authentication_observer : t -> [ `d_bus_auth_observer | `object_ ] Gobject.obj

Get property: authentication-observer

val on_new_connection : ?after:bool -> t -> callback:(connection:[ `d_bus_connection | `object_ ] Gobject.obj -> bool) -> Gobject.Signal.handler_id