37 lines
610 B
C
37 lines
610 B
C
/**
|
|
* @file
|
|
* Copyright 2014 (c) Anna Schumaker.
|
|
*/
|
|
#ifndef OCARINA_CORE_CALLBACK_H
|
|
#define OCARINA_CORE_CALLBACK_H
|
|
|
|
#include <core/library.h>
|
|
#include <core/queue.h>
|
|
|
|
|
|
/**
|
|
* A structure for managing callback function pointers
|
|
*/
|
|
struct Callbacks {
|
|
/* Deck callbacks */
|
|
|
|
/**
|
|
* Called when a queue is removed.
|
|
*
|
|
* @param queue The queue that is being removed.
|
|
*/
|
|
void (*on_pq_removed)(Queue *);
|
|
|
|
};
|
|
|
|
|
|
/**
|
|
* Called to access the callbacks structure.
|
|
*
|
|
* @return The current struct Callbacks for this application.
|
|
*/
|
|
struct Callbacks *get_callbacks();
|
|
|
|
|
|
#endif /* OCARINA_CORE_CALLBACK_H */
|