Skip to content

Instantly share code, notes, and snippets.

@williamspatrick
Created October 9, 2016 21:41
Show Gist options
  • Save williamspatrick/63b0e02df1260e3922287555df4d1a7c to your computer and use it in GitHub Desktop.
Save williamspatrick/63b0e02df1260e3922287555df4d1a7c to your computer and use it in GitHub Desktop.

net.poettering.Calculator

An example interface originally described as part of the announcment of new sd-bus interfaces at: http://0pointer.net/blog/the-new-sd-bus-api-of-systemd.html

Methods

Multiply

Multiplies two integers 'x' and 'y' and returns the result.

Parameters and Returns

direction name type description
in x integer The first integer to multiply.
in y integer The second integer to multiply.
out z integer The result of (x*y).

Divide

Divides two integers 'x' and 'y' and returns the result.

Parameters and Returns

direction name type description
in x integer The first integer to divide.
in y integer The second integer to divide.
out z integer The result of (x/y).

Clear

Reset the LastResult property to zero.

Properties

name type description
LastResult integer The result of the most recent calculation.

Signals

Cleared

Signal indicating the LastReset property has been set to zero by the 'Clear' method.

Properties

name type description
unnamed integer Value of LastReset prior to Clear.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment