|
Server 0.0.1
HTTP/REST server implementation
|
00001 00024 #ifndef __SUBJECT_H__ 00025 #define __SUBJECT_H__ 00026 00027 typedef void (* fptr_subjectAttach)(void *, void *); 00028 typedef void (* fptr_subjectDetach)(void *, void *); 00029 typedef void (* fptr_subjectNotify)(void *); 00030 00031 extern const struct interface i_Subject; 00032 00033 struct i_Subject { 00034 const struct interface * const _; 00035 fptr_subjectAttach attach; 00036 fptr_subjectDetach detach; 00037 fptr_subjectNotify notify; 00038 }; 00039 00040 extern void subjectAttach(void *, void *); 00041 extern void subjectDetach(void *, void *); 00042 extern void subjectNotify(void *); 00043 00044 #endif // __SUBJECT_H__ 00045 00046 // vim: set ts=4 sw=4: