#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"

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) |
| int msg_list_check | ( | msg_list | ml | ) |
check if the messages from list were sent
Definition at line 252 of file ms_msg_list.c.
References _msg_list_el::flag, _msg_list::ldone, LM_DBG, _msg_list::lsent, MS_MSG_DONE, MS_MSG_ERRO, MSG_LIST_ERR, MSG_LIST_OK, _msg_list_el::msgid, _msg_list_el::next, sr_module::next, _msg_list::nrdone, _msg_list::nrsent, NULL, _msg_list_el::prev, _msg_list::sem_done, and _msg_list::sem_sent.
Referenced by m_clean_silo().
| int msg_list_check_msg | ( | msg_list | ml, | |
| int | mid | |||
| ) |
check if a message is in list
Definition at line 162 of file ms_msg_list.c.
References _msg_list_el::flag, LM_DBG, LM_ERR, _msg_list::lsent, MS_MSG_SENT, msg_list_el_new(), MSG_LIST_ERR, MSG_LIST_EXIST, MSG_LIST_OK, _msg_list_el::msgid, _msg_list_el::next, _msg_list::nrsent, _msg_list_el::prev, and _msg_list::sem_sent.
Referenced by m_dump(), and m_send_ontimer().
| 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 | ) |
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 | ) |
free a list
Definition at line 120 of file ms_msg_list.c.
References _msg_list::ldone, _msg_list::lsent, msg_list_el_free(), _msg_list_el::next, _msg_list::nrdone, _msg_list::nrsent, NULL, _msg_list::sem_done, _msg_list::sem_sent, and shm_free.
| msg_list msg_list_init | ( | void | ) |
init a list
Definition at line 88 of file ms_msg_list.c.
References _msg_list::ldone, LM_CRIT, _msg_list::lsent, ml, _msg_list::nrdone, _msg_list::nrsent, NULL, _msg_list::sem_done, _msg_list::sem_sent, shm_free, and shm_malloc().
Referenced by mod_init().
| msg_list_el msg_list_reset | ( | msg_list | ml | ) |
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 | |||
| ) |
set flag for message with mid
Definition at line 218 of file ms_msg_list.c.
References _msg_list_el::flag, LM_DBG, LM_ERR, _msg_list::lsent, MSG_LIST_ERR, MSG_LIST_OK, _msg_list_el::msgid, _msg_list_el::next, and _msg_list::sem_sent.
Referenced by m_dump(), m_send_ontimer(), and m_tm_callback().
1.5.6