ms_msg_list.h File Reference

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

Include dependency graph for ms_msg_list.h:

This graph shows which files directly or indirectly include this file:

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_listmsg_list
typedef struct _msg_list_elmsg_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 Documentation

#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

Id
ms_msg_list.h 5003 2008-09-26 11:01:51Z 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, 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

Definition at line 36 of file ms_msg_list.h.

Referenced by msg_list_check_msg().

#define MS_MSG_TSND   16

Definition at line 39 of file ms_msg_list.h.

Referenced by m_clean_silo(), and m_send_ontimer().

#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

Definition at line 46 of file ms_msg_list.h.

Referenced by msg_list_check_msg().

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

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


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