Show
Ignore:
Timestamp:
03/18/08 17:21:05 (21 months ago)
Author:
dsallings
Message:

Ensure all connection states are expressed as enums.

Function declarations should have parameter names.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/binary/server/memcached.h

    r752 r754  
    217217struct conn { 
    218218    int    sfd; 
    219     int    state; 
     219    enum conn_states  state; 
    220220    int    substate; 
    221221    struct event event; 
     
    315315char *do_add_delta(item *item, const bool incr, const int64_t delta, char *buf); 
    316316int do_store_item(item *item, int comm); 
    317 conn *conn_new(const int sfd, const int init_state, const int event_flags, const int read_buffer_size, enum protocol prot, struct event_base *base); 
     317conn *conn_new(const int sfd, const enum conn_states init_state, const int event_flags, const int read_buffer_size, enum protocol prot, struct event_base *base); 
    318318 
    319319 
     
    341341void thread_init(int nthreads, struct event_base *main_base); 
    342342int  dispatch_event_add(int thread, conn *c); 
    343 void dispatch_conn_new(int sfd, int init_state, int event_flags, int read_buffer_size, enum protocol prot); 
     343void dispatch_conn_new(int sfd, enum conn_states init_state, int event_flags, int read_buffer_size, enum protocol prot); 
    344344 
    345345/* Lock wrappers for cache functions that are called from main loop. */