Expand examples

Closes: #4
This commit is contained in:
Guido Günther
2020-02-25 18:37:23 +01:00
parent a2e86bd277
commit 524ed476a2
2 changed files with 43 additions and 11 deletions
+5 -5
View File
@@ -16,9 +16,11 @@
*
* To use the library call #lfb_init() with the id of your application
* (usually the desktop file name without the .desktop extension).
* When done call #lfb_uninit() to free any resources.
* After initializing the library you can trigger feedback using
* #LfbEvent objects. When your application finishes call
* #lfb_uninit() to free any resources:
*
* |[
* |[<!-- language="C" -->
* #define LIBFEEDBACK_USE_UNSTABLE_API
* #include <libfeedback.h>
*
@@ -28,9 +30,7 @@
* if (lfb_init ("com.example.appid", &err)) {
* g_error ("%s", err->message);
* }
* // run your application, emit events
* // ...
* // when done:
* ...
* lfb_uninit ();
* return 0;
* }