Definition at line 1589 of file dis.c.
References buffer, DIC_PACKET::buffer, copy_swap_buffer_in(), DIC_HEADER, dis_set_timestamp(), FORMAT_STR::flags, DIC_PACKET::format, serv::format_data, Memory::free(), serv::id, IT_IS_FLOAT, Memory::malloc(), MAX_NAME, FORMAT_STR::par_bytes, size, DIC_PACKET::size, serv::tag, and serv::user_routine.
Referenced by dis_insert_request().
1595 static int buffer_size = 0;
1599 add_size = size + (size/2);
1602 buffer = (
int *)
malloc((
size_t)add_size);
1603 buffer_size = add_size;
1607 if( add_size > buffer_size )
1610 buffer = (
int *)
malloc((
size_t)add_size);
1611 buffer_size = add_size;
1618 format = vtohl(packet->
format);
1619 memcpy(format_data_cp, servp->
format_data,
sizeof(format_data_cp));
1620 if((format & 0xF) == ((MY_FORMAT) & 0xF))
1622 for(formatp = format_data_cp; formatp->
par_bytes; formatp++)
1625 formatp->
flags |= ((short)format & (
short)0xf0);
1626 formatp->
flags &= (short)0xFFF0;
1631 for(formatp = format_data_cp; formatp->
par_bytes; formatp++)
1634 formatp->
flags |= ((short)format & (
short)0xf0);
int copy_swap_buffer_in(FORMAT_STR *format_data, void *buff_out, void *buff_in, int size)
FORMAT_STR format_data[MAX_NAME/4]
int dis_set_timestamp(unsigned serv_id, int secs, int millisecs)