move get_time_stamp to main_channel.c

There is only one user of get_time_stamp from spice_common.h so
it's not really useful to keep it there.
This commit is contained in:
Christophe Fergeau 2011-04-22 16:43:48 +02:00
parent 54f028a01d
commit 68c6014ff0
2 changed files with 7 additions and 7 deletions

View File

@ -63,11 +63,4 @@
} \
} while (0)
static inline uint64_t get_time_stamp(void)
{
struct timespec time_space;
clock_gettime(CLOCK_MONOTONIC, &time_space);
return time_space.tv_sec * 1000 * 1000 * 1000 + time_space.tv_nsec;
}
#endif

View File

@ -489,6 +489,13 @@ void main_channel_push_notify(Channel *channel, uint8_t *mess, const int mess_le
red_channel_pipe_add_push(&main_chan->base, &item->base);
}
static uint64_t get_time_stamp(void)
{
struct timespec time_space;
clock_gettime(CLOCK_MONOTONIC, &time_space);
return time_space.tv_sec * 1000 * 1000 * 1000 + time_space.tv_nsec;
}
static void main_channel_marshall_notify(SpiceMarshaller *m, NotifyPipeItem *item)
{
SpiceMsgNotify notify;