message: Improve enum defs, add SW_EVENT_NULL, SW_EVENT_RDWR, remove useless swTimer types.
diff: @@ -306,9 +306,11 @@ enum swBool_type
  enum swEvent_type
  {
  - SW_EVENT_DEAULT = 256,
  + SW_EVENT_NULL = 0,
  + SW_EVENT_DEAULT = 1u << 8,
  SW_EVENT_READ = 1u << 9,
  SW_EVENT_WRITE = 1u << 10,
  + SW_EVENT_RDWR = SW_EVENT_READ | SW_EVENT_WRITE,
  SW_EVENT_ERROR = 1u << 11,
  SW_EVENT_ONCE = 1u << 12,
  };
  @@ -2034,6 +2036,12 @@ typedef struct _swTimer_node swTimer_node;
  typedef void (*swTimerCallback)(swTimer *, swTimer_node *);
  typedef void (*swTimerDtor)(swTimer_node *);
  +enum swTimer_type
  +{
  + SW_TIMER_TYPE_KERNEL,
  + SW_TIMER_TYPE_PHP,
  +};
  +
  struct _swTimer_node
  {
  swHeap_node *heap_node;
  @@ -2043,19 +2051,10 @@ struct _swTimer_node
  int64_t interval;
  uint64_t round;
  long id;
  - int type; //0 normal node 1 node for client_coro
  + enum swTimer_type type;
  uint8_t remove;
  };
  -enum swTimer_type
  -{
  - SW_TIMER_TYPE_KERNEL,
  - SW_TIMER_TYPE_PHP,
  - SW_TIMER_TYPE_CORO_READ,
  - SW_TIMER_TYPE_CORO_WRITE,
  - SW_TIMER_TYPE_CORO_ALL,
  -};
  -
  struct _swTimer
  {
  /*--------------signal timer--------------*/
  