chenqiyang
2022-09-02 6a99d9bf65aa5878cb409945ed2bdbdcb916d047
Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/ortp.framework/Headers/str_utils.h
@@ -160,13 +160,18 @@
typedef struct _msgb_allocator{
   queue_t q;
   int max_blocks;
}msgb_allocator_t;
ORTP_PUBLIC void msgb_allocator_init(msgb_allocator_t *pa);
/* Set a maximum number of blocks that can be managed by the allocator.
   Only blocks satisfying the "size" argument of msgb_allocator_alloc() are counted.*/
ORTP_PUBLIC void msgb_allocator_set_max_blocks(msgb_allocator_t *pa, int max_blocks);
ORTP_PUBLIC mblk_t *msgb_allocator_alloc(msgb_allocator_t *pa, size_t size);
ORTP_PUBLIC void msgb_allocator_uninit(msgb_allocator_t *pa);
ORTP_PUBLIC void ortp_recvaddr_to_sockaddr(ortp_recv_addr_t *recvaddr, struct sockaddr *addr, socklen_t *socklen);
ORTP_PUBLIC void ortp_sockaddr_to_recvaddr(const struct sockaddr * addr, ortp_recv_addr_t * recvaddr);
#ifdef __cplusplus
}