[ffmemless] Add missing function declaration

The ffmemless_erase_effect function declaration was missing
from the header file. Added so that the function can be used.

Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@jollamobile.com>
[ffmemless] Clear old effect before uploading new

If a effect with different type than an existing effect in kernel
is uploaded with same id, the effect loading fails. Solved this by
deleting the old effect before uploading new ones.

Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@jollamobile.com>
[mce] Complete event playback immediately.
Merge pull request #25 from jusa/dev

Complete mce event playback immediately.
Merge pull request #24 from kjokinie/master

Clear old effect before uploading new
[profile] Follow touch vibration level setting in profiles

To be able to follow touch vibration level setting in other
plugins, add it to the profile values that get tracked.

Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@jollamobile.com>
[ffmemless] Fix odd debug print to be more comprehensible

Changed "not enabled" to "disabled" in debug print, looks much
more comprehensible.

Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@jollamobile.com>
[ffmemless] Allow effects to be defined as touch screen related

Added new configuration option for effects that allow them to be
classified as touch screen related. For touch screen related effects
the touchscreen.vibrate.level is followed to determine if the effect
should be played or not.

The option can be enabled in ffmemless configuration file by adding
a "_TOUCH" postfixed configuration line. E.g. one could define NGF_SHORT
to be a touch screen related effect by adding to the .ini file:

NGF_SHORT_TOUCH = 1

Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@jollamobile.com>
Merge pull request #26 from kjokinie/master

Allow ffmemless effects to be categorized as touch screen related
[packaging] Fix test package dependencies

ngfd-plugin-fake is needed by test-plugin.
[gst] Fake play if sound is disabled with sound.enabled

    If sound is not enabled, fake play.
    Pipeline is not created and sound file is not played.
Merge pull request #28 from tihonko/dev

[gst] Fake play if sound is disabled with sound.enabled
Merge pull request #27 from martyone/fix-tests

[packaging] Fix test package dependencies
[canberra] Fix memory leak and optimize silent playback.

If event has sound.volume property with value 0, don't really play the
sample but call complete immediately.

Also previously canberra plugin called n_sink_interface_complete() from
canberra_sink_play() where the request is not yet in playing state and
calling complete doesn't do anything. Added completion callback which is
called after plugin is in playing state.
Merge pull request #29 from jusa/dev

Fix memory leak and optimize silent playback in canberra plugin
[callstate] Add callstate plugin so call state can be accessed

To properly handle notifications during calls, the call state
plugin is needed to monitor current call state. Added callstate
to optional plugins list in default ngfd.ini.

Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@jollamobile.com>
[ffmemless] Don't vibrate if a call is ongoing.

Getting an calendar alarm vibration or an incoming call vibration
during a voice call can be hugely disturbing. Check call state and
don't vibrate if a call is active.

Signed-off-by: Kalle Jokiniemi <kalle.jokiniemi@jollamobile.com>
Merge pull request #30 from kjokinie/master

Add proper call state handling for vibra.