⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inet_msg_mem.h

📁 最新MTK手机软件源码
💻 H
字号:
/*****************************************************************************
*  Copyright Statement:
*  --------------------
*  This software is protected by Copyright and the information contained
*  herein is confidential. The software may not be copied and the information
*  contained herein may not be used or disclosed except with the written
*  permission of MediaTek Inc. (C) 2005
*
*  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
*  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
*  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
*  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
*  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
*  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
*  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
*  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
*  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
*  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
*  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
*  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
*
*  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
*  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
*  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
*  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
*  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. 
*
*  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
*  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
*  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
*  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
*  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
*
*****************************************************************************/

/*******************************************************************************
 * Filename:
 * ---------
 *  inet_msg_mem.h
 *
 * Project:
 * --------
 *   MAUI
 *
 * Description:
 * ------------
 *   This file contains memory allocation and release functions.
 *
 * Author:
 * -------
 * -------
 *
 *==============================================================================
 *             HISTORY
 * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!! 
 *------------------------------------------------------------------------------
 * removed!
 *
 * removed!
 * removed!
 * removed!
 *
 *------------------------------------------------------------------------------
 * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!! 
 *==============================================================================
 *******************************************************************************/
#ifndef _INET_MSG_MEM_H
#define _INET_MSG_MEM_H

#define INET_MEM_ALLOC(x) inet_malloc(mem_func, x)
#define INET_MEM_FREE(x) inet_mfree(mem_func, x)

extern void *inet_malloc(inet_mem_func_struct *mem_func, kal_uint32 size);
extern void inet_mfree(inet_mem_func_struct *mem_func, void *ptr);

/* inet struct object free functions */
extern void inet_kal_uint32_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_kal_string_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_cseq_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_param_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_param_list_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_int_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_int_list_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_int_param_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_int_param_list_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_str_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_str_list_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_str_param_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_str_param_list_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_int_str_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_int_str_list_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_uri_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_authenticate_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_authorization_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_authentication_info_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_retry_after_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_addr_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_addr_list_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_content_range_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_cookie_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_cookie_list_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_content_type_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_content_type_list_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_cseq_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_via_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_via_list_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_set_cookie_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_set_cookie_list_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_retry_after_struct_free_fn(inet_mem_func_struct *mem_func, void *data);
extern void inet_free_body_list(inet_mem_func_struct *mem_func, inet_body_list_struct *body_list);
extern void inet_free_header_struct(inet_mem_func_struct *mem_func, inet_header_struct *header);
extern void inet_free_header_list(inet_mem_func_struct *mem_func, inet_header_list_struct *header_list);

/* inet struct copy functions */
extern void *inet_kal_uint32_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_kal_string_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_param_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_param_list_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_int_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_int_list_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_int_param_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_int_param_list_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_str_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_str_list_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_str_param_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_str_param_list_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_int_str_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_int_str_list_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_uri_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_authenticate_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_authorization_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_authentication_info_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_addr_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_addr_list_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_content_range_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_cookie_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_cookie_list_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_content_type_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_content_type_list_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_cseq_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_via_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_via_list_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);
extern void *inet_retry_after_struct_copy_fn(inet_mem_func_struct *mem_func, void *src);

/* inet link list struct add value functions */
extern kal_bool inet_add_val_to_addr_list_fn(kal_uint32 val_list_head, kal_uint32 val_node);
extern kal_bool inet_add_val_to_content_type_list_fn(kal_uint32 val_list_head, kal_uint32 val_node);
extern kal_bool inet_add_val_to_cookie_list_fn(kal_uint32 val_list_head, kal_uint32 val_node);
extern kal_bool inet_add_val_to_int_str_list_fn(kal_uint32 val_list_head, kal_uint32 val_node);
extern kal_bool inet_add_val_to_str_param_list_fn(kal_uint32 val_list_head, kal_uint32 val_node);
extern kal_bool inet_add_val_to_str_list_fn(kal_uint32 val_list_head, kal_uint32 val_node);
extern kal_bool inet_add_val_to_via_list_fn(kal_uint32 val_list_head, kal_uint32 val_node);

#endif /* _INET_MSG_MEM_H */ 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -