"Fossies" - the Fresh Open Source Software Archive

Member "opensips-3.0.1/modules/event_flatstore/event_flatstore.h" (16 Apr 2019, 1444 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 "event_flatstore.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (C) 2015 OpenSIPS Project
    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  * history:
   22  * ---------
   23  *  2015-06-20  created  by Ionel Cerghit, Robert-Vladut Patrascu, Marius Cristian Eseanu
   24  */
   25 
   26 #ifndef _EV_FLAT_H_
   27 #define _EV_FLAT_H_
   28 
   29 #include "../../str.h"
   30 
   31 #define FLAT_NAME   "flatstore"
   32 #define FLAT_STR        { FLAT_NAME, sizeof(FLAT_NAME) - 1}
   33 #define FLAT_FLAG (1<<25)
   34 
   35 #define FLAT_DEFAULT_MAX_FD 100
   36 
   37 struct flat_socket {
   38     str path;
   39     unsigned int file_index_process;
   40     unsigned int counter_open;
   41     unsigned int rotate_version;
   42     struct flat_socket *next;
   43     struct flat_socket *prev;
   44 
   45 };
   46 
   47 struct flat_deleted {
   48     struct flat_socket *socket;
   49     struct flat_deleted *next;
   50 };
   51 
   52 
   53 #endif