Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

astmm.h File Reference

#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>

Include dependency graph for astmm.h:

Include dependency graph

Go to the source code of this file.

Defines

#define __AST_DEBUG_MALLOC
#define calloc(a, b)   __ast_calloc(a,b,__FILE__, __LINE__, __PRETTY_FUNCTION__)
#define malloc(a)   __ast_malloc(a,__FILE__, __LINE__, __PRETTY_FUNCTION__)
#define free(a)   __ast_free(a,__FILE__, __LINE__, __PRETTY_FUNCTION__)
#define realloc(a, b)   __ast_realloc(a,b,__FILE__, __LINE__, __PRETTY_FUNCTION__)
#define strdup(a)   __ast_strdup(a,__FILE__, __LINE__, __PRETTY_FUNCTION__)
#define strndup(a, b)   __ast_strndup(a,b,__FILE__, __LINE__, __PRETTY_FUNCTION__)
#define vasprintf(a, b, c)   __ast_vasprintf(a,b,c,__FILE__, __LINE__, __PRETTY_FUNCTION__)

Functions

void * __ast_calloc (size_t nmemb, size_t size, const char *file, int lineno, const char *func)
void * __ast_malloc (size_t size, const char *file, int lineno, const char *func)
void __ast_free (void *ptr, const char *file, int lineno, const char *func)
void * __ast_realloc (void *ptr, size_t size, const char *file, int lineno, const char *func)
char * __ast_strdup (const char *s, const char *file, int lineno, const char *func)
char * __ast_strndup (const char *s, size_t n, const char *file, int lineno, const char *func)
int __ast_vasprintf (char **strp, const char *format, va_list ap, const char *file, int lineno, const char *func)
void __ast_mm_init (void)


Define Documentation

#define __AST_DEBUG_MALLOC
 

Definition at line 18 of file astmm.h.

#define calloc a,
 )     __ast_calloc(a,b,__FILE__, __LINE__, __PRETTY_FUNCTION__)
 

Definition at line 46 of file astmm.h.

#define free  )     __ast_free(a,__FILE__, __LINE__, __PRETTY_FUNCTION__)
 

Definition at line 52 of file astmm.h.

Referenced by __ast_context_destroy(), ast_add_extension2(), ast_append_ha(), ast_autoservice_start(), ast_autoservice_stop(), ast_cdr_free(), ast_cdr_unregister(), ast_channel_alloc(), ast_channel_free(), ast_channel_unregister(), ast_cli(), ast_cli_command(), ast_closestream(), ast_context_add_include2(), ast_context_add_switch2(), ast_context_remove_extension2(), ast_context_remove_ignorepat2(), ast_context_remove_include2(), ast_context_remove_switch2(), ast_db_freetree(), ast_destroy(), ast_dsp_free(), ast_enum_init(), ast_expr(), ast_extension_state_del(), ast_format_unregister(), ast_free_ha(), ast_frfree(), ast_frisolate(), ast_io_remove(), ast_load_resource(), ast_manager_unregister(), ast_pbx_outgoing_app(), ast_pbx_outgoing_exten(), ast_pbx_run(), ast_playtones_start(), ast_readfile(), ast_register_indication(), ast_rtp_destroy(), ast_rtp_new(), ast_set_callerid(), ast_smoother_free(), ast_translator_build_path(), ast_translator_free_path(), ast_unload_resource(), ast_unregister_indication(), ast_unregister_verbose(), ast_var_assign(), ast_var_delete(), ast_verbose(), ast_writefile(), callerid_feed(), callerid_free(), dlsym(), io_context_create(), io_context_destroy(), pbx_substitute_variables_helper(), sched_context_destroy(), tdd_feed(), and tdd_free().

#define malloc  )     __ast_malloc(a,__FILE__, __LINE__, __PRETTY_FUNCTION__)
 

Definition at line 49 of file astmm.h.

Referenced by ast_add_extension2(), ast_append_ha(), ast_autoservice_start(), ast_cdr_alloc(), ast_cdr_register(), ast_channel_alloc(), ast_channel_register_ex(), ast_cli_completion_matches(), ast_context_add_ignorepat2(), ast_context_add_include2(), ast_context_add_switch2(), ast_context_create(), ast_db_gettree(), ast_dsp_new(), ast_expr(), ast_extension_state_add(), ast_format_register(), ast_frdup(), ast_frisolate(), ast_io_add(), ast_linear_stream(), ast_load_resource(), ast_loader_register(), ast_manager_register2(), ast_pbx_outgoing_app(), ast_pbx_outgoing_exten(), ast_pbx_run(), ast_register_application(), ast_register_atexit(), ast_register_indication(), ast_register_verbose(), ast_rtp_new(), ast_smoother_new(), ast_translator_build_path(), ast_var_assign(), ast_verbose(), callerid_feed(), callerid_new(), dlsym(), io_context_create(), sched_context_create(), tdd_feed(), and tdd_new().

#define realloc a,
 )     __ast_realloc(a,b,__FILE__, __LINE__, __PRETTY_FUNCTION__)
 

Definition at line 55 of file astmm.h.

Referenced by ast_cli_completion_matches(), and ast_playtones_start().

#define strdup  )     __ast_strdup(a,__FILE__, __LINE__, __PRETTY_FUNCTION__)
 

Definition at line 58 of file astmm.h.

Referenced by ast_expr(), ast_frisolate(), ast_readfile(), ast_register_indication(), ast_set_callerid(), ast_verbose(), and ast_writefile().

#define strndup a,
 )     __ast_strndup(a,b,__FILE__, __LINE__, __PRETTY_FUNCTION__)
 

Definition at line 61 of file astmm.h.

#define vasprintf a,
b,
 )     __ast_vasprintf(a,b,c,__FILE__, __LINE__, __PRETTY_FUNCTION__)
 

Definition at line 64 of file astmm.h.

Referenced by ast_cli().


Function Documentation

void* __ast_calloc size_t  nmemb,
size_t  size,
const char *  file,
int  lineno,
const char *  func
 

void __ast_free void *  ptr,
const char *  file,
int  lineno,
const char *  func
 

void* __ast_malloc size_t  size,
const char *  file,
int  lineno,
const char *  func
 

void __ast_mm_init void   ) 
 

Referenced by main().

void* __ast_realloc void *  ptr,
size_t  size,
const char *  file,
int  lineno,
const char *  func
 

char* __ast_strdup const char *  s,
const char *  file,
int  lineno,
const char *  func
 

char* __ast_strndup const char *  s,
size_t  n,
const char *  file,
int  lineno,
const char *  func
 

int __ast_vasprintf char **  strp,
const char *  format,
va_list  ap,
const char *  file,
int  lineno,
const char *  func
 


Generated on Sat Jun 12 16:41:04 2004 for Asterisk by doxygen 1.3.7