"Fossies" - the Fresh Open Source Software Archive

Member "opensips-3.0.1/poll_types.h" (16 Apr 2019, 1544 Bytes) of package /linux/misc/opensips-3.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "poll_types.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (C) 2005 iptelorg GmbH
    3  *
    4  * This file is part of opensips, a free SIP server.
    5  *
    6  * opensips is free software; you can redistribute it and/or modify
    7  * it under the terms of the GNU General Public License as published by
    8  * the Free Software Foundation; either version 2 of the License, or
    9  * (at your option) any later version
   10  *
   11  * opensips is distributed in the hope that it will be useful,
   12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14  * GNU General Public License for more details.
   15  *
   16  * You should have received a copy of the GNU General Public License
   17  * along with this program; if not, write to the Free Software
   18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
   19  */
   20 
   21 /*!
   22  * \file
   23  * \brief IO wait poll methods (enum, strings, related function)
   24  * see \ref io_wait.h for more details
   25  */
   26 
   27 
   28 #ifndef _poll_types_h
   29 #define _poll_types_h
   30 
   31 enum poll_types { POLL_NONE, POLL_POLL, POLL_EPOLL,
   32                     POLL_SIGIO_RT, POLL_SELECT, POLL_KQUEUE, POLL_DEVPOLL,
   33                     POLL_END};
   34 
   35 /* all the function and vars are defined in io_wait.c */
   36 
   37 extern char* poll_method_str[POLL_END];
   38 extern char* poll_support;
   39 
   40 
   41 enum poll_types choose_poll_method();
   42 
   43 /* returns 0 on success, and an error message on error */
   44 char* check_poll_method(enum poll_types poll_method);
   45 
   46 char* poll_method_name(enum poll_types poll_method);
   47 enum poll_types get_poll_type(char* s);
   48 
   49 void fix_poll_method( enum poll_types *poll_method );
   50 
   51 
   52 #endif