#include "../../locking.h"


Go to the source code of this file.
Data Structures | |
| struct | _msg_list |
| struct | _msg_list_el |
Defines | |
| #define | MS_MSG_DONE 4 |
| #define | MS_MSG_ERRO 8 |
| #define | MS_MSG_NULL 0 |
| #define | MS_MSG_SENT 1 |
| #define | MS_MSG_TSND 16 |
| #define | MS_SEM_DONE 1 |
| #define | MS_SEM_SENT 0 |
| #define | MSG_LIST_ERR -1 |
| #define | MSG_LIST_EXIST 1 |
| #define | MSG_LIST_OK 0 |
Typedefs | |
| typedef struct _msg_list * | msg_list |
| typedef struct _msg_list_el * | msg_list_el |
| typedef struct _msg_list | t_msg_list |
| typedef struct _msg_list_el | t_msg_list_el |
Functions | |
| int | msg_list_check (msg_list) |
| int | msg_list_check_msg (msg_list, int) |
| void | msg_list_el_free (msg_list_el) |
| void | msg_list_el_free_all (msg_list_el) |
| msg_list_el | msg_list_el_new (void) |
| void | msg_list_free (msg_list) |
| msg_list | msg_list_init (void) |
| msg_list_el | msg_list_reset (msg_list) |
| int | msg_list_set_flag (msg_list, int, int) |
| #define MS_MSG_DONE 4 |
Definition at line 37 of file ms_msg_list.h.
Referenced by m_clean_silo(), m_tm_callback(), and msg_list_check().
| #define MS_MSG_ERRO 8 |
Definition at line 38 of file ms_msg_list.h.
Referenced by m_clean_silo(), m_dump(), m_send_ontimer(), m_tm_callback(), and msg_list_check().
| #define MS_MSG_NULL 0 |
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, now it uses locking.h (andrei)
Definition at line 35 of file ms_msg_list.h.
Referenced by msg_list_el_new().
| #define MS_MSG_SENT 1 |
| #define MS_MSG_TSND 16 |
| #define MS_SEM_DONE 1 |
Definition at line 42 of file ms_msg_list.h.
| #define MS_SEM_SENT 0 |
Definition at line 41 of file ms_msg_list.h.
| #define MSG_LIST_ERR -1 |
Definition at line 45 of file ms_msg_list.h.
Referenced by msg_list_check(), msg_list_check_msg(), and msg_list_set_flag().
| #define MSG_LIST_EXIST 1 |
| #define MSG_LIST_OK 0 |
Definition at line 44 of file ms_msg_list.h.
Referenced by msg_list_check(), msg_list_check_msg(), and msg_list_set_flag().
| typedef struct _msg_list_el * msg_list_el |
| typedef struct _msg_list t_msg_list |
| typedef struct _msg_list_el t_msg_list_el |
| 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