Definition at line 1421 of file dis_old.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().
1427 static int buffer_size = 0;
1431 add_size = size + (size/2);
1434 buffer = (
int *)
malloc(add_size);
1435 buffer_size = add_size;
1439 if( add_size > buffer_size )
1442 buffer = (
int *)
malloc(add_size);
1443 buffer_size = add_size;
1450 format = vtohl(packet->
format);
1451 memcpy(format_data_cp, servp->
format_data,
sizeof(format_data_cp));
1452 if((format & 0xF) == ((MY_FORMAT) & 0xF))
1454 for(formatp = format_data_cp; formatp->
par_bytes; formatp++)
1457 formatp->
flags |= (format & 0xf0);
1458 formatp->
flags &= 0xFFF0;
1463 for(formatp = format_data_cp; formatp->
par_bytes; formatp++)
1466 formatp->
flags |= (format & 0xf0);
int copy_swap_buffer_in(FORMAT_STR *format_data, void *buff_out, void *buff_in, int size)
int dis_set_timestamp(unsigned serv_id, int secs, int millisecs)
FORMAT_STR format_data[MAX_NAME/4]