#include <stdint.h>
Go to the source code of this file.
typedef void(* temu_NotificationHandler)(void *Arg, void *Source, void *NotInfo) |
void temu_notify |
( |
int64_t |
Id, |
|
|
void * |
NotInfo |
|
) |
| |
Call event subscriber, EvInfo is a per event specific struct the event handler must cast this to the appropriate type.
int64_t temu_publishNotification |
( |
const char * |
NotName, |
|
|
void * |
Obj |
|
) |
| |
Publish a notification source A notification source is identified by an event name and an object pointer
- Returns
- Notification ID of the published event.
Install notification functions for the given event generated by source.
- Parameters
-
Source | If source is NULL, the event subscriber will be notified by all the sources for the given name. |
Remove notification handler for the given name and source. Note that this function runs in O(N) time. It is not ment for being used in performance critical code.