Lfb – 0.0
Description: Reference for Lfb-0.0

### Namespace

# Lfb – 0.0

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

Version | 0.8.9
Authors | Purism SPC
License | LGPL-2.1-or-later
Website | https://gitlab.freedesktop.org/agx/feedbackd/
Source | https://gitlab.freedesktop.org/agx/feedbackd/

#### Build

C headers | `libfeedback.h`
pkg-config files | `libfeedback-0.0`

#### Dependencies

#### Additional documentation

- Overview
- Compiling with libfeedback
- Initialization
- Event Naming Specification
- Feedback Theme Specification
- Classes Hierarchy

#### Classes

Event | An event triggering feedback to the user.
GdbusFeedbackHapticProxy | The `LfbGdbusFeedbackHapticProxy` structure contains only private data and should only be accessed using the provided API.
GdbusFeedbackHapticSkeleton | The `LfbGdbusFeedbackHapticSkeleton` structure contains only private data and should only be accessed using the provided API.
GdbusFeedbackProxy | The `LfbGdbusFeedbackProxy` structure contains only private data and should only be accessed using the provided API.
GdbusFeedbackSkeleton | The `LfbGdbusFeedbackSkeleton` structure contains only private data and should only be accessed using the provided API.

#### Interfaces

GdbusFeedback | Abstract interface type for the D-Bus interface org.sigxcpu.Feedback.
GdbusFeedbackHaptic | Abstract interface type for the D-Bus interface org.sigxcpu.Feedback.Haptic.

#### Enumerations

EventEndReason | Enum values used to indicate why the feedbacks for an event ended.
EventState | Enum values to indicate the current state of the feedbacks triggered by an event.

#### Functions

get_app_id | Get the application id set via `lfb_set_app_id()`.
get_feedback_profile | Gets the currently set feedback profile.
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.
init | Initialize libfeedback. This must be called before any other of libfeedback’s functions.
is_initted | Gets whether or not libfeedback is initialized.
set_app_id | Sets the application id.
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 `LfbGdbusFeedback`‘s ::profile property to get notified when it takes effect.
uninit | Uninitialize the library when no longer used. Usually called on program shutdown.