2014-09-12 16:26:17 -04:00
|
|
|
/**
|
|
|
|
* @file
|
2014-01-15 20:40:24 -05:00
|
|
|
* Copyright 2014 (c) Anna Schumaker.
|
|
|
|
*/
|
2014-06-21 09:37:47 -04:00
|
|
|
#ifndef OCARINA_CORE_CALLBACK_H
|
|
|
|
#define OCARINA_CORE_CALLBACK_H
|
2014-01-15 20:40:24 -05:00
|
|
|
|
2014-06-05 10:19:22 -04:00
|
|
|
#include <core/library.h>
|
|
|
|
#include <core/queue.h>
|
2014-01-15 20:40:24 -05:00
|
|
|
|
|
|
|
|
2014-09-12 16:26:17 -04:00
|
|
|
/**
|
|
|
|
* A structure for managing callback function pointers
|
|
|
|
*/
|
2014-01-15 20:40:24 -05:00
|
|
|
struct Callbacks {
|
2014-01-30 22:31:36 -05:00
|
|
|
/* Deck callbacks */
|
2014-09-12 16:26:17 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Called when a queue is removed.
|
|
|
|
*
|
|
|
|
* @param queue The queue that is being removed.
|
|
|
|
*/
|
2014-04-01 20:28:19 -04:00
|
|
|
void (*on_pq_removed)(Queue *);
|
2014-01-30 22:31:36 -05:00
|
|
|
|
2014-01-15 20:40:24 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2014-09-12 16:26:17 -04:00
|
|
|
/**
|
|
|
|
* Called to access the callbacks structure.
|
|
|
|
*
|
|
|
|
* @return The current struct Callbacks for this application.
|
|
|
|
*/
|
2014-01-15 20:40:24 -05:00
|
|
|
struct Callbacks *get_callbacks();
|
|
|
|
|
|
|
|
|
2014-06-21 09:37:47 -04:00
|
|
|
#endif /* OCARINA_CORE_CALLBACK_H */
|