Lines Matching defs:event
46 * Implementation of event notification mechanism used by the GUI and
49 * and applications block waiting for a new event to be delivered in
51 * one per event client. The event mechanism has to be resilient to
52 * nwamd restarts so that clients do not lose the event connection.
81 nwam_event_free(nwam_event_t event)
83 if (event != NULL)
84 free(event);
88 * Get next event in queue.
94 nwam_event_t event;
98 if ((err = nwam_event_alloc(&event)) != NWAM_SUCCESS)
100 while (msgrcv(event_msqid, (struct msgbuf *)event, NWAM_EVENT_MAX_SIZE,
115 nwam_event_free(event);
120 /* Resize event down from maximum size */
121 if ((*eventp = realloc(event, event->nwe_size)) == NULL)
195 * Create an event queue. Called by nwamd to create System V message queues
218 * Send event to registered listeners via the set of registered System V
222 nwam_event_send(nwam_event_t event)
237 * For each file matching our event message queue file prefix,
289 if (msgsnd(msqid, (struct msgbuf *)event, event->nwe_size,
307 * Destroy an event queue. Called by nwamd to destroy the associated message
341 * For each file matching our event message queue file prefix,