ms_msg_list.c File Reference

#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include "../../mem/mem.h"
#include "../../mem/shm_mem.h"
#include "../../dprint.h"
#include "ms_msg_list.h"

Include dependency graph for ms_msg_list.c:

Go to the source code of this file.

Functions

int msg_list_check (msg_list ml)
int msg_list_check_msg (msg_list ml, int mid)
void msg_list_el_free (msg_list_el mle)
void msg_list_el_free_all (msg_list_el mle)
msg_list_el msg_list_el_new (void)
void msg_list_free (msg_list ml)
msg_list msg_list_init (void)
msg_list_el msg_list_reset (msg_list ml)
int msg_list_set_flag (msg_list ml, int mid, int fl)


Function Documentation

int msg_list_check ( msg_list  ml  ) 

int msg_list_check_msg ( msg_list  ml,
int  mid 
)

void msg_list_el_free ( msg_list_el  mle  ) 

free an element

Definition at line 60 of file ms_msg_list.c.

References shm_free.

Referenced by msg_list_el_free_all(), and msg_list_free().

void msg_list_el_free_all ( msg_list_el  mle  ) 

free a list of elements

Definition at line 69 of file ms_msg_list.c.

References msg_list_el_free(), and _msg_list_el::next.

Referenced by m_clean_silo().

msg_list_el msg_list_el_new ( void   ) 

Id
ms_msg_list.c 4518 2008-07-28 15:39:28Z henningw

MSILO module

Copyright (C) 2001-2003 FhG Fokus

This file is part of Kamailio, a free SIP server.

Kamailio is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version

Kamailio is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

History: -------- 2003-03-11 major locking changes: not it uses locking.h (andrei) create a new element

Definition at line 42 of file ms_msg_list.c.

References _msg_list_el::flag, MS_MSG_NULL, _msg_list_el::msgid, _msg_list_el::next, NULL, _msg_list_el::prev, and shm_malloc().

Referenced by msg_list_check_msg().

void msg_list_free ( msg_list  ml  ) 

msg_list msg_list_init ( void   ) 

msg_list_el msg_list_reset ( msg_list  ml  ) 

reset a list return old list

Definition at line 306 of file ms_msg_list.c.

References _msg_list::ldone, _msg_list::nrdone, NULL, and _msg_list::sem_done.

Referenced by m_clean_silo().

int msg_list_set_flag ( msg_list  ml,
int  mid,
int  fl 
)


Generated on Wed May 23 20:00:40 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6