Namespace

Lfb – 0.0

A library to trigger feedback (such as haptic feedback) via events sent by your application.

Version0.3.0
AuthorsPurism SPC
LicenseLGPL-2.1-or-later
Websitehttps://source.puri.sm/Librem5/feedbackd/
Sourcehttps://source.puri.sm/Librem5/feedbackd/

Build

C headerslibfeedback.h
pkg-config fileslibfeedback-0.0

Dependencies

Classes

Event

An event triggering feedback to the user.

since: 0.0

GdbusFeedbackProxy

The LfbGdbusFeedbackProxy structure contains only private data and should only be accessed using the provided API.

since: 0.0

GdbusFeedbackSkeleton

The LfbGdbusFeedbackSkeleton structure contains only private data and should only be accessed using the provided API.

since: 0.0

Interfaces

GdbusFeedback

Abstract interface type for the D-Bus interface org.sigxcpu.Feedback.

since: 0.0

Enumerations

EventEndReason

Enum values used to indicate why the feedbacks for an event ended.

since: 0.0

EventState

Enum values to indicate the current state of the feedbacks triggered by an event.

since: 0.0

Functions

get_app_id

Get the application id set via lfb_set_app_id().

since: 0.0

get_feedback_profile

Gets the currently set feedback profile.

since: 0.0

get_proxy

This can be used to access the lower level API e.g. to listen to property changes. The object is not owned by the caller. Don’t unref it after use.

since: 0.0

init

Initialize libfeedback. This must be called before any other of libfeedback’s functions.

since: 0.0

is_initted

Gets whether or not libfeedback is initialized.

since: 0.0

set_app_id

Sets the application id.

since: 0.0

set_feedback_profile

Sets the active feedback profile to #profile. It is up to the feedback daemon to ignore this request. The new profile might not become active immediately. You can listen to changes LfbGdbusFeedbacks ::profile property to get notified when it takes effect.

since: 0.0

uninit

Uninitialize the library when no longer used. Usually called on program shutdown.

since: 0.0