src/lib/sock_internal.h
branchnew-lib-errors
changeset 219 cefec18b8268
parent 155 c59d3eaff0fb
equal deleted inserted replaced
218:5229a5d098b2 219:cefec18b8268
       
     1 #ifndef SOCK_INTERNAL_H
       
     2 #define SOCK_INTERNAL_H
       
     3 
       
     4 /**
       
     5  * @file
       
     6  *
       
     7  * internal sock_* interface
       
     8  */
       
     9 #include "sock.h"
       
    10 
       
    11 /**
       
    12  * Global sock_stream_ctx used for sock_init() and all sock_stream's
       
    13  */
       
    14 extern struct sock_stream_ctx {
       
    15     /** libevent core */
       
    16     struct event_base *ev_base;
       
    17 
       
    18 } _sock_stream_ctx;
       
    19 
       
    20 #endif /* SOCK_INTERNAL_H */