Module l2dbus-glib

The L2DBUS Glib main loop implementation.

This module provides the main-loop abstraction around the Glib library.

Functions

getVersion ()
MainLoop.new (loop)

Tables

mainLoopGlibVersionInfo Glib main loop module version table.


Functions

getVersion ()

Returns version information about the L2DBUS Glib module.

This function returns a table containing useful version information related to the module itself and underlying libraries.

Returns:

    table mainLoopGlibVersionInfo
MainLoop.new (loop)

Creates a new L2DBUS Glib-based main loop.

Constructs a new main loop using an (optionally) provided lightuserdata item referencing a Glib main loop, or if none is provided, internally utilize the default Glib main loop to handle events. Any lightuserdata that is passed into this constructor that references a Glib main loop is not owned by this object and will not be de-allocated when it is collected by the Lua garbage collector. It is the responsibility of the caller to dispose of the loop appropriately at program termination as well as keep a reference to it during program operation so it is not prematurely collected by the Lua garbage collector.

See Glib documentation for additional information on the underlying main loop library.

Parameters:

  • loop lightuserdata or nil Optional raw Glib main loop pointer passed as a lightuserdata. If nil is specified instead then the default Glib main loop will be used. This is generally the recommended approach.

Returns:

    userdata MainLoop userdata object

Tables

mainLoopGlibVersionInfo
Glib main loop module version table.

A table containing version information for the Glib-based main loop module.

Fields:

  • glibMajorLink The major version of the linked Glib library.
  • glibMinorLink The minor version of the linked Glib library.
  • glibReleaseLink The release version of the linked Glib library.
  • glibMajorCompiled The major version of the compiled against Glib library.
  • glibMinorCompiled The minor version of the compiled against Glib library.
  • glibReleaseCompiled The release version of the compiled against Glib library.
  • mainLoopGlibMajor The libev main loop major version.
  • mainLoopGlibMinor The libev main loop minor version.
  • mainLoopGlibRelease The libev main loop release version.
  • copyright The L2DBUS Glib main loop module copyright information.
  • author The L2DBUS Glib main loop author information.
generated by LDoc 1.3