astobj2_private.h

Go to the documentation of this file.
00001 /*
00002  * astobj2 - replacement containers for asterisk data structures.
00003  *
00004  * Copyright (C) 2006 Marta Carbone, Luigi Rizzo - Univ. di Pisa, Italy
00005  *
00006  * See http://www.asterisk.org for more information about
00007  * the Asterisk project. Please do not directly contact
00008  * any of the maintainers of this project for assistance;
00009  * the project provides a web site, mailing lists and IRC
00010  * channels for your use.
00011  *
00012  * This program is free software, distributed under the terms of
00013  * the GNU General Public License Version 2. See the LICENSE file
00014  * at the top of the source tree.
00015  */
00016 
00017 /*! \file
00018  *
00019  * \brief Common, private definitions for astobj2.
00020  *
00021  * \author Richard Mudgett <rmudgett@digium.com>
00022  */
00023 
00024 #ifndef ASTOBJ2_PRIVATE_H_
00025 #define ASTOBJ2_PRIVATE_H_
00026 
00027 #include "asterisk/astobj2.h"
00028 
00029 #if defined(AO2_DEBUG)
00030 #define AO2_DEVMODE_STAT(stat)   stat
00031 #else
00032 #define AO2_DEVMODE_STAT(stat)
00033 #endif   /* defined(AO2_DEBUG) */
00034 
00035 #ifdef AO2_DEBUG
00036 struct ao2_stats {
00037    volatile int total_objects;
00038    volatile int total_mem;
00039    volatile int total_containers;
00040    volatile int total_refs;
00041    volatile int total_locked;
00042 };
00043 extern struct ao2_stats ao2;
00044 #endif   /* defined(AO2_DEBUG) */
00045 
00046 int is_ao2_object(void *user_data);
00047 enum ao2_lock_req __adjust_lock(void *user_data, enum ao2_lock_req lock_how, int keep_stronger);
00048 
00049 #endif /* ASTOBJ2_PRIVATE_H_ */

Generated on Thu Apr 16 06:27:15 2015 for Asterisk - The Open Source Telephony Project by  doxygen 1.5.6