subject.c
403 Bytes
#include "class.h"
#include "interface/subject.h"
const struct interface i_Subject = {
"subject",
3
};
void
subjectAttach(void * subject, void * observer)
{
CALL(subject, Subject, attach, observer);
}
void
subjectDetach(void * subject, void * observer)
{
CALL(subject, Subject, detach, observer);
}
void
subjectNotify(void * subject)
{
CALL(subject, Subject, notify);
}
// vim: set ts=4 sw=4: