2004-11-25 09:50:18 +00:00
|
|
|
/*
|
2009-01-27 22:34:36 +00:00
|
|
|
* Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu>
|
2010-03-04 01:25:51 -05:00
|
|
|
* Copyright (c) 2007-2010 Niels Provos and Nick Mathewson
|
2004-11-25 09:50:18 +00:00
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* 3. The name of the author may not be used to endorse or promote products
|
|
|
|
* derived from this software without specific prior written permission.
|
2009-07-17 18:38:38 +00:00
|
|
|
*
|
2004-11-25 09:50:18 +00:00
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
|
|
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
|
|
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
|
|
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
|
|
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
|
|
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
|
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
#ifndef _EVENT_INTERNAL_H_
|
|
|
|
#define _EVENT_INTERNAL_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2010-07-07 16:45:03 -04:00
|
|
|
#include "event2/event-config.h"
|
2009-05-05 16:52:37 +00:00
|
|
|
#include <sys/queue.h>
|
|
|
|
#include "event2/event_struct.h"
|
2009-01-13 20:26:37 +00:00
|
|
|
#include "minheap-internal.h"
|
|
|
|
#include "evsignal-internal.h"
|
2007-11-25 17:14:19 +00:00
|
|
|
#include "mm-internal.h"
|
2009-07-26 01:29:39 +00:00
|
|
|
#include "defer-internal.h"
|
2007-03-10 06:37:53 +00:00
|
|
|
|
2008-05-03 21:37:33 +00:00
|
|
|
/* map union members back */
|
|
|
|
|
|
|
|
/* mutually exclusive */
|
|
|
|
#define ev_signal_next _ev.ev_signal.ev_signal_next
|
2008-12-23 16:37:01 +00:00
|
|
|
#define ev_io_next _ev.ev_io.ev_io_next
|
2009-01-22 02:33:38 +00:00
|
|
|
#define ev_io_timeout _ev.ev_io.ev_timeout
|
2008-05-03 21:37:33 +00:00
|
|
|
|
|
|
|
/* used only by signals */
|
|
|
|
#define ev_ncalls _ev.ev_signal.ev_ncalls
|
|
|
|
#define ev_pncalls _ev.ev_signal.ev_pncalls
|
|
|
|
|
2010-03-11 00:38:46 -05:00
|
|
|
/* Possible values for ev_closure in struct event. */
|
2009-05-15 18:44:44 +00:00
|
|
|
#define EV_CLOSURE_NONE 0
|
|
|
|
#define EV_CLOSURE_SIGNAL 1
|
|
|
|
#define EV_CLOSURE_PERSIST 2
|
|
|
|
|
2009-04-17 06:55:08 +00:00
|
|
|
/** Structure to define the backend of a given event_base. */
|
2007-11-25 06:57:59 +00:00
|
|
|
struct eventop {
|
2009-04-17 06:55:08 +00:00
|
|
|
/** The name of this backend. */
|
2007-11-25 06:57:59 +00:00
|
|
|
const char *name;
|
2010-03-11 00:38:46 -05:00
|
|
|
/** Function to set up an event_base to use this backend. It should
|
|
|
|
* create a new structure holding whatever information is needed to
|
|
|
|
* run the backend, and return it. The returned pointer will get
|
|
|
|
* stored by event_init into the event_base.evbase field. On failure,
|
|
|
|
* this function should return NULL. */
|
2007-11-25 06:57:59 +00:00
|
|
|
void *(*init)(struct event_base *);
|
2010-03-11 00:38:46 -05:00
|
|
|
/** Enable reading/writing on a given fd or signal. 'events' will be
|
|
|
|
* the events that we're trying to enable: one or more of EV_READ,
|
|
|
|
* EV_WRITE, EV_SIGNAL, and EV_ET. 'old' will be those events that
|
|
|
|
* were enabled on this fd previously. 'fdinfo' will be a structure
|
|
|
|
* associated with the fd by the evmap; its size is defined by the
|
|
|
|
* fdinfo field below. It will be set to 0 the first time the fd is
|
|
|
|
* added. The function should return 0 on success and -1 on error.
|
|
|
|
*/
|
2009-01-14 20:52:32 +00:00
|
|
|
int (*add)(struct event_base *, evutil_socket_t fd, short old, short events, void *fdinfo);
|
2010-03-11 00:38:46 -05:00
|
|
|
/** As "add", except 'events' contains the events we mean to disable. */
|
2009-01-14 20:52:32 +00:00
|
|
|
int (*del)(struct event_base *, evutil_socket_t fd, short old, short events, void *fdinfo);
|
2009-04-17 06:55:08 +00:00
|
|
|
/** Function to implement the core of an event loop. It must see which
|
|
|
|
added events are ready, and cause event_active to be called for each
|
2010-03-11 00:38:46 -05:00
|
|
|
active event (usually via event_io_active or such). It should
|
|
|
|
return 0 on success and -1 on error.
|
2009-04-17 06:55:08 +00:00
|
|
|
*/
|
2008-12-23 16:37:01 +00:00
|
|
|
int (*dispatch)(struct event_base *, struct timeval *);
|
2009-04-17 06:55:08 +00:00
|
|
|
/** Function to clean up and free our data from the event_base. */
|
2008-12-23 16:37:01 +00:00
|
|
|
void (*dealloc)(struct event_base *);
|
2010-03-11 00:38:46 -05:00
|
|
|
/** Flag: set if we need to reinitialize the event base after we fork.
|
|
|
|
*/
|
2007-11-25 06:57:59 +00:00
|
|
|
int need_reinit;
|
2010-03-11 00:38:46 -05:00
|
|
|
/** Bit-array of supported event_method_features that this backend can
|
|
|
|
* provide. */
|
2008-05-31 14:37:31 +00:00
|
|
|
enum event_method_feature features;
|
2010-03-11 00:38:46 -05:00
|
|
|
/** Length of the extra information we should record for each fd that
|
|
|
|
has one or more active events. This information is recorded
|
|
|
|
as part of the evmap entry for each fd, and passed as an argument
|
|
|
|
to the add and del functions above.
|
2009-04-17 06:55:08 +00:00
|
|
|
*/
|
2009-01-14 20:52:32 +00:00
|
|
|
size_t fdinfo_len;
|
2007-11-25 06:57:59 +00:00
|
|
|
};
|
|
|
|
|
2009-01-09 13:42:21 +00:00
|
|
|
#ifdef WIN32
|
2009-04-17 06:55:08 +00:00
|
|
|
/* If we're on win32, then file descriptors are not nice low densely packed
|
|
|
|
integers. Instead, they are pointer-like windows handles, and we want to
|
|
|
|
use a hashtable instead of an array to map fds to events.
|
|
|
|
*/
|
2009-01-09 13:42:21 +00:00
|
|
|
#define EVMAP_USE_HT
|
|
|
|
#endif
|
|
|
|
|
2010-01-25 13:44:56 -05:00
|
|
|
/* #define HT_CACHE_HASH_VALS */
|
|
|
|
|
2009-01-09 13:42:21 +00:00
|
|
|
#ifdef EVMAP_USE_HT
|
|
|
|
#include "ht-internal.h"
|
|
|
|
struct event_map_entry;
|
|
|
|
HT_HEAD(event_io_map, event_map_entry);
|
|
|
|
#else
|
|
|
|
#define event_io_map event_signal_map
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Used to map signal numbers to a list of events. If EVMAP_USE_HT is not
|
2010-03-11 00:38:46 -05:00
|
|
|
defined, this structure is also used as event_io_map, which maps fds to a
|
|
|
|
list of events.
|
2009-01-09 13:42:21 +00:00
|
|
|
*/
|
|
|
|
struct event_signal_map {
|
2010-03-11 00:38:46 -05:00
|
|
|
/* An array of evmap_io * or of evmap_signal *; empty entries are
|
|
|
|
* set to NULL. */
|
2008-12-25 09:22:13 +00:00
|
|
|
void **entries;
|
2010-03-11 00:38:46 -05:00
|
|
|
/* The number of entries available in entries */
|
2008-12-23 16:37:01 +00:00
|
|
|
int nentries;
|
|
|
|
};
|
|
|
|
|
2010-03-11 00:38:46 -05:00
|
|
|
/* A list of events waiting on a given 'common' timeout value. Ordinarily,
|
|
|
|
* events waiting for a timeout wait on a minheap. Sometimes, however, a
|
|
|
|
* queue can be faster.
|
|
|
|
**/
|
2009-11-09 17:16:30 +00:00
|
|
|
struct common_timeout_list {
|
2010-03-11 00:38:46 -05:00
|
|
|
/* List of events currently waiting in the queue. */
|
2009-11-09 17:16:30 +00:00
|
|
|
struct event_list events;
|
2010-03-11 00:38:46 -05:00
|
|
|
/* 'magic' timeval used to indicate the duration of events in this
|
|
|
|
* queue. */
|
2009-11-09 17:16:30 +00:00
|
|
|
struct timeval duration;
|
2010-03-11 00:38:46 -05:00
|
|
|
/* Event that triggers whenever one of the events in the queue is
|
|
|
|
* ready to activate */
|
2009-11-09 17:16:30 +00:00
|
|
|
struct event timeout_event;
|
2010-03-11 00:38:46 -05:00
|
|
|
/* The event_base that this timeout list is part of */
|
2009-11-09 17:16:30 +00:00
|
|
|
struct event_base *base;
|
|
|
|
};
|
|
|
|
|
2010-01-14 16:30:40 -05:00
|
|
|
struct event_change;
|
|
|
|
|
2010-03-11 00:38:46 -05:00
|
|
|
/* List of 'changes' since the last call to eventop.dispatch. Only maintained
|
|
|
|
* if the backend is using changesets. */
|
2010-01-14 16:30:40 -05:00
|
|
|
struct event_changelist {
|
|
|
|
struct event_change *changes;
|
|
|
|
int n_changes;
|
|
|
|
int changes_size;
|
|
|
|
};
|
|
|
|
|
2010-01-22 00:34:37 -05:00
|
|
|
#ifndef _EVENT_DISABLE_DEBUG_MODE
|
2010-03-11 00:38:46 -05:00
|
|
|
/* Global internal flag: set to one if debug mode is on. */
|
2010-01-22 00:34:37 -05:00
|
|
|
extern int _event_debug_mode_on;
|
2010-04-28 11:51:56 -04:00
|
|
|
#define EVENT_DEBUG_MODE_IS_ON() (_event_debug_mode_on)
|
|
|
|
#else
|
|
|
|
#define EVENT_DEBUG_MODE_IS_ON() (0)
|
2010-01-22 00:34:37 -05:00
|
|
|
#endif
|
|
|
|
|
2004-11-25 09:50:18 +00:00
|
|
|
struct event_base {
|
2009-04-17 06:55:08 +00:00
|
|
|
/** Function pointers and other data to describe this event_base's
|
|
|
|
* backend. */
|
2004-11-25 09:50:18 +00:00
|
|
|
const struct eventop *evsel;
|
2009-04-17 06:55:08 +00:00
|
|
|
/** Pointer to backend-specific data. */
|
2004-11-25 09:50:18 +00:00
|
|
|
void *evbase;
|
2008-12-23 16:37:01 +00:00
|
|
|
|
2010-01-14 16:30:40 -05:00
|
|
|
/** List of changes to tell backend about at next dispatch. Only used
|
|
|
|
* by the O(1) backends. */
|
|
|
|
struct event_changelist changelist;
|
|
|
|
|
2010-03-11 00:38:46 -05:00
|
|
|
/** Function pointers used to describe the backend that this event_base
|
|
|
|
* uses for signals */
|
2008-12-23 16:37:01 +00:00
|
|
|
const struct eventop *evsigsel;
|
2010-03-11 00:38:46 -05:00
|
|
|
/** Pointer to signal backend-specific data*/
|
2008-12-23 16:37:01 +00:00
|
|
|
void *evsigbase;
|
2010-03-11 00:38:46 -05:00
|
|
|
/** Data to implement the common signal handelr code. */
|
2008-12-23 22:23:37 +00:00
|
|
|
struct evsig_info sig;
|
2008-12-23 16:37:01 +00:00
|
|
|
|
2010-03-11 00:38:46 -05:00
|
|
|
/** Number of total events added to this event_base */
|
|
|
|
int event_count;
|
|
|
|
/** Number of total events active in this event_base */
|
|
|
|
int event_count_active;
|
2004-11-25 09:50:18 +00:00
|
|
|
|
2010-03-11 00:38:46 -05:00
|
|
|
/** Set if we should terminate the loop once we're done processing
|
|
|
|
* events. */
|
|
|
|
int event_gotterm;
|
|
|
|
/** Set if we should terminate the loop immediately */
|
|
|
|
int event_break;
|
2004-11-25 09:50:18 +00:00
|
|
|
|
2010-03-21 13:28:48 -04:00
|
|
|
/** Set if we're running the event_base_loop function, to prevent
|
|
|
|
* reentrant invocation. */
|
|
|
|
int running_loop;
|
|
|
|
|
2009-04-17 06:55:08 +00:00
|
|
|
/* Active event management. */
|
|
|
|
/** An array of nactivequeues queues for active events (ones that
|
|
|
|
* have triggered, and whose callbacks need to be called). Low
|
|
|
|
* priority numbers are more important, and stall higher ones.
|
|
|
|
*/
|
Change event_base.activequeues to "array of eventlist".
Previously, event_base.activequeues was of type "array of pointers to
eventlist." This was pointless: none of the eventlists were allowed
to be NULL. Worse, it was inefficient:
- It made looking up an active event queue take two pointer
deferences instead of one, thus risking extra cache misses.
- It used more RAM than it needed to, because of the extra pointer
and the malloc overhead.
Also, this patch fixes a bug where we were saying
calloc(N,N*sizeof(X)) instead of calloc(N,sizeof(X)) when allocating
activequeues. That part, I'll backport.
Also, we warn and return -1 on failure to allocate activequeues,
rather than calling event_err.
svn:r1525
2009-11-09 19:37:27 +00:00
|
|
|
struct event_list *activequeues;
|
2010-03-11 00:38:46 -05:00
|
|
|
/** The length of the activequeues array */
|
2004-11-25 09:50:18 +00:00
|
|
|
int nactivequeues;
|
|
|
|
|
2010-03-11 00:38:46 -05:00
|
|
|
/* common timeout logic */
|
|
|
|
|
|
|
|
/** An array of common_timeout_list* for all of the common timeout
|
|
|
|
* values we know. */
|
2009-11-09 17:16:30 +00:00
|
|
|
struct common_timeout_list **common_timeout_queues;
|
2010-03-11 00:38:46 -05:00
|
|
|
/** The number of entries used in common_timeout_queues */
|
2009-11-09 17:16:30 +00:00
|
|
|
int n_common_timeouts;
|
2010-03-11 00:38:46 -05:00
|
|
|
/** The total size of common_timeout_queues. */
|
2009-11-09 17:16:30 +00:00
|
|
|
int n_common_timeouts_allocated;
|
|
|
|
|
2009-07-14 16:54:48 +00:00
|
|
|
/** The event whose callback is executing right now */
|
|
|
|
struct event *current_event;
|
|
|
|
|
2010-03-11 00:38:46 -05:00
|
|
|
/** List of defered_cb that are active. We run these after the active
|
|
|
|
* events. */
|
2009-07-26 01:29:39 +00:00
|
|
|
struct deferred_cb_queue defer_queue;
|
2009-04-10 14:22:33 +00:00
|
|
|
|
2010-03-11 00:38:46 -05:00
|
|
|
/** Mapping from file descriptors to enabled (added) events */
|
|
|
|
struct event_io_map io;
|
2008-12-23 16:37:01 +00:00
|
|
|
|
2010-03-11 00:38:46 -05:00
|
|
|
/** Mapping from signal numbers to enabled (added) events. */
|
2009-01-09 13:42:21 +00:00
|
|
|
struct event_signal_map sigmap;
|
2007-03-10 06:37:53 +00:00
|
|
|
|
2009-04-17 06:55:08 +00:00
|
|
|
/** All events that have been enabled (added) in this event_base */
|
2004-11-25 09:50:18 +00:00
|
|
|
struct event_list eventqueue;
|
2009-04-17 06:55:08 +00:00
|
|
|
|
2010-03-11 00:38:46 -05:00
|
|
|
/** Stored timeval; used to detect when time is running backwards. */
|
2004-11-25 09:50:18 +00:00
|
|
|
struct timeval event_tv;
|
|
|
|
|
2009-04-17 06:55:08 +00:00
|
|
|
/** Priority queue of events with timeouts. */
|
2007-11-03 18:04:53 +00:00
|
|
|
struct min_heap timeheap;
|
2008-03-02 21:18:33 +00:00
|
|
|
|
2010-03-11 00:38:46 -05:00
|
|
|
/** Stored timeval: used to avoid calling gettimeofday too often. */
|
2008-05-03 18:23:44 +00:00
|
|
|
struct timeval tv_cache;
|
2009-01-19 20:37:24 +00:00
|
|
|
|
2009-02-12 22:19:54 +00:00
|
|
|
#ifndef _EVENT_DISABLE_THREAD_SUPPORT
|
2008-03-02 21:18:33 +00:00
|
|
|
/* threading support */
|
2009-04-17 06:55:08 +00:00
|
|
|
/** The thread currently running the event_loop for this base */
|
2008-03-02 21:18:33 +00:00
|
|
|
unsigned long th_owner_id;
|
2009-04-17 06:55:08 +00:00
|
|
|
/** A lock to prevent conflicting accesses to this event_base */
|
2008-03-10 03:17:20 +00:00
|
|
|
void *th_base_lock;
|
2009-07-14 16:54:48 +00:00
|
|
|
/** A lock to prevent event_del from deleting an event while its
|
|
|
|
* callback is executing. */
|
|
|
|
void *current_event_lock;
|
2009-02-12 22:19:54 +00:00
|
|
|
#endif
|
2009-01-19 20:37:24 +00:00
|
|
|
|
2009-05-05 14:18:14 +00:00
|
|
|
#ifdef WIN32
|
2010-03-11 00:38:46 -05:00
|
|
|
/** IOCP support structure, if IOCP is enabled. */
|
2009-05-05 14:18:14 +00:00
|
|
|
struct event_iocp_port *iocp;
|
|
|
|
#endif
|
|
|
|
|
2010-03-11 00:38:46 -05:00
|
|
|
/** Flags that this base was configured with */
|
2010-02-18 17:41:15 -05:00
|
|
|
enum event_base_config_flag flags;
|
2009-11-09 18:30:33 +00:00
|
|
|
|
2009-01-19 20:37:24 +00:00
|
|
|
/* Notify main thread to wake up break, etc. */
|
2010-03-11 00:38:46 -05:00
|
|
|
/** A socketpair used by some th_notify functions to wake up the main
|
|
|
|
* thread. */
|
2008-03-02 21:18:33 +00:00
|
|
|
int th_notify_fd[2];
|
2010-03-11 00:38:46 -05:00
|
|
|
/** An event used by some th_notify functions to wake up the main
|
|
|
|
* thread. */
|
2008-03-02 21:18:33 +00:00
|
|
|
struct event th_notify;
|
2010-03-11 00:38:46 -05:00
|
|
|
/** A function used to wake up the main thread from another thread. */
|
2009-01-19 20:37:24 +00:00
|
|
|
int (*th_notify_fn)(struct event_base *base);
|
2004-11-25 09:50:18 +00:00
|
|
|
};
|
|
|
|
|
2008-05-08 05:56:20 +00:00
|
|
|
struct event_config_entry {
|
2010-08-13 17:08:59 -04:00
|
|
|
TAILQ_ENTRY(event_config_entry) next;
|
2008-05-08 05:56:20 +00:00
|
|
|
|
|
|
|
const char *avoid_method;
|
|
|
|
};
|
|
|
|
|
2009-04-17 06:55:08 +00:00
|
|
|
/** Internal structure: describes the configuration we want for an event_base
|
|
|
|
* that we're about to allocate. */
|
2008-05-08 05:56:20 +00:00
|
|
|
struct event_config {
|
|
|
|
TAILQ_HEAD(event_configq, event_config_entry) entries;
|
2008-05-31 14:37:31 +00:00
|
|
|
|
|
|
|
enum event_method_feature require_features;
|
2010-02-18 17:41:15 -05:00
|
|
|
enum event_base_config_flag flags;
|
2008-05-08 05:56:20 +00:00
|
|
|
};
|
|
|
|
|
2007-11-07 06:01:57 +00:00
|
|
|
/* Internal use only: Functions that might be missing from <sys/queue.h> */
|
2010-02-25 16:57:57 -05:00
|
|
|
#if defined(_EVENT_HAVE_SYS_QUEUE_H) && !defined(_EVENT_HAVE_TAILQFOREACH)
|
2007-11-07 06:01:57 +00:00
|
|
|
#define TAILQ_FIRST(head) ((head)->tqh_first)
|
|
|
|
#define TAILQ_END(head) NULL
|
|
|
|
#define TAILQ_NEXT(elm, field) ((elm)->field.tqe_next)
|
|
|
|
#define TAILQ_FOREACH(var, head, field) \
|
2010-02-19 03:39:50 -05:00
|
|
|
for ((var) = TAILQ_FIRST(head); \
|
|
|
|
(var) != TAILQ_END(head); \
|
|
|
|
(var) = TAILQ_NEXT(var, field))
|
2007-11-07 06:01:57 +00:00
|
|
|
#define TAILQ_INSERT_BEFORE(listelm, elm, field) do { \
|
|
|
|
(elm)->field.tqe_prev = (listelm)->field.tqe_prev; \
|
|
|
|
(elm)->field.tqe_next = (listelm); \
|
|
|
|
*(listelm)->field.tqe_prev = (elm); \
|
|
|
|
(listelm)->field.tqe_prev = &(elm)->field.tqe_next; \
|
|
|
|
} while (0)
|
|
|
|
#endif /* TAILQ_FOREACH */
|
|
|
|
|
2009-07-26 01:29:39 +00:00
|
|
|
#define N_ACTIVE_CALLBACKS(base) \
|
|
|
|
((base)->event_count_active + (base)->defer_queue.active_count)
|
|
|
|
|
2008-12-23 22:23:37 +00:00
|
|
|
int _evsig_set_handler(struct event_base *base, int evsignal,
|
2007-11-25 17:15:28 +00:00
|
|
|
void (*fn)(int));
|
2008-12-23 22:23:37 +00:00
|
|
|
int _evsig_restore_handler(struct event_base *base, int evsignal);
|
2007-11-25 17:15:28 +00:00
|
|
|
|
2009-10-27 05:16:32 +00:00
|
|
|
void event_active_nolock(struct event *ev, int res, short count);
|
|
|
|
|
2004-11-25 09:50:18 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _EVENT_INTERNAL_H_ */
|
2009-02-12 22:19:54 +00:00
|
|
|
|