callbacks: Remove info from DESIGN file
The description is way out of date, so let's just remove it now. Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
parent
0abc562033
commit
4e5566627c
22
DESIGN
22
DESIGN
|
@ -41,25 +41,3 @@ Core Layers:
|
||||||
* File (include/core/file.h)
|
* File (include/core/file.h)
|
||||||
* Callbacks (include/core/callback.h)
|
* Callbacks (include/core/callback.h)
|
||||||
* Version (include/core/version.h)
|
* Version (include/core/version.h)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Callbacks:
|
|
||||||
Callbacks are used to notify a unit test or the gui that something in
|
|
||||||
the backend has changed. The callbacks structure should be initialized
|
|
||||||
with no-op default values and filled in by the user through the
|
|
||||||
get_callbacks() function.
|
|
||||||
|
|
||||||
|
|
||||||
- Callback functions:
|
|
||||||
struct Callbacks {
|
|
||||||
void (*on_library_add)(unsigned int, library :: Library *);
|
|
||||||
void (*on_library_update)(unsigned int, library :: Library *);
|
|
||||||
void (*on_library_track_add)();
|
|
||||||
};
|
|
||||||
|
|
||||||
static struct Callbacks callbacks;
|
|
||||||
|
|
||||||
- API:
|
|
||||||
struct Callbacks *get_callbacks();
|
|
||||||
Return the Callbacks structure;
|
|
||||||
|
|
Loading…
Reference in New Issue