Skip to content
Snippets Groups Projects
iax2-parser.c 29.6 KiB
Newer Older
  • Learn to ignore specific revisions
  • static void frame_cache_cleanup(void *data)
    {
    	struct iax_frames *frames = data;
    	struct iax_frame *cur;
    
    	while ((cur = AST_LIST_REMOVE_HEAD(frames, list)))
    		__iax_frame_free(cur, 0);
    
    	free(frames);
    }
    
    void iax_frame_free(struct iax_frame *fr)
    {
    	__iax_frame_free(fr, 1);
    
    Mark Spencer's avatar
    Mark Spencer committed
    }
    
    int iax_get_frames(void) { return frames; }
    int iax_get_iframes(void) { return iframes; }
    int iax_get_oframes(void) { return oframes; }